moved overview to http://xennis.org/wiki/Heatmap!
- Animated example NYTCommentsMap (Demo, Comment)
- Animated example crime-heatmaps (Demo, Comment)
import { createHmac } from "crypto" | |
// Verify according to https://developer.paddle.com/webhooks/signature-verification | |
const verifyPaddleSignature = async (payload: string, header: string | null, secret: string) => { | |
if (!header) { | |
return false | |
} | |
const [tsPart, h1Part] = header.split(";") | |
if (!tsPart || !h1Part) { | |
return false |
/media/ | |
############ | |
## Python | |
############ | |
*.pyc | |
############ |
import sys | |
def split_file(filename, num_max_lines=None): | |
num_lines = 0 | |
with open(filename) as f: | |
for line in f: | |
num_lines += 1 | |
sys.stdout.write(line) | |
if num_max_lines and num_lines >= num_max_lines: | |
break |
<?php defined('SYSPATH') or die('No direct script access.'); | |
/** | |
* MySQL "Closure Table" for Kohana based on Bill Karwin design. | |
* | |
* @link http://www.slideshare.net/billkarwin/models-for-hierarchical-data | |
* @TODO improve | |
* | |
* sql schema: | |
* CREATE TABLE `closures` ( | |
* `id` int(11) NOT NULL AUTO_INCREMENT, |
############################################################################### | |
# LaTeX custom auto completion list | |
# | |
# for the LaTeX editor [Texmaker](http://www.xm1math.net/texmaker/): | |
# ´User´ > ´Customize Completion´ | |
# | |
############################################################################### | |
## For [LaTeX_Vorlage_Uebungsblatt.tex](https://gist.github.com/Xennis/9637696) | |
\exercise |
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
:: LaTeX_clean.bat | |
:: Source: https://gist.github.com/Xennis/dbfc0f0ace304d1f76f2 | |
:: | |
:: Based on Git ignore list: | |
:: http://xennis.org/wiki/Git_-_Ignore#LaTeX | |
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
:: Generated files | |
del *.aux |
private void enableHTML5AppCache() { | |
webView.getSettings().setDomStorageEnabled(true); | |
// Set cache size to 8 mb by default. should be more than enough | |
webView.getSettings().setAppCacheMaxSize(1024*1024*8); | |
// This next one is crazy. It's the DEFAULT location for your app's cache | |
// But it didn't work for me without this line | |
webView.getSettings().setAppCachePath("/data/data/"+ getPackageName() +"/cache"); |
/** | |
* Google Maps JavaScript API - Convert a radius given in meters to the | |
* corresponding number of pixel. | |
* | |
* ### Credits: | |
* | |
* "JS Bin - rorecuce", | |
* http://jsbin.com/rorecuce/1/edit | |
* | |
* Example "Showing pixel and tile coordinates", |
moved overview to http://xennis.org/wiki/Heatmap!
#!/bin/sh | |
git filter-branch --env-filter ' | |
an="$GIT_AUTHOR_NAME" | |
am="$GIT_AUTHOR_EMAIL" | |
cn="$GIT_COMMITTER_NAME" | |
cm="$GIT_COMMITTER_EMAIL" | |
if [ "$GIT_COMMITTER_EMAIL" = "[email protected]" ] |