Short excursion into git --track, --set-upstream and --set-upstream-to.
All examples use the aliases co for checkout and br for branch.
Setup:
$ git clone git@github.com:AKSW/OntoWiki.git
| // voice toggle for clutching | |
| alias "clutchtoggle" "clutchon" | |
| alias "clutchon" "voice_scale 0;cl_showfps 0;alias clutchtoggle clutchoff" | |
| alias "clutchoff" "voice_scale 0.1;cl_showfps 1;alias clutchtoggle clutchon" | |
| bind "mouse3" "clutchtoggle" | |
| alias "voicetoggle" "voiceon" | |
| alias "voiceon" "voice_enable 1;say_team voice_enable 1;alias voicetoggle voiceoff" | |
| alias "voiceoff" "voice_enable 0;say_team voice_enable 0;alias voicetoggle voiceon" | |
| bind "u" "voicetoggle" |
| // Server config | |
| sv_cheats 1 | |
| mp_limitteams 0 | |
| mp_autoteambalance 0 | |
| mp_maxrounds 999 | |
| mp_roundtime 60 | |
| mp_roundtime_defuse 60 | |
| mp_maxmoney 60000 | |
| mp_startmoney 60000 | |
| mp_freezetime 0 |
Short excursion into git --track, --set-upstream and --set-upstream-to.
All examples use the aliases co for checkout and br for branch.
Setup:
$ git clone git@github.com:AKSW/OntoWiki.git
| . | |
| ├── actions | |
| ├── stores | |
| ├── views | |
| │ ├── Anonymous | |
| │ │ ├── __tests__ | |
| │ │ ├── views | |
| │ │ │ ├── Home | |
| │ │ │ │ ├── __tests__ | |
| │ │ │ │ └── Handler.js |
| /** @jsx React.DOM */ | |
| 'use strict'; | |
| var React = require("react/addons"); | |
| var _ = require("lodash"); | |
| var $ = require("jquery"); | |
| var AtomReact = require("atom-react"); | |
| var classNames = require('classnames'); |
| sudo apt-get update | |
| sudo apt-get install nginx | |
| #default website |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParentelem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeightelem.getClientRects(), elem.getBoundingClientRect()| package main | |
| import "strconv" | |
| import "fmt" | |
| type Color string | |
| type Make string | |
| type Model string | |
| const ( |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| // Comment: http://stackoverflow.com/questions/33643290/how-do-i-get-a-hold-of-the-store-dispatch-in-react-router-onenter/34278483#34278483 | |
| // User: http://stackoverflow.com/users/184532/kjs3 |