To test:
>>> from underhanded import login
>>> login("l3viathan", "12345678")
0Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would
| function runSaga(saga, ...args) { | |
| const generator = saga(...args); | |
| return execute(generator, []); | |
| } | |
| function* values(arr) { | |
| for (let i = 0; i < arr.length; i++) { | |
| yield arr[i]; | |
| } | |
| } |
| //nesting thens | |
| casper.then(function () { | |
| this.log('THEN #1', 'info', 'then'); | |
| this.then(function () { | |
| this.log('THEN #2', 'info', 'then'); | |
| this.then(function () { | |
| this.log('THEN #3', 'info', 'then'); | |
| }); | |
| this.log('THEN #4', 'info', 'then'); |
| $ redis-cli | |
| > config set stop-writes-on-bgsave-error no |
| // Compiles fine even though the code is broken. | |
| // This is because arrays are covariant and mutable. | |
| // | |
| // TypeScript team: Please fix either of those things. Preferably mutability :) | |
| class Animal {} | |
| class Snake extends Animal { | |
| slither() { | |
| alert("Slithering!") |
| class EventEmitter | |
| constructor: -> | |
| @events = {} | |
| emit: (event, args...) -> | |
| return false unless @events[event] | |
| listener args... for listener in @events[event] | |
| return true | |
| addListener: (event, listener) -> |