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
# http://henrik.nyh.se/2008/12/git-dirty-prompt | |
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/ | |
# | |
# boosty likes it like that: | |
# ~/dev/dir[master]$ # clean working directory | |
# ~/dev/dir[master⚡]$ # dirty working directory | |
function parse_git_dirty { | |
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "⚡" | |
} |
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
require 'rubygems' | |
require 'mongo' | |
require 'benchmark' | |
conn = Mongo::Connection.new | |
db = conn.db("mydb") | |
coll = db["test"] | |
# time = Benchmark.realtime do | |
# 1_000_000.times do |
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
javascript:(function(){var styles='* { overflow: visible !important }';var css=document.createElement('style');css.type='text/css';css.appendChild(document.createTextNode(styles));document.getElementsByTagName("head")[0].appendChild(css);})(); |
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
tell application "Skype" | |
send command "SET USERSTATUS DND" script name "pomodoro" | |
end tell | |
tell application "Mail" to quit | |
tell application "Tweetie" to quit |
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
From PrivateFrameworks/Bom.framework: | |
U _BOMCopierCopyWithOptions | |
U _BOMCopierCountFilesInArchive | |
U _BOMCopierFree | |
U _BOMCopierNew | |
U _BOMCopierSetCopyFileFinishedHandler | |
U _BOMCopierSetCopyFileStartedHandler | |
U _BOMCopierSetCopyFileUpdateHandler | |
U _BOMCopierSetFatalErrorHandler | |
U _BOMCopierSetFatalFileErrorHandler |
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/perl | |
=com | |
PURPOSE | |
This script will | |
Force you through a comprehensive quality-control checklist | |
Run Deploymate | |
Get the latest version number by reading it from product's Info.plist |
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
/** | |
* The examples provided by Facebook are for non-commercial testing and | |
* evaluation purposes only. | |
* | |
* Facebook reserves all rights not expressly granted. | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | |
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
* FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL | |
* FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN |
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
<br /><br /> | |
# React Native: Animated | |
ReactEurope 2015, Paris - Spencer Ahrens - Facebook | |
<br /><br /> | |
## Fluid Interactions | |
- People expect smooth, delightful experiences |
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
import UIKit | |
struct Payment { } | |
enum PaymentResponse { | |
case Accepted(Payment) | |
case Rejected(Payment) | |
} | |
// It's just an example for notifications. The rest can be safely ignored :) |
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
// It's just an example for notifications. The rest can be safely ignored :) | |
class HappyPaymentViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
PaymentNotifications.accepted.observe(self, | |
selector: #selector(HappyPaymentViewController.paymentNotificationReceived(_:))) | |
PaymentNotifications.rejected.observe(self, | |
selector: #selector(HappyPaymentViewController.paymentNotificationReceived(_:))) |
OlderNewer