Skip to content

Instantly share code, notes, and snippets.

@jk
jk / sonar-runner.rb
Created October 10, 2012 09:56
sonar-runner homebrew formula
require 'formula'
class SonarRunner < Formula
homepage 'http://docs.codehaus.org/display/SONAR/Installing+and+Configuring+Sonar+Runner'
url 'http://repository.codehaus.org/org/codehaus/sonar-plugins/sonar-runner/2.0/sonar-runner-2.0.zip'
sha1 '3e483322985936b3724418bb696e7b74ef020cb8'
def startup_script name
<<-EOS.undent
#!/bin/bash
@jk
jk / SimStoreKit.podspec
Last active April 27, 2016 13:16
SimStoreKit Cocoapod
Pod::Spec.new do |s|
s.name = "SimStoreKit"
s.version = "0.0.1"
s.summary = "A simulated version of the iPhone's StoreKit, for testing store UIs on the iPhone Simulator, or even on device without having to set up IAP in Connect."
s.homepage = "https://github.com/wmalloc/simstorekit"
# Specify the license type. CocoaPods detects automatically the license file if it is named
# `LICENSE*.*', however if the name is different, specify it.
s.license = 'MIT'
# s.license = { :type => 'MIT (example)', :file => 'FILE_LICENSE' }
@jk
jk / PSStoreButton.podspec
Created September 24, 2012 12:30
Modified PSStoreButton pod
Pod::Spec.new do |s|
s.name = "PSStoreButton"
s.version = "1.0"
s.summary = "UIButton that is styled like iPhone's AppStore-Button. No Images used!"
s.homepage = "https://github.com/steipete/PSStoreButton"
s.license = 'MIT'
s.author = { 'Peter Steinberger' => '[email protected]' }
s.source = { :git => "https://github.com/jk/PSStoreButton.git", :tag => "1.0" }
s.platform = :ios, '5.0'
s.source_files = 'PSStoreButton.{h,m}'
@jk
jk / FlurrySDK.podspec
Created September 20, 2012 14:08
FlurrySDK 4.0.4
Pod::Spec.new do |s|
s.name = 'FlurrySDK'
s.version = '4.0.4'
s.license = 'Commercial'
s.summary = 'FlurrySDK for analytics reporting.'
s.homepage = 'http://www.flurry.com'
s.author = { 'Flurry' => 'http://www.flurry.com' }
s.source = { :git => 'https://github.com/jk/FlurryAnalytics.git', :tag => '4.0.4' }
s.description = 'FlurrySDK for analytics tracking and reporting.'
s.platform = :ios
@jk
jk / MKStoreKit.podspec
Created September 19, 2012 11:09
Modified MKStoreKit 4.3 podfile
Pod::Spec.new do |s|
s.name = 'MKStoreKit'
s.version = '4.3'
s.license = 'zLib'
s.summary = 'In-App Purchases StoreKit for iOS devices.'
s.homepage = 'https://github.com/MugunthKumar/MKStoreKit'
s.author = { 'Mugunth' => 'http://mugunthkumar.com/' }
s.source = { :git => 'https://github.com/MugunthKumar/MKStoreKit.git', :tag => '4.3' }
s.platform = :ios
s.source_files = '{MKSKProduct,MKSKSubscriptionProduct,MKStoreManager,MKStoreObserver}.{h,m}'
@jk
jk / DDPageControl.podspec
Created July 25, 2012 12:24
Custom DDPageControl with further improvements
Pod::Spec.new do |s|
s.name = 'DDPageControl'
s.version = '0.1.1'
s.license = 'MIT'
s.summary = 'An easily customizable alternative to UIKit\'s UIPageControl.'
s.homepage = 'https://github.com/ddeville/DDPageControl'
s.author = { 'Damien DeVille' => '[email protected]' }
s.source = { :git => 'https://github.com/cbowns/DDPageControl.git', :commit => '6e80318bda38cfb60a12dd319b8ce024c2d80bdb' }
s.description = 'DDPageControl redefines exactly every property and methods available in UIPageControl. Using DDPageControl without customization will actually lead exactly to a UIPageControl. However, the power of DDPageControl is that you can set some additional properties that will affect the way the look and feel of the page controls.'
@jk
jk / lzmaSDK.podspec
Created July 9, 2012 11:31
lzmaSDK 9.21 beta podspec
Pod::Spec.new do |s|
s.name = "lzmaSDK"
s.version = "9.21.3"
s.summary = "lzma SDK (release 9.21 beta) configured as an iPhone project to extract 7z archives."
s.description = "7zip is a useful replacement for zlib and bzip2. In some cases, 7zip can achive drastically better compression ratios than both zlib and bzip2. One can always go to 7-zip.org to find the source code."
s.homepage = "https://github.com/jk/lzmaSDK"
s.license = "Unknown"
s.author = { "Mo DeJong" => "[email protected]", 'Jens Kohl' => '[email protected]' }
s.source = { :git => "https://github.com/jk/lzmaSDK.git", :tag => "9.21.3" }
s.platform = :ios
@jk
jk / ZipKit.podspec
Created July 9, 2012 09:27
Fixed ZipKit.podspec
Pod::Spec.new do |s|
s.name = 'ZipKit'
s.version = '0.0.1'
s.license = { :type => 'BSD', :file => 'COPYING.TXT' }
s.summary = 'An Objective-C Zip framework for Mac OS X and iOS.'
s.homepage = 'https://bitbucket.org/kolpanic/zipkit/wiki/Home'
s.author = { 'Karl Moskowski' => '[email protected]' }
s.source = { :hg => 'https://bitbucket.org/kolpanic/zipkit', :revision => '531cd75fef32' }
@jk
jk / trait.properties.php
Created July 7, 2012 13:49
Example of PHP traits to implement real properties in PHP classes
<?php
/**
* Real properties PHP trait
* Requirements: PHP 5.4 or later
*/
trait Properties
{
protected $properties;
public function __get($name)
[user]
name = Jens Kohl
email = jens.kohl@…
signingkey = 8EFDF903
[color]
status = auto
diff = auto
branch = auto
interactive = auto
pager = false