This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function (scope) { | |
| var privateStaticProperty = null; | |
| var privateStaticMethod = function () { | |
| console.log("private hello"); | |
| }; | |
| var PublicClass = function () { | |
| var self = this; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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('|', ''); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import arrow | |
| import os | |
| import shutil | |
| import subprocess | |
| import tarfile | |
| import threading | |
| import time | |
| class Server: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| class APIError: | |
| pass | |
| class Pyshbullet: | |
| push_url = "https://api.pushbullet.com/v2/pushes" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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); |