Skip to content

Instantly share code, notes, and snippets.

View shader.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Shader</title>
<style>
[type="x-shader/x-fragment"] {
display: block;
View steamapps.txt
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
View index.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Asynchronous JavaScript???</title>
</head>
<body>
<output name="tick"></output>
<pre id="results"></pre>
View pyxelsum.py
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).
View method.java
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);
View humble-downloader.py
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
View colors.js
var reset = ["0"];
var resetGround = ["49"];
var frontColors = ["30", "1;30", "31", "1;31", "32", "1;32", "33", "1;33", "34", "1;34", "35", "1;35", "36", "1;36", "37", "1;37"];
var groundColors = ["", "40", "41", "42", "43", "44", "45", "46", "47"];
var cellContent = " cWy "
var spaceFill = function (caption, length) {
while (caption.length < length) {
View pyshbullet.py
import requests
class APIError:
pass
class Pyshbullet:
push_url = "https://api.pushbullet.com/v2/pushes"
View manager.py
import arrow
import os
import shutil
import subprocess
import tarfile
import threading
import time
class Server:
View noise.py
import hashlib
import math
import re
import struct
import wave
def remap_value(value, min_x, max_x, min_y, max_y):
normalized = (value - min_x) / float(max_x)
return min_y + (normalized * (max_y - min_y))