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
#!/usr/bin/env bash | |
jarvis <<- EOF | |
$@ | |
quit | |
EOF |
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 Unforce Download | |
// @author chucksys | |
// @namespace https://gist.github.com/cheukyin699/a1eee44f3b76e365b842665d0a93b232 | |
// @version 1 | |
// @include https://learn.twu.ca/mod/assign/* | |
// ==/UserScript== | |
var links = document.getElementsByTagName("a"); | |
for (let link of links) { |
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
(ns human-readable) | |
(def quantities ["year" "day" "hour" "minute" "second"]) | |
(defn quantisize [q n] | |
(if (= n 1) | |
[n q] | |
[n (str q "s")])) | |
(defn inter-last [v] |
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
################################################################################## | |
# DESCRIPTION : This program parses pepcoil output so that the file can be | |
# opened into an Excel spreadsheet | |
# | |
# USAGE : | |
# | |
# AUTHOR : Chris Hobbs | |
# DATE : December 28, 2013 | |
# | |
#################################################################################### |
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
' FILE: MUSIC.BAS | |
CLS | |
SCREEN 13 | |
PLAY "MB" | |
PLAY "T255" 'TEMPO: 255 | |
MUSIC1$ = "O2 F8 F8 F+8 F8 G+8 G+8 F+8 F4 F8 F+8 F8 O3 C#8 C#8 O2 B8 A#8" | |
MUSIC2$ = "O2 F8 F8 F+8 F8 G+8 G+8 F+8 F4 F8 F+8 F8 O3 F8 F8 D#8 C#8" | |
' FLAG FOR WHICH STRING OF NOTES TO PLAY |
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
#!/usr/bin/env python | |
# File: turret_test.py | |
# Description: Some turret testing for tower defense games | |
import pygame, sys, math | |
from pygame.locals import * | |
pygame.init() | |
surface = pygame.display.set_mode((500, 500)) | |
pygame.display.set_caption('Turret Test') |
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
#!/usr/bin/env python | |
# File: lightning_test.py | |
# Description: Using pygame to test lightning effects to | |
# follow the mouse/cursor. | |
import pygame, sys, math, random | |
from pygame.locals import * | |
SIZE = (1000, 500) | |
HSIZE = [x/2 for x in SIZE] | |
MINDIST = 10 # The minimum distance to stop |
NewerOlder