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" | |
"math" | |
"reflect" | |
"runtime" | |
"sort" | |
"time" | |
) |
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
#!/bin/bash | |
DIST=dist/ | |
DEST=host://path/to/html | |
JSFILES="worker.js wichtel.js" | |
HTMLFILES="index.html" | |
OTHERFILES="" | |
echo Cleaning up ... |
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
Object.defineProperty(String.prototype, 'unicodeLength', { | |
get: function() { | |
return this.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, '.').length; | |
} | |
}); |
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
// ==UserScript== | |
// @name Cookie Clicker Click Agent | |
// @description Never again miss a golden cookie or sugar lump. Improve cookie production by automatically clicking the big cookie. | |
// @version 1 | |
// @namespace * | |
// @include http://orteil.dashnet.org/cookieclicker/ | |
// @grant none | |
// ==/UserScript== | |
/* DISCLAIMER |
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
#!/bin/sh | |
# update ip, log server reply (prepended by timestamp) to file | |
curl -s http://sync.afraid.org/u/XXXXXXXXXXXXXXXXXXXXXXXXXX/ | echo "`date +"%Y-%m-%d %H:%M:%S"` $(cat -)" >> /home/XXXX/log/XXXXXXXXXXXXXXX.log 2>&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/env python3 | |
from pymouse import PyMouseEvent | |
import hashlib | |
import struct | |
class Entropist(PyMouseEvent): | |
def __init__(self, hashfunc=hashlib.sha512): | |
super(Entropist, self).__init__() |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Fancy shadow demo</title> | |
<style type="text/css"> | |
html, body { | |
font-family: sans-serif; | |
font-size: 10pt; | |
background-color: #fff; | |
color: #333; |
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
#!/bin/bash | |
SRCDIR=$HOME/PUT_SOURCE_DIRECTORY_HERE | |
DSTDIR=$HOME/PUT_DESTINATION_DIRECTORY_HERE | |
REMOTE_SHARE=PUT_SERVER_NAME_HERE/PUT_NAME_OF_SHARE_HERE | |
KEYCHAIN_SERVICE_TOKEN=CHANGE_TO_NAME_OF_SERVICE_AS_STORED_IN_KEYCHAIN | |
USERNAME=ola | |
PASSWORD=$(security find-generic-password -s $KEYCHAIN_SERVICE_TOKEN -w) | |
if [ ! -d "$DSTDIR" ]; then |
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 python | |
# -*- coding: utf-8 -*- | |
import sys, os, subprocess | |
from datetime import datetime | |
oldrev, newrev, branch = sys.stdin.read().split() | |
refs, head, branch = branch.split('/') | |
deploy_to = None |
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
@keyframes hammer { | |
from,20%,53%,80%,to { | |
-webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); | |
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); | |
-webkit-transform: translate3d(0, 0, 0); | |
transform: translate3d(0, 0, 0) | |
} | |
40%,43% { | |
-webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); | |
animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); |