I hereby claim:
- I am un5t0ppab13 on github.
- I am un5t0ppab13 (https://keybase.io/un5t0ppab13) on keybase.
- I have a public key whose fingerprint is 608B EEC9 C5C2 EA49 7890 4A13 5B60 D4D7 8F68 6673
To claim this, I am signing this object:
# Simple calculator | |
function calc() { | |
local result=""; | |
result="$(printf "scale=10;$*\n" | bc --mathlib | tr -d '\\\n')"; | |
# └─ default (when `--mathlib` is used) is 20 | |
# | |
if [[ "$result" == *.* ]]; then | |
# improve the output for decimal numbers | |
printf "$result" | |
Verifying that +un5t0ppab13 is my openname (Bitcoin username). https://onename.io/un5t0ppab13 |
<!doctype html> | |
<html> | |
<head> | |
<title>Tabbed Form</title> | |
<style type="text/css"> | |
/*-----------------CSS-------------------*/ | |
body { | |
width: 500px; | |
margin: auto; |
// This will match an email given any string | |
// note even my ' in the string was fine ;D | |
var re = /[\w]+@[\w-]+\.[\w]+/g; | |
var str2 = "my email is not [email protected] it's actually [email protected]"; | |
var myArray = str2.match(re); | |
myArray | |
//search inside just a target <tag> in DevTools console using RegEx |
countdown() { | |
[[ -z $1 ]] && seconds=60 || seconds=$1 | |
since=$(date +%s) | |
remaining=$seconds | |
while (( remaining >= 0 )) | |
do | |
printf "\r%-10d" $remaining | |
sleep 0.5 | |
remaining=$(( seconds - $(date +%s) + since )) | |
done |
p() { | |
if [[ $1 ]]; then | |
ps aux | grep -i $1 | |
else | |
ps aux | less | |
fi | |
} | |
alias cpu='top -o cpu -s 8 -n 11' |
# this one will not work, it creates a syntax error | |
class ArticlesController < ApplicationController | |
def new | |
end | |
def create | |
render plain: params[:article].inspect | |
end | |
end |
javascript: (function () { | |
// the css we are going to inject | |
var css = | |
"html {" + | |
" -webkit-filter: invert(100%);" + | |
" -moz-filter: invert(100%);" + | |
" -o-filter: invert(100%);" + | |
" -ms-filter: invert(100%);" + | |
"}", | |
head = document.getElementsByTagName("head")[0], |
/* GOOGLE CALENDAR Improved | |
You use google calendar right? Try this for fun (it is really quick): | |
open google chrome, | |
type command-Shift-C, | |
hit escape twice to see the console, | |
then paste this whole message in | |
and hit enter: | |
You can then hit command-shit-i to remove the console.... | |
Just refresh if you don't like it... and it will go away. */ |
I hereby claim:
To claim this, I am signing this object: