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 uWaterloo Learn Login | |
// @namespace uberi | |
// @description Keep the user logged into LEARN while the tab is open | |
// @include https://learn.uwaterloo.ca/* | |
// @match https://learn.uwaterloo.ca/* | |
// @version 1.0 | |
// @run-at document-start | |
// ==/UserScript== |
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
/* | |
Anthony Zhang | |
Spinning Thing source code for PIC16F684 microcontrollers compiling with MikroC. | |
*/ | |
#define PIN1 PORTA.RA0 | |
#define PIN2 PORTA.RA1 | |
#define PIN3 PORTA.RA2 | |
#define PIN4 PORTC.RC0 | |
#define PIN5 PORTC.RC1 |
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
#NoEnv | |
/* | |
Basic example: | |
Heap := new BinaryHeap | |
For Index, Value In [10,17,20,30,38,30,24,34] | |
Heap.Add(Value) | |
MsgBox % Heap.Peek() | |
Loop, 8 |
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
#NoEnv | |
#Warn All | |
#Warn LocalSameAsGlobal, Off | |
#Persistent | |
/* | |
Speech Recognition | |
================== | |
A class providing access to Microsoft's SAPI. Requires the SAPI SDK. |
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
#NoEnv | |
/* | |
SimplePing | |
========== | |
AHK library providing a variety of ICMP pinging-related functionality. | |
Examples | |
-------- |
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
#NoEnv | |
Gui, Font, s36, Arial | |
Gui, Add, Text, x10 y10 w760 h50 Center, MODSTER 2.0 | |
Gui, Font, s12 | |
Gui, Add, Groupbox, x10 y80 w760 h110, Where is the Minetest folder? | |
Gui, Font, s22 | |
Gui, Add, Edit, x20 y110 w690 h40 vMinetestPath gCheckMinetest | |
Gui, Add, Button, x710 y110 w50 h40 gSelectMinetest, ... |
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
;AHK v1 | |
#NoEnv | |
/* | |
MsgBox % BinaryToText(Temp1 := TextToBinary("Test")) . "`n" . Temp1 | |
MsgBox % BinaryToNumber(Temp1 := NumberToBinary(1234)) . "`n" . Temp1 | |
*/ | |
TextToBinary(ByRef InputText) | |
{ |
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 math | |
def permutation_count(k, n): | |
"Computes the number of k-element permutations in a sequence of length n." | |
return math.factorial(n) / math.factorial(n - k) |
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 uuid, BaseHTTPServer, select, types, webbrowser, editor, os, urllib | |
from SimpleHTTPServer import SimpleHTTPRequestHandler | |
try: | |
from cStringIO import StringIO | |
except ImportError: | |
from StringIO import StringIO | |
global mobile_config_str | |
mobile_config_str = '' |
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
from scene import * | |
import sound | |
class MyScene (Scene): | |
def setup(self): | |
# This will be called before the first frame is drawn. | |
self.root_layer = Layer(self.bounds) | |
self.bullets = {} |