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 server='open http://localhost:8000 && python -m SimpleHTTPServer' |
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
#! /bin/bash | |
# Author: Shirish Padalkar (https://twitter.com/_Garbage_) | |
if [ "$#" -ne 1 ]; then | |
echo "Usage: $0 infoq_presentation_url" | |
exit 1 | |
fi | |
url_with_spaces=`curl -A "Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.10" $1 | grep "<source src=" | tr -dc "[:print:]"` |
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
#! /bin/bash | |
if [ "$#" -ne 1 ]; then | |
echo "Usage: $0 infoq_presentation_url" | |
exit 1 | |
fi | |
url_with_spaces=`curl -A "Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.10" $1 | grep "<source src=" | tr -dc "[:print:]"` | |
url=${url_with_spaces//<source src=/} | |
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
$(function() { | |
$('#trigger').on('click', function(e) { | |
e.preventDefault(); | |
$.ajax({ | |
url: '/books/1/simpleDom', | |
success: function (data) { | |
$('#target').html(data); | |
}, | |
fail: function (data) { |
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
For the blog post at: | |
http://buckybits.blogspot.com/2015/06/coffeescript-iifes.html |
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
> yesterday = DateTime.yesterday() | |
=> Fri, 10 Jul 2015 | |
> yesterday.beginning_of_week | |
=> Sun, 05 Jul 2015 | |
> (yesterday.beginning_of_week - 1.days).beginning_of_week | |
=> Sun, 28 Jun 2015 | |
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
@atom-ui-font-size: 10px; | |
html, body, .tree-view, .status-bar, .tab-bar .tab { | |
font-size: @atom-ui-font-size; | |
} |
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
package ClassFiles; | |
public class Main { | |
public static void main(String[] args) { | |
System.out.println("Wat"); | |
} | |
} |
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
<html> | |
<head> | |
<script type="text/javascript" charset="utf-8" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js"> | |
</script> | |
</head> | |
<body> | |
Speed: <span id="speed"></span> | |
</body> | |
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
return false if real_account.nil? | |
date = date_from_str('2011-01-01') | |
return true if payments.has_finished? && real_account.created_before? date | |
Trade.has_payments(real_account.login, date) |
OlderNewer