Skip to content

Instantly share code, notes, and snippets.

@Zurc
Zurc / 0_reuse_code.js
Created November 9, 2016 16:29
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Zurc
Zurc / node-and-npm-in-30-seconds.sh
Created September 28, 2015 14:12 — forked from isaacs/node-and-npm-in-30-seconds.sh
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@Zurc
Zurc / html5.html
Last active August 29, 2015 14:18
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/main.css">
// Paul Irish talking about Chrome DevTools Timeline's new Frame Mode
http://www.youtube.com/watch?v=Vp524yo0p44
// Chrome Office Hours - troubleshooting paint times
http://www.youtube.com/watch?v=z0_jD8nO5Zw
// Break time to glass - youtube
http://youtu.be/Il4swGfTOSM
// Avoiding Unnecessary Paints