KVC with special keyPath is really powerful for collection objects like NSArray and NSDictionary and NSSet
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
| /* | |
| File: KeychainItemWrapper.h | |
| Abstract: | |
| Objective-C wrapper for accessing a single keychain item. | |
| Version: 1.2 - ARCified | |
| Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple | |
| Inc. ("Apple") in consideration of your agreement to the following | |
| terms, and your use, installation, modification or redistribution of |
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
| { | |
| //Sets the colors used for text highlighting. Accepts a path rooted at the data directory (e. g.: Packages/Color Scheme - Default/Monokai Bright.tmTheme). | |
| "color_scheme": "Packages/Made of Code.tmTheme", | |
| //Font face to be used for editable text. | |
| "font_face": "menlo", | |
| //Size of the font for editable text. | |
| "font_size": 12, |
Copy this file to: /Library/LaunchDaemons/fwd-80-to-3000.plist and then reboot:
$ sudo -s
$ curl -L https://gist.github.com/TooTallNate/3372589/raw/ace6451e9e47f59550f12d09cb924a64531cfd1f/fwd-80-to-3000.plist > /Library/LaunchDaemons/fwd-80-to-3000.plist
$ reboot
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
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Sascha Depold http://depold.com | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
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 | |
| # install homebrew's official php tap | |
| brew tap josegonzalez/homebrew-php | |
| # install homebrew-dupes (required to install zlib, php54's dependency) | |
| brew tap homebrew/dupes | |
| # install nginx + mysql + php 5.4 + php-fpm + apc + xdebug | |
| brew install nginx mysql |
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
| // | |
| // Copyright (c) 2012-2015 Cédric Luthi / @0xced. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> | |
| #if TARGET_OS_SIMULATOR | |
| static const char *fakeCarrier; | |
| static const char *fakeTime; |
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/sh | |
| function get_project_path() | |
| { | |
| echo $(pwd | sed 's/\/home\/git\/repositories\///' | sed 's/\.git$//') | |
| } | |
| branch=$(git rev-parse --symbolic --abbrev-ref $1) | |
| if [ $branch == "hml" ] | |
| then |
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
| #Copyright (c) 2012 Vipin Nair <swvist@gmail.com> | |
| #Permission is hereby granted, free of charge, to any person obtaining a copy of | |
| #this software and associated documentation files (the "Software"), to deal in | |
| #the Software without restriction, including without limitation the rights to | |
| #use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
| #of the Software, and to permit persons to whom the Software is furnished to do | |
| #so, subject to the following conditions: | |
| #The above copyright notice and this permission notice shall be included in all |