Skip to content

Instantly share code, notes, and snippets.

View gu3st's full-sized avatar
🥃
Just gotta get through this week

Dustin Dawes gu3st

🥃
Just gotta get through this week
View GitHub Profile
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class QuakeLightFlicker : MonoBehaviour
{
public float maxLightIntensity = 2f;
public string flickerString = "mmamammmmammamamaaamammma";
public Light light;
@gu3st
gu3st / d2_summarize_enemy.py
Created September 26, 2018 17:40 — forked from nims11/d2_summarize_enemy.py
[Dota2] Helps you ban heroes by summarizing past games of the enemy
# Change the variables MY_ID and SERVER_FILE_PATH, and run this file
# The summary will be generated as soon as a game starts
import sys
import time
import os
import re
import requests
from multiprocessing import Pool
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
/*
A browser desktop environment written almost entirely in a single native JavaScript file.
All ~10000 lines are served with PHP from an AWS Cloud9 demo. It's actually quite a great project, the codebase is just insane.
Did my best to anonymise it, sorry mods if I missed anything.
Project started in mid-2014, now in Jan 2017, adding lots of commentation!
thru line 107
Here's a completely useless log to the console to start us off!
@gu3st
gu3st / FileBrowser.py
Created January 14, 2016 22:58 — forked from steventroughtonsmith/FileBrowser.py
File Browser for Pythonista
# coding: utf-8
from UIKit import *
from Foundation import *
from ctypes import *
libobjc = CDLL('/usr/lib/libobjc.dylib')
QLPreviewController = ObjCClass('QLPreviewController')
@gu3st
gu3st / Foundation.py
Created January 13, 2016 02:30 — forked from steventroughtonsmith/Foundation.py
UIKit+UIFoundation & Foundation for Pythonista - autoconverted from SDK tbd (includes non-public SPI)
# coding: utf-8
from objc_util import *
NSAKDeserializer = ObjCClass('NSAKDeserializer')
NSAKDeserializerStream = ObjCClass('NSAKDeserializerStream')
NSAKSerializer = ObjCClass('NSAKSerializer')
NSAKSerializerStream = ObjCClass('NSAKSerializerStream')
NSAbstractLayoutGuide = ObjCClass('NSAbstractLayoutGuide')
NSAddressCheckingResult = ObjCClass('NSAddressCheckingResult')
NSAffineTransform = ObjCClass('NSAffineTransform')
@gu3st
gu3st / Tweak.xm
Created October 14, 2015 15:10 — forked from steventroughtonsmith/Tweak.xm
iOS 9 Enable Splitscreen Jailbreak Tweak (Theos)
/* How to Hook with Logos
Hooks are written with syntax similar to that of an Objective-C @implementation.
You don't need to #include <substrate.h>, it will be done automatically, as will
the generation of a class list and an automatic constructor.
%hook ClassName
// Hooking a class method
+ (id)sharedInstance {
{
// xi4n
// expected/support xi4n versions
"xi4n": ">=0.0.2",
// logger options
"logger": {
// log level
"level": "crit",
@gu3st
gu3st / gist:3405840
Created August 20, 2012 17:03 — forked from corydorning/Cross-Browser ::before and ::after pseudo-class polyfill
Cross-Browser ::before and ::after pseudo-class polyfill
/* =============================================================================
CSS Declarations
========================================================================== */
/* ==|== The Standard Way =================================================== */
.foo::before {
/* ...css rules... */
}
@gu3st
gu3st / json
Created August 8, 2012 20:43 — forked from steventroughtonsmith/json
Using Twitter from ComputerCraft
-----------------------------------------------------------------------------
-- JSON4Lua: JSON encoding / decoding support for the Lua language.
-- json Module.
-- Author: Craig Mason-Jones
-- Homepage: http://json.luaforge.net/
-- Version: 0.9.40
-- This module is released under the MIT License (MIT).
-- Please see LICENCE.txt for details.
--
-- USAGE: