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
(function (scope) {
var privateStaticProperty = null;
var privateStaticMethod = function () {
console.log("private hello");
};
var PublicClass = function () {
var self = this;
var glob = require("glob");
var fs = require("fs");
var optimizers = {
"clean-css": function (content) {
var optimizer = require("clean-css");
return new optimizer({}).minify(content);
},
"csso": function (content) {
(function (value, config) {
var matchbox = /{([^a-z]?)([a-z_]+)([^a-z|]?)(\|[^}]+)?}/g;
var translator = function (match, prefix, value, suffix, defaultValue) {
if (config.hasOwnProperty(value)) {
return prefix + config[value] + suffix;
}
if (defaultValue) {
return defaultValue.replace('|', '');
}
var gulp = require("gulp");
var debug = require("gulp-debug");
var request = require("request");
var source = require("vinyl-source-stream");
var streamify = require("gulp-streamify");
var prepend = require("gulp-header");
var uglify = require("gulp-uglify");
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))
import arrow
import os
import shutil
import subprocess
import tarfile
import threading
import time
class Server:
import requests
class APIError:
pass
class Pyshbullet:
push_url = "https://api.pushbullet.com/v2/pushes"
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) {
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
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);