Get it from http://developer.apple.com. You will not be able to submit apps to any stores using this XCode version, so turn away if that is something you might want to do.
In XCode's Preferences > Downloads you can install command line tools.
request = require('request') | |
cheerio = require('cheerio') | |
builder = require('xmlbuilder') | |
podcast = require('podcast') | |
_ = require('underscore') | |
# scrape website for latest episode number | |
request 'http://www.kcrw.com/music/programs/hr', (err, resp, body) -> | |
$ = cheerio.load(body) | |
episodes = [] |
#!/usr/bin/env ruby | |
## | |
# This script searches the (unofficial) Jawbone API for new meal checkins and posts | |
# them to Foursquare. Set your crontab to run it hourly for best results. | |
# | |
# I'm kind of hoping Jawbone adds this functionality to the Up app in the near | |
# future, because, let's be honest, this is pretty kludgy. | |
# | |
# `gem install httparty foursquare2` to begin |
<?php | |
/** | |
* This is a quick and dirty implementation of Foursquare's OAuth 2.0 flow. It handles the | |
* auth redirect and code exchange, and spits out a user access token. | |
* | |
* See https://developer.foursquare.com/overview/auth.html for more info. | |
* | |
* @author Ken Mickles | |
*/ |
def lazy_image_tag(src, options = {}) | |
options["data-original"] = image_path(src) | |
options[:class] = "lazy #{options[:class]}" | |
image_tag("lazy.png", options) | |
end |
# For an active auction, use: | |
=IMPORTXML("http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=140888284446", "//span[@itemprop='price']") | |
# For a completed auction, use: | |
=IMPORTXML("http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=140888284446", "//span[@class='vi-VR-cvipPrice']") |
# tail log file with timestamp | |
tail -f log/production.log | awk '{now=strftime("%F %T%z\t");sub(/^/, now);print}' | grep something | |
# determine when a git branch was created | |
git show --summary `git merge-base new_map master` |
<?php | |
/* | |
This file contains a multidimensional array of products that we're using as the data source for our store | |
*/ | |
$products = array( | |
array( |
SELECT * FROM table WHERE NOT HEX(column) REGEXP '^([0-7][0-9A-F])*$' |
Get it from http://developer.apple.com. You will not be able to submit apps to any stores using this XCode version, so turn away if that is something you might want to do.
In XCode's Preferences > Downloads you can install command line tools.
# ascii art | |
/Applications/VLC.app/Contents/MacOS/VLC ~/Desktop/Jon.m3u -V caca | |
# gradient cartoon | |
/Applications/VLC.app/Contents/MacOS/VLC ~/Desktop/Jon.m3u -Z -L --no-video-deco --no-embedded-video --width=640 --height=360 --mirror-split=0 --gradient-mode=edge --gradient-cartoon --blur-factor=80 --video-filter=mirror:gradient:motionblur | |
# twilight zones | |
/Applications/VLC.app/Contents/MacOS/VLC ~/Desktop/Jon.m3u -L --no-video-deco --no-embedded-video --width=640 --height=360 --colorthres-color=16711680 --colorthres-saturationthres=20 --colorthres-similaritythres=15 --rotate-angle=180 --video-filter=colorthres --vout-filter=transform --transform-type=hflip --rate=2.0 | |
/Applications/VLC.app/Contents/MacOS/VLC ~/Desktop/Jon.m3u -L --no-video-deco --no-embedded-video --width=640 --height=360 --colorthres-color=255 --colorthres-saturationthres=20 --colorthres-similaritythres=15 --rotate-angle=180 --video-filter=colorthres --rate=2.0 |