This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Go to package repo page | |
npm repo $package | |
# Go to package home page | |
npm home $package | |
# List outdated packages | |
npm outdated | |
# Remove extraneous packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your snippets | |
# | |
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to | |
# expand the prefix into a larger code block with templated values. | |
# | |
# You can create a new snippet in this file by typing "snip" and then hitting | |
# tab. | |
# | |
# An example CoffeeScript snippet to expand log to console.log: | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CSS | |
# add missing semicolon to last property | |
([^;])$(\n}) | |
$1;$2 | |
# Shorten hex color values | |
#([\da-f])\1([\da-f])\2([\da-f])\3\b | |
#$1$2$3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Print to console": { | |
"prefix": "conl", | |
"body": [ | |
"console.log($1);" | |
], | |
"description": "Log output to console" | |
}, | |
"Print info to console": { | |
"prefix": "coni", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker image rm --force $(docker image ls | awk '$1 == "<none>" {print $3}') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('E-Learning Boost Activated'); | |
let initialized = false; | |
function getAnswerWindow() { | |
let win = window; | |
while (win.window.length > 0) { | |
win = win.window[1]; | |
} | |
return win; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
FILE_COUNT=$(git status | grep 'modified:' | wc -l) | |
if [ $FILE_COUNT -gt 100 ] ; then | |
echo "File count is 100+, skipping pre-commit validation" | |
exit 0 | |
fi | |
FAILED=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// test arrays | |
var x = [1, 2, 3]; | |
var y = [1, 3, 2]; | |
var z = [3, 2, 1]; | |
// global swap counter | |
var swaps = 0; | |
// custom sort function that counts swaps | |
function swapcount(a, b){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:latest | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app | |
COPY package.json /usr/src/app/ | |
RUN npm install | |
COPY . /usr/src/app | |
EXPOSE 8000 | |
CMD [ "npm", "start" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"docs":"css/d3~4/docker~17/dom/dom_events/eslint/express/git/html/http/javascript/moment/mongoose/node/npm/ruby~2.3/rails~4.1/sinon~4/webpack"} |