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
total = 0; | |
$.each($('.money'), function() { | |
total += parseInt(this.innerText.substring(1)); | |
}); | |
console.log(total); |
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
#!/usr/bin/env ruby | |
# gem install tumblr_client | |
# use 'tumblr' command to generate security credentials | |
# fill in security info from the generated file at ~/.tumblr | |
# fill in the source directory and destintion directory | |
# fill in blogname | |
# script will upload a file then move it to the destination directory | |
require 'rubygems' | |
require 'tumblr_client' |