Author: Chris Lattner
| [alias] | |
| tracking = "!f() { git for-each-ref --format '%(refname:short):%(upstream:short)' 'refs/heads' | egrep -v ':$'; }; f" | |
| is-clean-workdir = "!f() { git diff --stat --exit-code || { echo \"Workdir dirty\"; exit 1; }; }; f" | |
| is-clean-index = "!f() { git diff --stat --cached --exit-code || { echo \"Index dirty\"; exit 2; }; }; f" | |
| is-clean = "!f() { git is-clean-workdir && git is-clean-index; }; f" | |
| co-merge = "!f() { local=\"$1\"; remote=\"$2\"; git checkout \"$local\"; git merge --ff-only \"$remote\"; }; f" | |
| current-branch = rev-parse --abbrev-ref HEAD | |
| sync = "!f() { git is-clean || { echo Aborting sync.; exit 1; }; current=$(git current-branch); git fetch --all; git tracking | while IFS=: read local remote; do echo \"Merging $local with $remote\"; git co-merge \"$local\" \"$remote\"; done 3>&1 1>&2 2>&3 | egrep -i --color 'fatal|$' 3>&1 1>&2 2>&3; git checkout \"$current\"; }; f" |
| curl -I -X OPTIONS \ | |
| -H "Origin: http://EXAMPLE.COM" \ | |
| -H 'Access-Control-Request-Method: GET' \ | |
| http://EXAMPLE.COM/SOMETHING 2>&1 | grep 'Access-Control-Allow-Origin' |
- Use
curlto get the JSON response for the latest release - Use
grepto find the line containing file URL - Use
cutandtrto extract the URL - Use
wgetto download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \| package main | |
| import ( | |
| "bytes" | |
| "compress/gzip" | |
| "encoding/gob" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "os" |
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
- Ensure any install or build dependencies are removed before the end of the layer when doing a
| #This is ho you should edit your conkyrc file in order to get the spotify player. | |
| #################### | |
| # - MEDIA PLAYER - # | |
| #################### | |
| ${if_running spotify}${voffset -2}${font Liberation Sans:style=Bold:size=8} | |
| ${voffset -10}${goto 73}Title: | |
| ${goto 73}${color2}${exec ~/.conkycolors/spotify/spotify_info_title}${color} | |
| ${goto 73}Artist: |
A compilation of software development techniques using Steve Ballmer as a mentor. Feel free to fork & add.
- If you don't get want you want talk louder then your opponent [http://www.businessinsider.com/steve-ballmer-retiring-2014-3]
- If that doesn't work throw a chair [http://www.wired.com/wiredenterprise/2011/11/cloud-foundry/]
- Use the nuclear option (leaving the project) as leverage [http://www.businessweek.com/news/2014-03-05/microsoft-ceo-nadella-inherits-legacy-of-ballmer-board-division#p1]
- If a compromise is the result use the nuclear option anyways [http://www.quickmeme.com/Blackjack-Bender]
- When your plan fails place blame on not adopting your plan sooner [http://www.theregister.co.uk/2014/03/04/microsoft_steve_ballmer_oxford/]
- The best way to achieve market share is developers, developers, developers.
⇐ back to the gist-blog at jrw.fi
Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.
I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.
This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso
