A little lookup for commands I use frequently
- Commit all edited files and add a message
git commit -a -m "My commit"
- Add all new files
git add .
<?php | |
// Resizer and Image Manipulation | |
// Based on: http://forums.laravel.com/viewtopic.php?id=2648 | |
public function post_edit_logo($id) | |
{ | |
$rules = array( | |
'image' => 'image', | |
); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" | |
content="text/html; charset=utf-8" /> | |
<script src="jquery-1.7.2.min.js" ></script> | |
<script src="handlebars-1.0.0.beta.6.js" ></script> | |
<script src="underscore-min.js" ></script> | |
<script src="backbone-min.js" ></script> |
sudo chmod -R 777 system/cms/cache | |
sudo chmod -R 777 system/cms/config | |
sudo chmod -R 777 addons | |
sudo chmod -R 777 system/cms/cache | |
sudo chmod -R 777 uploads | |
sudo chmod -R 666 system/cms/config/config.php |
; Variables definition | |
; ----------------------------------------------------------------------------- | |
EnvGet, userProfile, USERPROFILE | |
Software := userProfile . "\Dropbox\software\" | |
; Launch or toggle program, http://lifehacker.com/5468862/create-a-shortcut-key-for-restoring-a-specific-window | |
; ----------------------------------------------------------------------------- | |
ToggleWinMinimize(WindowTitle) | |
{ | |
SetTitleMatchMode,2 |
{ | |
"files": | |
{ | |
"backbone": "http://documentcloud.github.com/backbone/backbone.js", | |
"backbone-min": "http://documentcloud.github.com/backbone/backbone-min.js", | |
"jquery": "http://code.jquery.com/jquery.min.js", | |
"json2": "https://github.com/douglascrockford/JSON-js/raw/master/json2.js", | |
"normalize": "https://raw.github.com/necolas/normalize.css/master/normalize.css", | |
"raphael": "http://github.com/DmitryBaranovskiy/raphael/raw/master/raphael-min.js", | |
"reset": "http://meyerweb.com/eric/tools/css/reset/reset.css", |
A little lookup for commands I use frequently
git commit -a -m "My commit"
git add .
// Get a reference to the image element | |
var elephant = document.getElementById("elephant"); | |
// Take action when the image has loaded | |
elephant.addEventListener("load", function () { | |
var imgCanvas = document.createElement("canvas"), | |
imgContext = imgCanvas.getContext("2d"); | |
// Make sure canvas is as big as the picture | |
imgCanvas.width = elephant.width; |
This gist assumes:
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.
Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications
like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.
open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl
You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html