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
| xsetwacom list | |
| Wacom Intuos4 8x13 stylus id: 14 type: STYLUS | |
| Wacom Intuos4 8x13 eraser id: 15 type: ERASER | |
| Wacom Intuos4 8x13 cursor id: 16 type: CURSOR | |
| Wacom Intuos4 8x13 pad id: 17 type: PAD | |
| xsetwacom --get "Wacom Intuos4 8x13 stylus" all | |
| Option "Area" "0 13208 65024 40640" | |
| 'Button' requires exactly 1 value(s). |
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
| SyntaxError: /home/pomke/code/iona/handlers.js: Unexpected token (31:51) | |
| 29 | log(msg); | |
| 30 | | |
| > 31 | let handler = avatar[sig] || (msg, cb) => { | |
| | ^ | |
| 32 | return cb('invalid signal'); | |
| 33 | }; | |
| 34 | |
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
| template = """ | |
| These are my inputs: | |
| %s | |
| These are my outputs: | |
| %s | |
| """ |
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
| Office-supplies: | |
| Tissues | |
| USB sticks 5 | |
| sharpies / thick markers 5 | |
| paper for signs / butchers paper? |
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
| function prepData(data) { | |
| let out = []; | |
| Object.keys(data).forEach(function(k) { | |
| let o = data[k]; | |
| let variants = []; | |
| let first, latest; | |
| let dist = o.distribution; | |
| let total = 0; | |
| Object.keys(o.count).forEach(function(c) { |
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
| /* Got an odd bug using duckduckgo searching for "lucifer's hammer" | |
| * turns out search results from wikipedia are not escaped. DDG loads: | |
| * https://duckduckgo.com/t.js?q=lucifer%27s%20hammer&t=A&l=au-en&p=1&s=0&a=ffab&ct=AU&sp=0 | |
| * which contains: | |
| */ | |
| nrj('/f.js?u=https://en.wikipedia.org/wiki/Lucifer's_Hammer'); | |
| // ^ note the unescaped wikipedia URL | |
| /* potentially you could create a wikipedia page titled "somebank';window.location='somebank.fishingsite..." |
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
| <div> | |
| <div class='list'> | |
| <div class='item'>abc</div> | |
| <div class='item'>abc</div> | |
| <div class='item'>abc</div> | |
| <div class='item'>abc</div> | |
| </div> | |
| <img src='http://google.com/logo.png'/> | |
| </div> |
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 path = require('path'); | |
| var fs = require('fs'); | |
| module.exports = function(context) { | |
| this.cachable(true); | |
| //this.addDependency(path); | |
| } | |
| module.exports.pitch = function(remainingRequest, precedingRequest, data) { | |
| var self = this; |
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
| { '0': 92, | |
| '1': 86, | |
| '2': 114, | |
| '3': 104, | |
| '4': 94, | |
| '5': 98, | |
| '6': 91, | |
| '7': 104, | |
| '8': 106, | |
| '9': 94, |
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
| -- Create 100 schemas shard_001 - shard_100 | |
| DO $shards$ | |
| BEGIN | |
| FOR i IN 1..100 LOOP | |
| DECLARE shardID TEXT := CONCAT('shard_', to_char(i, 'FM000')); | |
| EXECUTE 'CREATE SCHEMA IF NOT EXISTS $1 AUTHORIZATION iflix;' | |
| INTO c USING shardID; | |
| END LOOP; | |
| END $shards$; |