Skip to content

Instantly share code, notes, and snippets.

View eiszfuchs's full-sized avatar
🦊
I may be slow to respond.

Raphael Pohl eiszfuchs

🦊
I may be slow to respond.
View GitHub Profile
0RBITALIS
1... 2... 3... KICK IT! (Drop That Beat Like an Ugly Baby)
140
A Virus Named TOM
AaAaAA!!! - A Reckless Disregard for Gravity
Absolute Drift
ABZÛ
Academia : School Simulator
Action Henk
Adventures of Pip
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Shader</title>
<style>
[type="x-shader/x-fragment"] {
display: block;
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Asynchronous JavaScript???</title>
</head>
<body>
<output name="tick"></output>
<pre id="results"></pre>
import hashlib
from wand.image import Image as wand_image
from PIL import Image as pillow_image
# Generate raw-pixels checksums to identify identical images
# ignoring different [JPG] metadata or [PNG] compression
# levels (i.e. binary different).
public class MainActivity extends AppCompatActivity {
private void hideEditor() {
// This makes room in the layout
RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams)editorView.getLayoutParams();
params.setMargins(0, -1 * editorView.getHeight(), 0, 0);
editorView.setLayoutParams(params);
// This shows a nice animation, but won't make room
ObjectAnimator animY = ObjectAnimator.ofFloat(editorView, View.TRANSLATION_Y, editorView.getHeight() * -1);
function appendToOnload (callback) {
if (typeof window.onload !== "function") {
window.onload = callback;
return;
}
var formerCallback = window.onload;
window.onload = function () {
formerCallback();
from __future__ import print_function
import json
import sys
import re
import hashlib
from os import makedirs, path, remove
from getpass import getpass
from urlparse import urlparse
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Namen</title>
<style>
body {
background: #8f1;
var foobar = {};
var name1 = "test-foo-bar";
var name2 = "test-bar-foo";
var addObject = function(parts, object, value) {
if (parts.length <= 0)
return value;
if (!object[parts[0]])
object[parts[0]] = {};
object[parts[0]] = addObject(parts.slice(1), object[parts[0]], value);
return object;
@eiszfuchs
eiszfuchs / latest_chromium.py
Created May 24, 2012 14:32
Grab the latest Chromium build from the net!
import urllib.request, urllib.parse, urllib.error
import math
# change os_url & file_base_url if you aren't on a Windows PC
server_url_base = "http://commondatastorage.googleapis.com/chromium-browser-snapshots/"
os_url = "Win/" # "Mac/"
file_base_url = "/chrome-win32.zip" # "/chrome-mac.zip"
latest_url = server_url_base + os_url + "LAST_CHANGE"