Skip to content

Instantly share code, notes, and snippets.

View haraldmartin's full-sized avatar
🌝

Martin Ström haraldmartin

🌝
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>Trigram for heaven icon</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style type="text/css">
li {
list-style-type: none;
}
@haraldmartin
haraldmartin / RSOAuthEngine.podspec
Created September 23, 2013 16:04
RSOAuthEngine.podspec without locking to v1.0.0
Pod::Spec.new do |s|
s.name = 'RSOAuthEngine'
s.version = '1.0.0'
s.license = 'MIT'
s.summary = 'ARC based OAuth engine for MKNetworkKit.'
s.homepage = 'https://github.com/rsieiro/RSOAuthEngine'
s.authors = { 'Rodrigo Sieiro' => 'rsieiro@sharpcube.com' }
s.source = {:git => 'https://github.com/rsieiro/RSOAuthEngine.git'}
s.source_files = 'RSOAuthEngine/*.{h,m}'
## Get FFMpeg working on heroku by building binaries using vulcan
gem install vulcan
vulcan create foo
git clone --depth 1 git://source.ffmpeg.org/ffmpeg
cd ffmpeg
Pod::Spec.new do |s|
s.name = 'MKNetworkKit'
s.version = '0.87'
s.summary = 'ARC ready Networking Framework with built in authentication and HTTP 1.1 caching standards support for iOS 5+ devices.'
s.homepage = 'https://github.com/MugunthKumar/MKNetworkKit'
s.author = { 'Mugunth Kumar' => 'mugunth@steinlogic.com' }
s.source = { :git => 'https://github.com/MugunthKumar/MKNetworkKit.git', :commit => '4979dd4' }
files = FileList['MKNetworkKit/*.{h,m}', 'MKNetworkKit/Categories/*.{h,m}']
s.ios.source_files = files.dup.exclude(/NSAlert/)
Pod::Spec.new do |s|
s.name = 'RSOAuthEngine'
s.version = '1.2.0'
s.license = 'MIT'
s.summary = 'ARC based OAuth engine for MKNetworkKit.'
s.homepage = 'https://github.com/rsieiro/RSOAuthEngine'
s.authors = { 'Rodrigo Sieiro' => 'rsieiro@sharpcube.com' }
s.source = {:git => 'https://github.com/rsieiro/RSOAuthEngine.git', :tag => '1.2.0'}
s.source_files = 'RSOAuthEngine/*.{h,m}'
//= require "cookie"
var CopyBuffer = Class.create({
initialize: function(options) {
this.formats = ['text', 'html'];
this.format = this.formats[0];
this.stack = [];
Object.extend((this.options = {}), options || {});
for (var i in this.options) this[i] = $(this.options[i]);

OH HAI DERE

@haraldmartin
haraldmartin / add_loopia_mx.rb
Created December 5, 2012 20:41
Add Google Apps MX records to a Loopia domain
#!/usr/bin/env ruby
require 'xmlrpc/client'
USERNAME = 'username' # get username
PASSWORD = 'password' # and password @ https://www.loopia.se/api
RPC_SERVER = "https://api.loopia.se/RPCSERV"
DOMAIN = 'harald.net' # change to the domain you want to use
# http://www.google.com/support/a/bin/answer.py?answer=174125
@haraldmartin
haraldmartin / ObjectiveTumblr.podspec
Last active October 13, 2015 13:37
ObjectiveTumblr.podspec
Pod::Spec.new do |s|
s.name = 'ObjectiveTumblr'
s.version = '0.1.3'
s.license = 'MIT'
s.summary = 'Tumblr API Client for Objective-C with minimal features, based on Tumblr API v2 (OAuth).'
s.homepage = 'https://github.com/IgnitionSoft/ObjectiveTumblr'
s.authors = { 'Francis Chong' => 'francis@ignition.hk' }
s.source = { :git => 'https://github.com/haraldmartin/ObjectiveTumblr.git' }
s.source_files = 'ObjectiveTumblr/Classes/*.{h,m}'
s.requires_arc = true
@haraldmartin
haraldmartin / scheduled_job.rb
Created November 14, 2012 13:22 — forked from kares/scheduled_job.rb
Recurring Job using Delayed::Job
#
# Recurring Job using Delayed::Job
#
# Setup Your job the "plain-old" DJ (perform) way, include this module
# and Your handler will re-schedule itself every time it succeeds.
#
# Sample :
#
# class MyJob
# include Delayed::ScheduledJob