Skip to content

Instantly share code, notes, and snippets.

Avatar

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 https://registry.npmjs.org/underscore.string
2002 verbose addRemoteTarball https://registry.npmjs.org/underscore.string/-/underscore.string-2.3.3.tgz not in flight; adding
2003 verbose addRemoteTarball [ 'https://registry.npmjs.org/underscore.string/-/underscore.string-2.3.3.tgz',
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 https://registry.npmjs.org/underscore.string/-/underscore.string-2.3.3.tgz
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
zivc / index.html
Last active Aug 29, 2015
array and key in ngOptions (plnkr.co)
View index.html
<!DOCTYPE html>
<html ng-app="demo">
<head>
<script data-require="angular.js@*" data-semver="1.4.0-beta.2" src="https://code.angularjs.org/1.4.0-beta.2/angular.js"></script>
<link rel="stylesheet" href="style.css" />
<script src="script.js"></script>
</head>
<body>
@zivc
zivc / user24.js
Last active Aug 29, 2015
Get every element that has 100% width
View user24.js
[].forEach.call(document.querySelectorAll('*'), function($element) {
var style = window.getComputedStyle($element);
console.log(style.width == "100%" || (style.display == "block" && style.width == "auto"));
});
@zivc
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
*/
[].forEach.call(
document.querySelectorAll('.multiColumnCheckable.checkableListItem'),
function(friend) {
if (friend.className.indexOf('disabledCheckable')<0) { // check to make sure that they're not already invited
friend.click();
}
}
@zivc
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>
<html>
<head>
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
</head>
<body>
View mostAnnoyingConsoleFunctionEver.js
(function(){
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 = Array.prototype.slice.call(arguments);
args[0] = '%c' + args[0];
args.splice(1,0,css);
var speech = new SpeechSynthesisUtterance();