Skip to content

Instantly share code, notes, and snippets.

View lukaskollmer's full-sized avatar
👻
procrastinating

Lukas Kollmer lukaskollmer

👻
procrastinating
View GitHub Profile
@neonichu
neonichu / greader.rb
Created January 21, 2012 19:15
Backup your Google Reader data
#!/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>>>'
@ChrisRisner
ChrisRisner / LoadingData.m
Created November 5, 2012 04:13
iOS Day 11
- (IBAction)tappedLoadData:(id)sender {
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
self.lblInfo.text = [defaults objectForKey:@"infoString"];
}
@oliveratgithub
oliveratgithub / Add Reminder to Wunderlist.scpt
Last active November 13, 2015 16:37
AppleScript to add a Text selection as a new Reminder to Wunderlist
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
@jeremyquinn
jeremyquinn / NSManagedObject+KeyedSubscript.h
Created May 25, 2013 16:53
This is a Category on NSManagedObject, that enables subscript access to properties.
//
// 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)
@neonichu
neonichu / .gitignore
Last active December 26, 2015 16:59
"What is the only* public class in the cocoa frameworks that has no methods of its own?" https://twitter.com/NSLondonMeetup/status/394473852094259200
FindClasses
@radianttap
radianttap / daringfireball.css
Created November 16, 2013 11:03
User CSS for daringfireball.net, using Avenir Next (and its condensed variant).
body, dt, dd {
font-family: "Avenir Next", sans-serif !important;
line-height: 1.5 !important;
}
body {
font-size: 14px !important;
font-weight: 400 !important;
}
@jsbain
jsbain / scrape.py
Created May 8, 2016 17:36
scrape.py
#!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) {
# 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')
@AngeloStavrow
AngeloStavrow / CalculatingHumidex.playground
Last active September 17, 2016 15:05
Playing with Swift 3's Units and Measurements to calculate humidex values.
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)