Skip to content

Instantly share code, notes, and snippets.


Ash zivc

View GitHub Profile
View gist:395b6c3c1e503193c0fb
This file has been truncated, but you can view the full file.
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'install' ]
2 info using npm@3.3.12
3 info using node@v5.5.0
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly install normalizeTree
8 silly loadCurrentTree Finishing
View gist:da8080ffc7dc2dc773c9
This file has been truncated, but you can view the full file.
2001 silly mapToRegistry uri
2002 verbose addRemoteTarball not in flight; adding
2003 verbose addRemoteTarball [ '',
2003 verbose addRemoteTarball '71c08bf6b428b1133f37e78fa3a21c82f7329b0d' ]
2004 info retry fetch attempt 1 at 11:46:24 PM
2005 info attempt registry request try #1 at 11:46:24 PM
2006 http fetch GET
2007 silly cache afterAdd lodash@2.4.2
2008 verbose afterAdd /Users/Ash/.npm/lodash/2.4.2/package/package.json not in flight; writing
zivc / index.html
Last active Aug 29, 2015
array and key in ngOptions (
View index.html
<!DOCTYPE html>
<html ng-app="demo">
<script data-require="angular.js@*" data-semver="1.4.0-beta.2" src=""></script>
<link rel="stylesheet" href="style.css" />
<script src="script.js"></script>
zivc / user24.js
Last active Aug 29, 2015
Get every element that has 100% width
View user24.js
[]'*'), function($element) {
var style = window.getComputedStyle($element);
console.log(style.width == "100%" || (style.display == "block" && style.width == "auto"));
zivc / inviteall.js
Created Oct 5, 2014
Invite all friends to an event on Facebook javascript
View inviteall.js
Scroll to the bottom of the lazy loading list and then put this in your console
function(friend) {
if (friend.className.indexOf('disabledCheckable')<0) { // check to make sure that they're not already invited;
zivc / Three column layout with fixed width middle column
Created Sep 16, 2014
Three column layout with one column centered with a fixed size and the two other columns filling the empty voids.
View Three column layout with fixed width middle column
<!DOCTYPE html>
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
View mostAnnoyingConsoleFunctionEver.js
var log = console.log;
console.log = function(str) {
var css = 'background: linear-gradient(to right, red, yellow, lime, aqua, blue, fuchsia, red); color: white; font-weight: bold;';
var args =;
args[0] = '%c' + args[0];
var speech = new SpeechSynthesisUtterance();