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 os | |
| import time | |
| import datetime | |
| currentPath = os.path.dirname(os.path.abspath(__file__)) | |
| filenames = os.listdir(currentPath) | |
| for filename in filenames: | |
| # full file path of files in current directory |
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
| // initializing | |
| var renderer = PIXI.autoDetectRenderer(800, 600, { antialias: true, backgroundColor : 0xf7f7f7 }); | |
| renderer.view.style.borderStyle = "solid"; | |
| renderer.view.style.borderColor = "#bbbbbb"; | |
| renderer.view.style.borderWidth = "1px"; | |
| document.body.appendChild(renderer.view); | |
| // create the root of the scene graph | |
| var stage = new PIXI.Container(); | |
| stage.interactive = true; |
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 sys | |
| import pymongo | |
| import requests | |
| from bs4 import BeautifulSoup | |
| from datetime import datetime | |
| if len(sys.argv) < 2 : | |
| print("need player id, abort.") | |
| exit() |
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
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| namespace Generator3 | |
| { | |
| class Program | |
| { | |
| // classic Generator | |
| static IEnumerable<string> Script() |
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
| queue = {} | |
| queue_max = 100 | |
| producer = coroutine.create(function () | |
| while #queue < queue_max do | |
| local item = "Hello! "..#queue | |
| table.insert(queue, item) | |
| -- print(item .. " inserted") | |
| end |
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
| Shader "Custom/ParallaxMapShader" { | |
| Properties{ | |
| _Color("Color", Color) = (1,1,1,1) | |
| _LightColor("LightColor", Color) = (1,1,1,1) | |
| _MainTex("Albedo (RGB)", 2D) = "white" {} | |
| _ParallaxMap("_ParallaxMap (RGB)", 2D) = "white" {} | |
| _NormalMap("NormalMap", 2D) = "white" {} | |
| _MainLightPosition("MainLightPosition", Vector) = (0,0,0,0) | |
| _HeightScale("height scale", Float) = 0.01 | |
| } |
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
| // ==UserScript== | |
| // @name fb_sanitizer | |
| // @namespace enghqii | |
| // @description make clean facebook newsfeed | |
| // @include https://www.facebook.com/ | |
| // @version 1 | |
| // @grant none | |
| // ==/UserScript== | |
| function sanitize() { |
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
| INPUT = "A2B5E3426FG0ZYW3210PQ89R." | |
| -- Registers | |
| CH = nil | |
| NUM = nil | |
| COUNTER = 0 | |
| READ_INDEX = 1 | |
| WRITE_INDEX = 1 |
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
| // ==UserScript== | |
| // @name Redirect Reddit | |
| // @version 1 | |
| // @grant none | |
| // @include http://www.reddit.com/* | |
| // @include https://www.reddit.com/* | |
| // ==/UserScript== | |
| console.log("redirecting"); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.