This file contains hidden or 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
| $(function() { | |
| var url = '/rss'; | |
| var $list = $('#recent-posts'); | |
| $.ajax({ | |
| url: url, | |
| type: 'GET', | |
| dataType: 'xml', | |
| success: function(data) { | |
| var $items = $(data).find('item'); | |
| $items.each( function() { |
This file contains hidden or 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
| #text-block .flickr { | |
| color: transparent; | |
| text-shadow: white 0 0 1px; | |
| -webkit-transition: text-shadow 0.2s ease-in-out; | |
| -moz-transition: text-shadow 0.2s ease-in-out; | |
| transition: text-shadow 0.2s ease-in-out; | |
| } |
This file contains hidden or 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
| var iTunes = (function() { | |
| var endpoint = 'http://itunes.apple.com/search', | |
| searchOptions = { | |
| term: '', | |
| country: 'US', | |
| media: '', | |
| entity: '', | |
| attribute: '', | |
| callback: 'iTunes.end', |
This file contains hidden or 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
| /* | |
| This widget shows Recent Posts on your Tumblr blog. | |
| Its dependency is jQuery. | |
| Usage: | |
| 1) Add html: | |
| <div id="recent-posts"></div> | |
| 2) Add code into the <head>: |
This file contains hidden or 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
| source 'https://rubygems.org' | |
| gem 'jekyll' | |
| gem 'maruku' | |
| gem 'rake' | |
| gem 'sass' | |
| gem 'coffee-script' |
Adobe Edge Inspect Used while working on mobile/responsive sites to view natively on iPhone, updates in real time. https://chrome.google.com/webstore/detail/adobe-edge-inspect/ijoeapleklopieoejahbpdnhkjjgddem
Benchwarmer This has replaced my pinned Dribbble tab. "New tab" extension, no URL bar icon, transforms your new tab's background into a list of Dribbble popular/everyone/debut/following (you pick) shots. https://chrome.google.com/webstore/detail/benchwarmer-the-dribbble/lhdjhhpjicomphhjpehdhjenbaamdpnn
Bitly Used with custom .htaccess rule and vanity domain to shorten links with 2 clicks.
This file contains hidden or 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
| module Jekyll | |
| class PostPublisher < Generator | |
| safe false | |
| def replace(filepath, regexp, *args, &block) | |
| content = File.read(filepath).gsub(regexp, *args, &block) | |
| File.open(filepath, 'wb') { |file| file.write(content) } | |
| end | |
| def generate(site) |
This file contains hidden or 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
| gifify() { | |
| if [[ -n "$1" ]]; then | |
| if [[ $2 == '--good' ]]; then | |
| ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png | |
| time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif | |
| rm out-static*.png | |
| else | |
| ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif | |
| fi | |
| else |
This file contains hidden or 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 href="https://twitter.com/share" class="twitter-share-button tweet" data-text="Formic Co - We're making forms dead simple" data-via="FormicCo" data-hashtags="DeadSimpleForms"> | |
| <span class="count">0</span> | |
| <span class="message">Tweet</span> | |
| </a> |