I hereby claim:
- I am daemongh on github.
- I am daemon (https://keybase.io/daemon) on keybase.
- I have a public key whose fingerprint is 987B DD04 267E A3CD 32BE D873 185B 6089 9845 DF8B
To claim this, I am signing this object:
import requests | |
import os | |
import pathlib | |
import json | |
import pendulum | |
import hashlib | |
from time import sleep | |
UPDATE_INTERVAL = 60 | |
SETTINGS = { |
import os | |
import shutil | |
import sys | |
import zlib | |
def read_uint(file): | |
read_bytes = file.read(4) | |
result = 0 |
* |
I hereby claim:
To claim this, I am signing this object:
setBadge = function (text) { | |
if (process.platform === "darwin") { | |
app.dock.setBadge("" + text); | |
} else if (process.platform === "win32") { | |
var win = remote.getCurrentWindow(); | |
if (text === "") { | |
win.setOverlayIcon(null, ""); | |
return; | |
} |
<?php | |
/* | |
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP) | |
Author: _ck_ (with contributions by GK, stasilok) | |
Version: 0.1.6 | |
Free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
* revision history | |
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter | |
0.1.5 2013-04-12 added graphs to visualize cache state, please report any browser/style bugs |
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>App Redirection</title> | |
</head> | |
<body> | |
<!-- iframe used for attempting to load a custom protocol --> | |
<iframe style="display:none" height="0" width="0" id="loader"></iframe> |
def map2png | |
png = ChunkyPNG::Image.new(15, 15, ChunkyPNG::Color::TRANSPARENT) | |
$map.each_with_index do |v, y| | |
v.each_with_index do |_, x| | |
character = $map[x][y] | |
case character | |
when -1 then png[x, y] = ChunkyPNG::Color('black') | |
when 0 then png[x, y] = ChunkyPNG::Color('white') | |
when 1 then png[x, y] = ChunkyPNG::Color('red') |
A list of amazingly awesome PHP libraries that you should be using:
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |