I hereby claim:
- I am brettinternet on github.
- I am brettinternet (https://keybase.io/brettinternet) on keybase.
- I have a public key whose fingerprint is 4836 109F 6EAE 10A4 201D DC18 21FF F74B 9B1B 795A
To claim this, I am signing this object:
#!/bin/bash | |
# Might as well ask for password up-front, right? | |
sudo -v | |
# Keep-alive: update existing sudo time stamp if set, otherwise do nothing. | |
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & | |
# Example: do stuff over the next 30+ mins that requires sudo here or there. | |
function wait() { |
I hereby claim:
To claim this, I am signing this object:
!!false === false | |
!!true === true | |
!!0 === false | |
!!parseInt("foo") === false // NaN is falsy | |
!!1 === true | |
!!-1 === true // -1 is truthy | |
!!"" === false // empty string is falsy | |
!!"foo" === true // non-empty string is truthy |
data:text/html, <style type="text/css">.e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div class="e" id="editor"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("editor");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> | |
<!-- | |
For other language: Instead of `ace/mode/ruby`, Use | |
Markdown -> `ace/mode/markdown` | |
Python -> `ace/mode/python` | |
C/C++ -> `ace/mode/c_cpp` | |
Javscript -> `ace/mode/javascript` | |
Java -> `ace/mode/java` | |
Scala- -> `ace/mode/scala` |
[ | |
{ | |
"id": 1, | |
"name": "Leanne Graham", | |
"img": "https://randomuser.me/api/portraits/women/33.jpg", | |
"username": "Bret", | |
"email": "Sincere@april.biz", | |
"address": { | |
"street": "Kulas Light", | |
"suite": "Apt. 556", |
let fibonacci = (n) => { | |
if(n <= 2) { | |
return 1; | |
} else { | |
return fibonacci(n - 1) + fibonacci(n - 2); | |
} | |
}; |
It was the best of times | |
it was the worst of times | |
it was the age of wisdom | |
it was the age of foolishness | |
it was the epoch of belief | |
it was the epoch of incredulity | |
it was the season of Light | |
it was the season of Darkness | |
it was the spring of hope | |
it was the winter of despair |
This guy discovered a CodeWars hack that tricks the tests into passing.
class NilClass
def ==(_)
true
end
end
def mymethod
#!/usr/bin/python3 | |
import time | |
def new_d(): | |
return { | |
1: 2, 3: 4, 5: 6, 7: 8, 9: 10, | |
11: 12, 13: 14, 15: 16, 17: 18, 19: 20 | |
} |