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
{ | |
"React Hook: Use State": { | |
"prefix": "us", | |
"body": [ | |
"const [${1:Value}, set${1/(.*)/${1:/capitalize}/}] = useState($2);", | |
], | |
"description": "useState" | |
}, | |
"React Hook: Use Effect": { | |
"prefix": "ue", |
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
// ==UserScript== | |
// @name HackerNews New Tab | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Open story and comment links in a new tab | |
// @author Nick Barone | |
// @match https://news.ycombinator.com/* | |
// ==/UserScript== | |
(function() { |
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
// ==UserScript== | |
// @name UCEUSA NY IPIRP DMV Defensive Driving Course Clicker | |
// @namespace http://nickbar.one | |
// @version 0.3 | |
// @author nbar1 | |
// @match https://*.uceusa.com/course-players/courses/* | |
// ==/UserScript== | |
(function() { | |
'use strict'; |
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
git tag -d TagName && git push origin :refs/tags/TagName |
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
function wash(socks) { | |
var socksYouHave = []; | |
var sockSizes = ['small', 'medium', 'large']; | |
socks.forEach(function(sock) { | |
// Weird socks never survive | |
if(sockSizes.indexOf(sock) === -1) return; | |
// One in ten socks never make it out alive | |
if(Math.floor(Math.random() * 10) === 0) return; | |
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
<CiscoIPPhoneExecute> | |
<ExecuteItem URL="Key:AppMenu" /> | |
<ExecuteItem URL="Key:KeyPad6" /> | |
<ExecuteItem URL="Key:KeyPad1" /> | |
</CiscoIPPhoneExecute> |
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
var kkeys = [], kcode = "38,38,40,40,37,39,37,39,66,65"; | |
$('body').on('keydown', function(e) { | |
kkeys.push(e.keyCode); | |
if(kkeys.toString().indexOf(kcode) >= 0) { | |
$(document).unbind('keydown', arguments.callee); | |
$("body").addClass('konami'); | |
} | |
}); |
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
vi -p `git status -s | cut -c4-` |