Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
Did you upgrade to rails 3 yet? | |
I made a rake task for that. | |
1.8.7, or 1.9.3? | |
Did you know there's a rake task for that? | |
Did you upgrade to rails 3.1 yet? | |
Did you see my pull request? | |
Did you upgrade to rails 3.2 yet? | |
I commented on your pull request. | |
You need to run bundle install first | |
rb-env or rvm? |
This gist was moved to its own repo to allow contributions: https://github.com/danguita/osx-for-developers. Feel free to pull request!
# Python Help | |
python -h | |
# Calendar | |
python -m calendar | |
python -m calendar -h | |
python -m calendar 1999 | |
# Zip and Gzip Tools | |
python -m zipfile -l pcblib.zip |
This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.
Here are the required steps to create a command:
Create a new Gist with a command.js
and command.json
file, or simply fork this one.
Write your JavaScript in command.js
. This will be injected into and executed on the page the user is currently on when they run it.
Add some metadata to the command.json
file:
# creates an empty array for the user's inventory | |
@inventory = [] | |
# this is the command prompt method | |
def prompt() | |
print "Enter command > " | |
end | |
# shows a list of viable commands when a user enters "help" at the command prompt | |
def help() |
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
// iMacro CheatSheet - Command Reference | |
// http://wiki.imacros.net/Command_Reference | |
// iMacros supports 3 types of variables: | |
// * The macro variables !VAR0 thru !VAR9. They can be used with the SET and ADD command inside a macro. | |
// * Built-in variables. They contain certain values set by iMacros. | |
// * User-defined variables. They are defined in-macro using the SET command. | |
/** | |
Usage: | |
let originalImage = UIImage(named: "cat") | |
let tintedImage = originalImage.tintWithColor(UIColor(red: 0.9, green: 0.7, blue: 0.4, alpha: 1.0)) | |
*/ | |
extension UIImage { | |
func tintWithColor(color:UIColor)->UIImage { |