View gist:dafba0e55a74c11c6f5b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
convert AtomicDust.jpg -strip -quality 85% -interlace Plane compressed.jpg |
View gist:6a963c69fdb86a05d1d8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gifsicle -O3 default.gif -o compressed.gif |
View gist:9241132b1010005c36f1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias pngs='imageOptim --directory ~/Desktop/pngs/ -a' |
View gist:bedeaa2a6e1bc569619c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
weather() { | |
echo Your Location: | |
curl -s "http://api.wunderground.com/auto/wui/geo/ForecastXML/index.xml?query=${@:-YOURZIPCODE}" | perl -ne 's/&deg;/°/g;/<title>([^<]+)/&&printf "%s: ",$1;/<fcttext>([^<]+)/&&print $1,"\n"'; | |
} |
View jquery.easy-gallery-focus.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Easy Gallery Focus jQuery Plugin | |
* Author: Drew Douglass | |
* Author URL: http://dev-tips.com | |
* Version: 0.2 | |
* License: MIT | |
* | |
*@params | |
* onMouseOverCallback - (optional) Callback function for when element is hovered. Default is null. | |
* onMouseOutCallback - (optional) Callbacl function for when mouseout occurs on the element. Default is null. |
View arrow.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a class="tab" href="#">Show All</a> | |
.tab { | |
text-transform: uppercase; | |
font-size:14px; | |
color:$black; | |
text-decoration: none; | |
font-weight: $fw-medium; | |
padding-bottom:10px; | |
padding-left:10px; |
View smoothscroll.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Smooth scrolling for #links | |
var $root = $('html, body'); | |
$('a').click(function() { | |
var href = $.attr(this, 'href'); | |
$root.animate({ | |
scrollTop: $(href).offset().top | |
}, 1000, function () { | |
window.location.hash = href; | |
}); | |
return false; |
View Enable HDMI audio for Raspberry Pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo nano /boot/config.txt | |
#edit or add hdmi_drive to hdmi_drive=2 |
View wordpresslatest.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://wordpress.org/latest.tar.gz && tar -xzvf latest.tar.gz && cp -r wordpress/* . && rm -rf wordpress |
OlderNewer