Skip to content

Instantly share code, notes, and snippets.

@jk
jk / UINib_example.m
Last active December 15, 2015 02:19
// are there any benefits in using the new UINib
NSArray *topLevelObjects1 = [[UINib nibWithNibName:@"myCell" bundle:nil] instantiateWithOwner:nil options:nil];
// instead of the old approach?
NSArray *topLevelObjects2 = [[NSBundle mainBundle] loadNibNamed:@"myCell" owner:nil options:nil];
@jk
jk / test.rb
Created March 10, 2013 13:54 — forked from subdigital/test.rb
# based on https://gist.github.com/3349345
# Thanks, @alloy!
#
# To get your project ready for this, you'll have to create a scheme for your unit test project, make sure run is checked in
# the build step, and then delete the Test Host setting.
# Also, make sure you have the colored and open4 gems installed.
require 'rubygems'
require 'colored'
require 'pathname'
#! /bin/sh
# Takes a provisioning profile and installs it into the system path.
# This requires poking inside the provisioning profile and searching for the
# UUID present at the end of the file.
set -e
if [[ -z "$1" ]]
then
Pod::Spec.new do |s|
s.name = "VLMHarlemShake"
s.version = "0.0.1"
s.summary = "A harlem shake implementation for iOS."
s.homepage = "https://github.com/velos/VLMHarlemShake"
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = 'Velos Mobile'
s.source = { :git => "https://github.com/velos/VLMHarlemShake.git", :commit => "6d3d2949bb8ed17e9f20d2475ca9623d9bd50b69" }
s.platform = :ios
s.source_files = 'VLMHarlemShake/*.{h,m}'
@jk
jk / HCYoutubeParser.podspec
Last active December 11, 2015 10:49
Intermediate HCYoutubeParser podspec to prepare a pull request
Pod::Spec.new do |s|
s.name = "HCYoutubeParser"
s.version = "0.0.1"
s.summary = "Retrieves the iOS compatible video URL from YouTube."
s.description = "HCYoutubeParser is a class which lets you get the iOS compatible video url from YouTube so you don't need to use a UIWebView or open the YouTube Application."
s.homepage = "https://github.com/hellozimi/HCYoutubeParser"
s.license = 'Public Domain'
s.author = "hellozimi"
s.source = {
public class JobSearchResult extends ArrayList<Job> {
private static final long serialVersionUID = 2542664369364990152L;
private static final JobSearchResult INSTANCE = new JobSearchResult();
public static JobSearchResult getInstance() {
return INSTANCE;
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<!--
This configuration file was written by the eclipse-cs plugin configuration editor
-->
<!--
Checkstyle-Configuration: Android Best Practise
Description: none
-->
<?xml version="1.0"?>
<!DOCTYPE suppressions PUBLIC
"-//Puppy Crawl//DTD Suppressions 1.1//EN"
"http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
<suppressions>
<!-- Turn off all checks for some libraries. -->
<suppress checks="." files="com[\\/]google[\\/]..*.java" />
<!-- Turn off header checks for some libraries. -->
<suppress checks="Header" files=".*[\\/]android[\\/]fastroid[\\/].*\.java"/>
Pod::Spec.new do |s|
s.name = 'MKInfoPanel'
s.version = '0.0.2'
s.summary = 'Non-modal, non-intrusive Info Panel implementation as seen ' \
'on some "popular" apps.'
s.homepage = 'http://blog.mugunthkumar.com/coding/ios-code-tweetbot-like-alertpanels/'
s.author = { 'Mugunth Kumar' => '[email protected]', 'Jens Kohl' => '[email protected]' }
s.source = { :git => 'https://github.com/jk/MKInfoPanelDemo.git',
:commit => '4438a30f72d542f6cff94e8def97cb04988afc34' }
s.resources = 'MKInfoBundle/*.{png,xib}'
@jk
jk / Calabash.podspec
Created October 27, 2012 20:35
Calabash
Pod::Spec.new do |s|
s.name = 'Calabash'
s.version = '0.9.80'
s.license = 'Eclipse Public License 1.0'
s.platform = :ios
s.summary = 'Calabash is an automated testing technology for Android and iOS native and hybrid applications.'
s.homepage = 'https://github.com/calabash/calabash-ios'
s.author = { 'Karl Krukow' => '[email protected]' }
s.source = { :git => 'https://github.com/calabash/calabash-ios-server.git', :tag => 'v0.9.80' }