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
| // ..snip | |
| // Setup date formatter | |
| NSDateFormatter *dateFormatter = [NSDateFormatter new]; | |
| [dateFormatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"]; | |
| dateFormatter.timeZone = [NSTimeZone timeZoneWithAbbreviation:@"UTC"]; | |
| entityMapping.preferredDateFormatter = dateFormatter; | |
| // snip.. |
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
| s3cmd sync --delete-removed /dev/null s3://my-bucket |
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am fredkelly on github. | |
| * I am fredkelly (https://keybase.io/fredkelly) on keybase. | |
| * I have a public key whose fingerprint is C136 6714 3B16 C5A5 2AB8 7CB6 3F46 C1D7 7087 503A | |
| To claim this, I am signing this object: |
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
| /************************************************* | |
| ** jQuery Multi Column Lists version 1.0.5 | |
| ** copyright Fred Kelly, licensed GPL & MIT | |
| ** http://fredkelly.net/ | |
| **************************************************/ | |
| (function($){ | |
| $.fn.multilists = function(options, callback) { | |
| var defaults = { |
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
| <?php | |
| if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
| $plugin_info = array( | |
| 'pi_name' => 'Post Categories', | |
| 'pi_version' =>'1.0', | |
| 'pi_author' =>'Fred Kelly', | |
| 'pi_author_url' => 'http://fredkelly.net/', | |
| 'pi_description' => 'Returns the post categories how I want them.' |
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
| if (!Modernizr.input.placeholder) { | |
| $("input").each(function(){ | |
| if ($(this).val() == "" && $(this).attr("placeholder") != "") { | |
| $(this).val($(this).attr("placeholder")); | |
| $(this).focus(function(){ | |
| if ($(this).val() == $(this).attr("placeholder")) $(this).val(""); | |
| }); // focus | |
| $(this).blur(function(){ | |
| if ($(this).val() == "") $(this).val($(this).attr("placeholder")); | |
| }); // blur |
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 determine_win($odds) { | |
| $range = explode('/', $odds); | |
| return in_array(mt_rand(0, $range[1]), range(0, $range[0])); | |
| } | |
| $one_in_ten = determine_win('1/10'); | |
| $fifty_fifty = determine_win('1/2'); | |
| $three_in_seven = determine_win('3/7'); |
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
| brew install ffmpeg --with-theora --with-libogg --with-libvorbis |
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
| def a16z_your_name(name) | |
| (h, *m, t) = name.gsub(/\s/,'').split(//) | |
| [h, m.size, t].join | |
| end |
OlderNewer