This file contains 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
#! /usr/bin/python | |
import os, sys | |
import platform | |
import time | |
# pip install pypiwin32 | |
import pywintypes, win32file, win32con | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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"); |
This file contains 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 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 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 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 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 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 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; |
NewerOlder