Skip to content

Instantly share code, notes, and snippets.

Avatar

Joshua Williams jwlms

View GitHub Profile
View gist:c6d57f61774dd9976652
function reinstall-npm-bower() {
CONT=
vared -p "Are you sure you want to update npm and bower dependancies? (y/n)? " CONT
if [ "$CONT" == "y" ]; then
install-npm-bower
echo "\n\n\n"
echo $fg[green] "Done!"
else
echo $fg[green] "Ok then!"
fi
View intro-to-ember-cli-node.md

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.

Overview

  • 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: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"]} },
@jwlms
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 {
@jwlms
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;
}