This file contains 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
package main | |
import ( | |
"fmt" | |
"strings" | |
"github.com/cespare/argf" | |
) | |
var alphamoji = map[rune]string{ |
This file contains 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
import string | |
from random import choice | |
print(''.join(choice(string.hexdigits[:-6]) for _ in range(8))) |
This file contains 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 emoji = require('node-emoji') | |
var emojiList = emoji.search(''); | |
function emojiNum(emoji) { | |
for (var i = 0; i < emojiList.length; i++) { | |
if (emojiList[i].key === emoji) { | |
return i; | |
} | |
} |
This file contains 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
#!/usr/bin/python | |
import argparse | |
from autopy3 import key | |
parser = argparse.ArgumentParser(description='Type garbage in chat') | |
parser.add_argument('msg', nargs='+', help='message to type') | |
args = parser.parse_args() | |
key.tap(key.K_RETURN) | |
key.type_string(' '.join(args.msg)) |
This file contains 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
cpps() { | |
exe=/tmp/$(basename $1 .cpp) | |
g++ -std=c++11 -g -O0 $1 -o $exe || return 1 | |
if [ -z "$2" ] | |
then | |
$exe | |
else | |
$exe "${@:2}" |
This file contains 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
#include <iostream> | |
#include <vector> | |
template <class K, class V> | |
class HashMap; | |
template <class K, class V> | |
class Entry { | |
K const key; | |
V value; |
This file contains 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
#!/usr/bin/env python3 | |
""" | |
Usage: curling.py input.yml | |
The input yaml file is structured like this. |method| is optional, | |
but must be lowercase. | |
url: url | |
method: get | |
params: |
This file contains 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
PS1="[\u@\h \W]\$ " | |
alias ..="cd .." | |
alias ls="ls -GAF" | |
alias cp='cp -vi' | |
alias mv='mv -vi' | |
alias rm='rm -vi' | |
mdc() | |
{ |
This file contains 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
// Run in developer console | |
// var likes = document.getElementsByClassName('UFILikeLink _4x9_'); // Just for posts | |
var likes = document.getElementsByClassName('UFILikeLink'); // For all likes | |
(function clicker (links) { | |
setTimeout(() => { | |
links[0].click(); | |
if (links.length > 1) { | |
clicker(links.slice(1)); |
This file contains 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
#!/usr/bin/python | |
import autopy | |
import time | |
# Requires autopy from https://github.com/msanders/autopy | |
def move(x, y): | |
try: | |
autopy.mouse.move(x, y) | |
time.sleep(1) |