Skip to content

Instantly share code, notes, and snippets.


Joshua Williams jwlms

View GitHub Profile
jwlms / mq nesting
Created Jul 15, 2013
media query nesting
View mq nesting
.svg #site-title a { // OK
@media( max-width: $w7 ) {
background: transparent url(images/flv-logo.svg) no-repeat 0 0;
.svg #site-title a { // no
@media( max-width: $w7 ) {
@media ( max-device-width: $ipad ) {
background: transparent url(images/flv-logo.svg) no-repeat 0 0;
jwlms / mq nesting
Created Jul 15, 2013
don't nest too deep
View mq nesting
.menu-toggle { ... // ok
.menu-toggle {
ul {
... // ok
.menu-toggle {
ul {
li {
View gist:bc07c3398439ecba1829
On OS X, basic text manipulations (left, right, command+left, etc) make use of the system key bindings,
and don't need to be repeated here. Anything listed here will take precedence, however.
{ "keys": ["super+shift+n"], "command": "new_window" },
{ "keys": ["super+shift+w"], "command": "close_window" },
{ "keys": ["super+o"], "command": "prompt_open" },
{ "keys": ["super+shift+t"], "command": "reopen_last_file" },
{ "keys": ["super+alt+up"], "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "h", "ipp", "inl", "m", "mm"]} },

Introduction To Node, NPM and Ember CLI

This guide is for developers who are new Node, NPM, and Ember CLI. This guide is designed to get you started with ember cli development and provide some general background info on what Node is and how it works with Ember CLI.


  • What is Node?
  • What is NPM?
  • How do I setup my environment if I don't have node js or npm installed?
  • I accidently installed something wrong how can I start over?
View gist:c6d57f61774dd9976652
function reinstall-npm-bower() {
vared -p "Are you sure you want to update npm and bower dependancies? (y/n)? " CONT
if [ "$CONT" == "y" ]; then
echo "\n\n\n"
echo $fg[green] "Done!"
echo $fg[green] "Ok then!"
View gist:7e3df4670c56bb418e53
gulp.task('test', function() {
return browserify().bundle()
View gist:12951f1a63339a3165f0
sudo wget -P /etc/apt/sources.list.d
sudo wget -P /etc/apt/trusted.gpg.d
sudo apt-get update
sudo apt-get install sslmate
View ssl-config
server {
#listening on port 443
listen 443 ssl;
#set site root
root /var/www/;
index index.php index.html;
#set key locations
ssl_certificate /etc/sslmate/;
View default-server
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
return 301$request_uri;
View gist:bf7afd0585c5d6cfbcaa
find . -name "*[format]" | while read line; do expand -t 4 $line > $; mv $ $line; done