Skip to content

Instantly share code, notes, and snippets.

View lucusp's full-sized avatar
🙃

Lucus Pettigrew lucusp

🙃
  • USA
View GitHub Profile
@wonderfulfrog
wonderfulfrog / custom_variables.json
Last active November 9, 2022 18:14
Streamlabs Custom Notification
/* in the Custom Fields tab, click "Edit Custom Fields" and paste the below in. Then click save. */
{
"alertDuration": {
"label": "Alert Duration",
"type": "slider",
"name": "",
"value": 7,
"max": 100,
"min": 1,
"steps": 1
@terrywbrady
terrywbrady / GoogleSpreadsheet.html
Last active October 10, 2025 20:59
Sample HTML/JS to parse a Google Spreadsheet
<!doctype html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
var spData = null;
function doData(json) {
spData = json.feed.entry;
}
@perlmonger42
perlmonger42 / Tic-Tac-Toe-Winner.js
Created August 30, 2012 22:49
JavaScript function to determine whether a game of tic-tac-toe has been finished.
// Game_Board will have two slots:
// .boardString represents the contents of the 9 cells of the board
// .winner indicates whether or not the game has been won, and by whom
//
// Each cell in the game board has a cell #, as shown in this chart:
// | |
// 0 | 1 | 2
// ----+---+----
@phoboslab
phoboslab / mousemove.py
Created June 26, 2012 19:44
Python script to move the mouse cursor in windows with constant speed
import sys
import time
import win32api
if (len(sys.argv) < 4):
print "Usage: python mousemove.py dx dy speed"
sys.exit()
current = win32api.GetCursorPos()
cx = sx = current[0]
@jlong
jlong / uri.js
Created April 20, 2012 13:29
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"