note: I converted this script into the much easier to install joinopenwifi module on NPM
see https://github.com/maxogden/joinopenwifi#joinopenwifi for installation instructions
| Addressing each question individually, | |
| What I think: | |
| It's a fantastic fit for small applications and large applications in | |
| some very specific use cases. That being said, I know the persistence | |
| layer you use (disk, dynamo db, sql) has some effect on the performance | |
| so you could tune it to the use case. | |
| Being able to execute queries that are built out of clojure data structures |
note: I converted this script into the much easier to install joinopenwifi module on NPM
see https://github.com/maxogden/joinopenwifi#joinopenwifi for installation instructions
| def math(hours, wage, tax): | |
| pretax = hours * wage #figures gross income | |
| taxes = pretax * tax #figures how much goes into taxes | |
| leftover = pretax - taxes #figures how much will be leftover | |
| print "You have made $",pretax | |
| print "Put $", taxes, " in the bank for taxes." | |
| print "$", leftover, " is yours!!" | |
| print "Figure out how much to put in the bank for taxes." | |
| print "These figures are based on working in Colorado" |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| #!/usr/bin/env python | |
| """ | |
| A script to query the Amazon Web Services usage reports programmatically. | |
| Ideally this wouldn't exist, and Amazon would provide an API we can use | |
| instead, but hey - that's life. | |
| Basically takes your AWS account username and password, logs into the | |
| website as you, and grabs the data out. Always gets the 'All Usage Types' |
| #!/bin/bash | |
| if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
| appify v3.0.1 for Mac OS X - http://mths.be/appify | |
| Creates the simplest possible Mac app from a shell script. | |
| Appify takes a shell script as its first argument: | |
| `basename "$0"` my-script.sh |
| # needs http://jocr.sourceforge.net/ | |
| # sudo port install gocr | |
| # | |
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'open-uri' | |
| require 'nokogiri' | |
| doc = Nokogiri::HTML(open("http://cidlookup.com/lookup/#{ARGV[0].gsub("-","")}/")) | |
| image_url = "http://cidlookup.com" + doc.css("#content .gt img").first.attributes["src"] | |
| caller_name = `curl #{image_url} > name.png 2> /dev/null && gocr name.png` |
| # needs http://jocr.sourceforge.net/ | |
| # sudo port install gocr | |
| # | |
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'open-uri' | |
| require 'nokogiri' | |
| doc = Nokogiri::HTML(open("http://cidlookup.com/lookup/#{ARGV[0].gsub("-","")}/")) | |
| image_url = "http://cidlookup.com" + doc.css("#content .gt img").first.attributes["src"] | |
| caller_name = `curl #{image_url} > name.png 2> /dev/null && gocr name.png` |
| <?php | |
| /* | |
| Easy to use sms notifications from Notifo | |
| Super quick hack by Harper - @harper - [email protected] | |
| First: | |
| -------------- | |
| Get Google-Voice-PHP-API: |
| #! /usr/bin/env ruby | |
| require 'rubygems' | |
| require 'mechanize' | |
| require 'logger' | |
| projects = %w{ | |
| project_name_1 | |
| project_name_2 | |
| } |