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
| // This will open up a prompt for text to send to a console session on digital ocean | |
| // Useful for long passwords | |
| (function () { | |
| var t = prompt("Enter text to be sent to console, (This wont send the enter keystroke)").split(""); | |
| function f() { | |
| var character = t.shift(); | |
| var i=[]; | |
| var code = character.charCodeAt(); | |
| var needs_shift = "!@#$%^&*()_+{}:\"<>?~|".indexOf(character) !== -1 |
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
| // ==UserScript== | |
| // @name Trello card title Markdown | |
| // @version 0.4.0 | |
| // @homepage https://gist.github.com/gorbiz/6062481 | |
| // @description Add support for bold and emphasized Markdown in card titles | |
| // @match https://trello.com/b/* | |
| // @match http://trello.com/b/* | |
| // ==/UserScript== | |
| function markdownAll() { |
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
| const replace = func => obj => obj.replace(func) | |
| const map = func => obj => obj.map(func) | |
| const getProp = prop => obj => obj.get(prop) | |
| const allStreets = compose(map(getProp('street')), getProp('addresses')) | |
| const updateUser = user => | |
| allStreets(user) | |
| .map(replace(/\d+/, '****')) |
NewerOlder