Skip to content

Instantly share code, notes, and snippets.

View hlfcoding's full-sized avatar
🇺🇦

Peng Wang hlfcoding

🇺🇦
View GitHub Profile
Pod::Spec.new do |s|
s.name = "Subliminal"
s.version = "1.0.1"
s.summary = "An understated approach to iOS integration testing."
s.description = <<-DESC
Subliminal provides an OCUnit/SenTest-like interface on top of Apple’s UIAutomation framework,
with tests written entirely in Objective-C.
Subliminal also provides a powerful mechanism for your tests to manipulate your application directly.
Visit Subliminal's website for [complete API documentation](http://inkling.github.io/Subliminal/Documentation/).
DESC
@hlfcoding
hlfcoding / TODO.sh
Last active December 27, 2015 18:09
TODOs and FIXMEs as Xcode warnings.
KEYWORDS="TODO:|FIXME:|\?\?\?:|\!\!\!:"
find "${SRCROOT}/${PROJECT}" \( -name "*.h" -or -name "*.m" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($KEYWORDS).*\$" | perl -p -e "s/($KEYWORDS)/ warning: \$1/"
@hlfcoding
hlfcoding / RestKit.podspec
Created June 7, 2013 12:32
For compatibility with older AFNetworking.
Pod::Spec.new do |s|
s.name = 'RestKit'
s.version = '0.20.2'
s.summary = 'RestKit is a framework for consuming and modeling RESTful web resources on iOS and OS X.'
s.homepage = 'http://www.restkit.org'
s.author = { 'Blake Watters' => 'blakewatters@gmail.com' }
s.source = { :git => 'https://github.com/RestKit/RestKit.git', :tag => 'v0.20.2' }
s.license = 'Apache License, Version 2.0'
# Platform setup
Pod::Spec.new do |s|
s.name = 'CargoBay'
s.version = '0.3.2'
s.license = 'MIT'
s.summary = 'The Essential StoreKit Companion.'
s.homepage = 'https://github.com/mattt/CargoBay'
s.authors = { 'Mattt Thompson' => 'm@mattt.me' }
s.source = { :git => 'https://github.com/mattt/CargoBay.git', :tag => '0.3.2' }
s.source_files = 'CargoBay'
s.requires_arc = true
@hlfcoding
hlfcoding / flickr-downloader.php
Last active December 11, 2015 18:28
Flickr photoset downloader. Simple and stupid.
<?php
# Config.
/*
Requires:
- Array of photo-ids, you can get them via the included js. Just run it in the console a bunch of times on the photo-set page. Crude but works.
- Public subdirectory from this script's location named 'photos'.
@hlfcoding
hlfcoding / metadata-call.js
Created May 31, 2012 00:28
treasure-hunt-snippets
// code that shows victory screen...
gapi.hangout.data.setValue(_ITEM_FOUND_KEY, JSON.stringify({
'item': item_data.id,
'found_by': Participants.getLocal()
}));
@hlfcoding
hlfcoding / !Blackboard-Improved-Theme.md
Last active November 6, 2018 08:11
Blackboard Improved Xcode, SublimeText, TextMate Theme

About

Customized version of the Blackboard Theme for a dark color scheme that is rich in colors, much like Solarized. Supports my custom JavaScript grammar (see http://hlfcoding.github.com/hlf-tmbundles/) for CoffeeScript-like zen.

ChangeLog

  • Support for Markdown Extended scopes.
  • Support for more meta patterns.
  • Baked in support for SublimeLinter (to avoid it duplicating the theme).
  • Minor improvements for CSS language.
@hlfcoding
hlfcoding / hlfcoding.fizzbuzz.js
Created January 17, 2012 20:43
FizzBuzz with a Twist
var i = 0, o;
while ((i++) < 100 && !(o = "")) {
o += (i % 3 === 0) ? "Fizz" : "";
o += (i % 5 === 0) ? "Buzz" : "";
console.log(o||i);
}