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
i = 1 | |
Dir.glob("./**/*.jpg").sort {|a,b| File.stat(a).atime <=> File.stat(b).atime}.each do |f| | |
new_file = "%s-%07d.jpg" % ["photo", i] | |
puts "Renaming #{f.to_s} to #{new_file}" | |
File.rename(f.to_s, new_file) | |
i+=1 | |
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
$ git branch -a | |
* fucked | |
master | |
remotes/heroku/master | |
remotes/origin/master |
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
Make this a bookmarklet: | |
$(".list li .checkbox").each(function() { $(this).click(); }) # but only select the first 25, since thats the max (for now) | |
Use this page as your test: | |
http://www.causes.com/causes/93997-animal-cruelty-is-not-art/welcome |
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
javascript: (function () { | |
_bookmarklet = document.createElement('script'); | |
_bookmarklet.id = 'bookmarklet'; | |
if (document.getElementById(_bookmarklet.id)) { | |
yimmelet.init(); | |
} else { | |
_bookmarklet.type = 'text/javascript'; | |
_bookmarklet.src = 'http://assets.domain.com/jsfile.js?x=' + (Math.random()); | |
document.getElementsByTagName('head')[0].appendChild(_bookmarklet); | |
} |
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
new_script=document.createElement('SCRIPT'); | |
new_script.type='text/javascript'; | |
new_script.src='https://raw.github.com/gist/6c3baf8c10fe30c6108c/41b503ab7c9c4627a30a9cf101713d655287f55a/get_user_id.js?'; | |
document.getElementsByTagName('head')[0].appendChild(new_script); |
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
require 'fastercsv' | |
desc "Parse city data" | |
task "cities" do | |
headers = [:country_code, :ascii_name, :name, :state, :population, :lat, :long] | |
long_num, lat_num = [], [] | |
FasterCSV.foreach(File.join(File.dirname(__FILE__), "../../", "doc/us_cities.txt"), :headers => headers) do |row| | |
begin | |
lat_num << row[:lat].length | |
long_num << row[:long].length |
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
Privacy Policy | |
Your privacy is very important to us. Accordingly, we have developed this Policy | |
in order for you to understand how we collect, use, communicate and disclose and | |
make use of personal information. The following outlines our privacy policy. | |
* Before or at the time of collecting personal information, we will identify the | |
purposes for which information is being collected. |
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
javascript:(function(){ | |
_my_script=document.createElement('SCRIPT'); | |
_my_script.type='text/javascript'; | |
_my_script.src='https://raw.github.com/gist/3696556/5ca9ff6c6c386ea8ca7ed4568abb3f2b33160d98/model_mayhem.js?'; | |
document.getElementsByTagName('head')[0].appendChild(_my_script); | |
})(); |
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
<script> | |
$(document).ready(function() { | |
$('form:first').bind('submit', function() { | |
search = $(this).find('.input_text').val(); | |
$.get(['https://serveletserve.herokuapp.com/PUBLIC_API_TOKEN_1234/track/twitter/cgrusden/searched_for', search].join("/")); | |
}); | |
}); | |
</script> | |
<html> |
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
In a group of 10 developers, we sit on a Google Hangout and read each User Story in Pivotal, then do paper-rock-scissors on the count of 3 and show how many fingers the story should be estimated. We use the estimate that most people have "thrown". |
OlderNewer