- Install Tampermonkey
- Create new user script and paste the contents of
userscript.jsthere
This file contains hidden or 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
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>Scrolly cart trial</title> | |
| <style> | |
| * { | |
| box-sizing: border-box; | |
| } | |
| body { |
This file contains hidden or 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
| ["log", "info", "warn", "error"].forEach(function (k) { | |
| var originalFn = console[k]; | |
| console[k] = function (s, o) { | |
| if (arguments.length == 1 && typeof(s) == "string") { | |
| originalFn.call(this, s + " " + JSON.stringify({message: s})); | |
| return; | |
| } | |
| if (arguments.length == 2 && typeof(s) == "string" && typeof (o) == "object") { |
This file contains hidden or 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
| dominykas@patti ~/.npm/lodash/0.5.2 $ tail -n 6 /Users/dominykas/devel/projects/iw-insidewarehouse/apps/os-run/node_modules/buster/node_modules/buster-test-cli/node_modules/ramp/node_modules/ramp-resources/node_modules/lodash/package.json | |
| "dist": { | |
| "shasum": "0809fb891235993d6497dd6b526fb92cefa01768" | |
| }, | |
| "_from": "lodash@~0.5", | |
| "_resolved": "https://registry.npmjs.org/lodash/-/lodash-0.5.2.tgz" | |
| } | |
| dominykas@patti ~/.npm/lodash/0.5.2 $ shasum package.tgz | |
| 0809fb891235993d6497dd6b526fb92cefa01768 package.tgz |
This file contains hidden or 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
| Cmnd_Alias NFS_APPLY = /usr/sbin/exportfs -ar | |
| Cmnd_Alias NFS_START = /etc/init.d/nfs-kernel-server start | |
| Cmnd_Alias NFS_RESTART = /sbin/service nfs restart | |
| Cmnd_Alias EXPORT_CLEANUP = /bin/sed -r -e * -ibak /etc/exports | |
| Cmnd_Alias EXPORT_ADD = /usr/bin/tee -a /etc/exports | |
| %vboxusers ALL=(root) NOPASSWD: NFS_APPLY, NFS_START, NFS_RESTART, EXPORT_CLEANUP, EXPORT_ADD |
This file contains hidden or 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
| Parse('https://news.ycombinator.com/item?id=7216471') | |
| .filter('#element:.comment') | |
| .filter('#text') | |
| .filter(function (text) { | |
| return text !='reply' | |
| }) | |
| .join('') | |
| .then(function (comments) { | |
| console.log(comments); | |
| process.exit(0); |
This file contains hidden or 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
| <html> | |
| <head> | |
| <title>Scrolly grid test</title> | |
| <style> | |
| .container { | |
| padding: 4px; | |
| width: 600px; | |
| background-color: rgba(0,0,0,.1); | |
| -moz-box-sizing: border-box; |
This file contains hidden or 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 config = module.exports; | |
| config["reduced-test-case"] = { | |
| rootPath: ".", | |
| environment: "browser", | |
| sources: [ | |
| "dostuff.js" | |
| ], | |
| tests:[ | |
| "test.js" |
This file contains hidden or 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
| For http://localhost:3000/1 the following output will be produced: | |
| Matched /:id | |
| [ id: '1' ] | |
| Matched /* | |
| [ '1' ] | |
| Timeout in /:id | |
| [ '1' ] | |
| Notice how req.params inside the /:id handler has changed. |