/<ref>
(ref
: SHA or branch)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This will convert DateTime (.NET) object serialized as JSON by WCF to a NSDate object. | |
*/ | |
// Input string is something like: "/Date(1292851800000+0100)/" where | |
// 1292851800000 is milliseconds since 1970 and +0100 is the timezone | |
NSString *inputString = [item objectForKey:@"DateTimeSession"]; | |
// This will tell number of seconds to add according to your default timezone | |
// Note: if you don't care about timezone changes, just delete/comment it out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NSString+Punctuation.h | |
// by Ali Servet Donmez <asd NOSPAM pittle.org>, 2010 | |
// http://www.pittle.org/ | |
// | |
/* | |
* Requirements | |
* ------------ | |
* - "RegexKitLite" (http://regexkit.sourceforge.net/#RegexKitLite) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
"""Update by merging .strings file(s) of an Xcode project.""" | |
import os | |
import sys | |
import shlex | |
import shutil | |
import tempfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Autobot: create, setup and deploy Hubot on Heroku with Campfire adapter. | |
# | |
# USAGE: | |
# autobot.sh <path> | |
# | |
# Autobot will; | |
# 1. download and install all the Hubot machinery | |
# 2. create your very own Hubot instance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pod::Spec.new do |s| | |
s.name = 'Nimbus' | |
s.version = '0.9.3-arc-ios7' | |
s.license = 'Apache License, Version 2.0' | |
s.summary = 'An iOS framework whose growth is bounded by O(documentation).' | |
s.homepage = 'http://docs.nimbuskit.info/index.html' | |
s.author = { 'Jeff Verkoeyen' => 'jverkoey@gmail.com', | |
'Bubnov Slavik' => 'bubnovslavik@gmail.com', | |
'Roger Chapman' => 'rogchap@gmail.com', | |
'Manu Cornet' => 'manu.cornet@gmail.com', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"remove-empty-rulesets": true, | |
"always-semicolon": true, | |
"color-case": "lower", | |
"block-indent": " ", | |
"color-shorthand": false, | |
"element-case": "lower", | |
"eof-newline": true, | |
"leading-zero": true, | |
"quotes": "double", |
(Inspired by https://help.github.com/articles/generating-a-new-gpg-key/.)
Install Homebrew (we will use Homebrew package manager to install gpg
utility).
ℹ️ You could also install https://gpgtools.org instead, but I have no experience with it; so this guide will assume you have Homebrew installed.
Install gpg
using Homebrew:
brew install gpg
gpg --output <output path> --decrypt <encrypted file path>
# show without importing
gpg --import --import-options show-only foo.key
# import
gpg --import foo.key
# list all public & private keys (see what’s imported)
gpg --list-keys
OlderNewer