This file contains hidden or 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 | |
# vim: set filetype=python : | |
""" | |
Synopsis | |
================================ | |
*objcfmt* is the code formatter for Objective-C source programs. |
This file contains hidden or 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
#/bin/bash | |
# | |
# itunes.sh - Control Your iTunes from shell | |
# | |
TRACK_PROGRAM=`cat <<EOS | |
tell current track | |
name & " - " & artist | |
end tell | |
EOS` |
This file contains hidden or 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 tiny module provides ANSI color formatting. | |
ANSI escape code - Wikipedia, the free encyclopedia | |
http://en.wikipedia.org/wiki/ANSI_escape_code | |
>>> colorize("") | |
'' | |
>>> colorize("black and white") | |
'black and white' |
This file contains hidden or 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
def iterate_recursively(*objects): | |
""" | |
Makes an iterator that returns elements from the `objects` argument. | |
If an element is a list or tuple, the element will be iterated | |
recursively, and the iterator returns each items. | |
>>> list(iterate_recursively(1, 2, 3)) | |
[1, 2, 3] | |
>>> list(iterate_recursively([1, 2, 3])) | |
[1, 2, 3] |
This file contains hidden or 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 | |
""" | |
The **runtests.py** script supports simple test discovery (both `doctest`_ and `unittest`_) | |
and running discovered tests. | |
* ``-s DIRECTORY`` Directory to start discovery ('.' default) | |
* ``-t DIRECTORY`` Top level directory of project (default to start directory) | |
How to use:: |
This file contains hidden or 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
# lisp.rb - The LISP expressed with Ruby | |
# | |
# * Program code can be written in Ruby's data structures (Array, Symbol, ...) | |
# * LISP-2 (http://en.wikipedia.org/wiki/Lisp-1_vs._Lisp-2#The_function_namespace) | |
# | |
# "THE ROOTS OF LISP" by Paul Graham | |
# http://www.paulgraham.com/rootsoflisp.html | |
# | |
require 'strscan' |
This file contains hidden or 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
--- include/llvm-c/Core.h 2010-03-04 08:51:25.000000000 +0900 | |
+++ ../llvm-2.8/include/llvm-c/Core.h 2010-08-28 13:09:24.000000000 +0900 | |
@@ -204,8 +204,7 @@ | |
LLVMPointerTypeKind, /**< Pointers */ | |
LLVMOpaqueTypeKind, /**< Opaque: type with unknown structure */ | |
LLVMVectorTypeKind, /**< SIMD 'packed' format, or other vector type */ | |
- LLVMMetadataTypeKind, /**< Metadata */ | |
- LLVMUnionTypeKind /**< Unions */ | |
+ LLVMMetadataTypeKind /**< Metadata */ | |
} LLVMTypeKind; |
This file contains hidden or 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 | |
rm -rf "${HOME}/Library/Caches/CocoaPods" | |
rm -rf "`pwd`/Pods/" | |
pod update |
This file contains hidden or 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
// ## inserting. this can be done in viewDidLoad | |
// this can be any view, here I'm adding to main view | |
UIView *containerView = self.view; | |
// load child controller | |
UIViewController *svc = [[UIViewController alloc] initWithNibName:nil bundle:nil]; | |
// kill the randomness | |
svc.view.translatesAutoresizingMaskIntoConstraints = NO; | |
// add child VC to hierarchy | |
[self addChildViewController:svc]; | |
// set initial rect |
This file contains hidden or 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
#!/bin/bash | |
# This script builds the iOS and Mac openSSL libraries | |
# Download openssl http://www.openssl.org/source/ and place the tarball next to this script | |
# Credits: | |
# https://github.com/st3fan/ios-openssl | |
# https://github.com/x2on/OpenSSL-for-iPhone/blob/master/build-libssl.sh | |
OlderNewer