this is here now: http://512pixels.net/projects/apple-collection/
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 | |
require 'rubygems' | |
require 'mechanize' | |
agent = Mechanize.new | |
page = agent.get('https://accounts.google.com/ServiceLoginAuth') | |
form = page.forms.first | |
form.Email = '<<<Your Google Reader username>>>' |
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
- (IBAction)tappedLoadData:(id)sender { | |
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; | |
self.lblInfo.text = [defaults objectForKey:@"infoString"]; | |
} |
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
on run {input, parameters} | |
-- This code comes from http://raduner.ch/blog/ | |
-- To be used with an Automator Service | |
-- ------------------------------------------------ | |
tell application "System Events" | |
keystroke "c" using {command down} | |
end tell | |
set inputText to the clipboard as Unicode text | |
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
// | |
// NSManagedObject+KeyedSubscript.h | |
// | |
// Created by Jeremy Quinn on 25/05/2013. | |
// Copyright (c) 2013 FiveOne.org. All rights reserved. | |
// | |
#import <CoreData/CoreData.h> | |
@interface NSManagedObject (KeyedSubscript) |
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
FindClasses |
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
body, dt, dd { | |
font-family: "Avenir Next", sans-serif !important; | |
line-height: 1.5 !important; | |
} | |
body { | |
font-size: 14px !important; | |
font-weight: 400 !important; | |
} |
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
#!python2 | |
# coding: utf-8 | |
import ui,requests, json, time, console, urllib | |
# create debuggin delegate code. not necessary, but helpful for debugging | |
debugjs=''' | |
// debug_utils.js | |
// 1) custom console object | |
console = new Object(); | |
console.log = function(log) { |
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
# coding: utf-8 | |
from objutil import * | |
import ui | |
colorpicker = ObjCClass('OMColorPickerViewController').new().autorelease() | |
clview = colorpicker.view() | |
clview.frame = CGRect((0, 0), (512, 512)) | |
view = presentUIView(clview, 'Color Picker', 'sheet') | |
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
import Foundation | |
// The air temperature in degrees Celsius. | |
var airTemperature = Measurement(value: 29.74, unit: UnitTemperature.celsius) | |
// The dewpoint temperature in degrees Celsius. | |
var dewpoint = Measurement(value: 19.08, unit: UnitTemperature.celsius) | |
// Calculate the humidex value. | |
let humidex = airTemperature.value + 0.5555 * ((6.11 * exp(5417.7530 * ((1/273.16) - (1/dewpoint.converted(to: UnitTemperature.kelvin).value)))) - 10) |
OlderNewer