Skip to content

Instantly share code, notes, and snippets.

View jwlms's full-sized avatar

Joshua Williams jwlms

View GitHub Profile
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

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?
/*
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 July 15, 2013 23:51
don't nest too deep
.menu-toggle { ... // ok
.menu-toggle {
ul {
... // ok
}
}
.menu-toggle {
ul {
li {
@jwlms
jwlms / mq nesting
Created July 15, 2013 23:48
media query 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;
}