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
#!/usr/bin/env bash | |
((BASH_VERSINFO > 3)) || { | |
echo 'Requires Bash 4+' | |
exit | |
} | |
set -ux | |
echo foo 1 | tail "${tail_args[@]}" |
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
class CartStore { | |
constructor() { | |
this.products = []; | |
} | |
add(product) { | |
if (this.products.includes(product)) { | |
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
/** | |
* First, add `api.use('ecmascript');` to your package.js files. | |
* packages/project:modules-core/package.js: | |
**/ | |
Package.describe({ | |
name: 'project:modules-core', | |
summary: 'Core package for Modules.', | |
version: '1.0.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
javascript:$('#List .stable-head td :contains("'+prompt('Column')+'")').mouseup() |
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 Amazon Wishlist Total | |
// @namespace http://use.i.E.your.homepage/ | |
// @version 0.1 | |
// @description enter something useful | |
// @match http://www.amazon.com/gp/registry/wishlist/* | |
// @copyright 2012+, You | |
// @require http://code.jquery.com/jquery-latest.js | |
// ==/UserScript== |