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 BB Filter to Section | |
// @namespace https://usma.blackboard.com/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://usma.blackboard.com/webapps/assessment/do/gradeQuestions* | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js | |
// ==/UserScript== |
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/python2.7 | |
import time | |
import rflib | |
import bitstring | |
rfcat = rflib.RfCat() | |
# center frequency | |
rfcat.setFreq(314955000) |
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
First poster: 2BFC8E2B3561C04FBBC73FA43D5D96540D0AA008B30924CE47DA0EC67530D3 | |
Second poster: 9E1CE2C2F6FBFE198637E6F10B957DDD50A7874177A51E | |
Together: 2BFC8E2B3561C04FBBC73FA43D5D96540D0AA008B30924CE47DA0EC67530D39E1CE2C2F6FBFE198637E6F10B957DDD50A7874177A51E |
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
pieces = [ | |
('B', 'P', 'O', 'Y'), | |
('W', 'B', 'P', 'R'), | |
('Y', 'B', 'G', 'W'), | |
('Y', 'G', 'B', 'R') | |
] | |
variables = [ | |
(0,0), (0,1), | |
(1,0), (1,1) |
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
Function FIND_OVERALL_SCORE(rng As range) As Integer | |
Dim score | |
Dim searchRange, scores As range | |
Set scores = Worksheets("Master Scores").UsedRange | |
Set searchRange = scores.Resize(scores.Rows.Count + 1, 4) | |
For score = 0 To 4 | |
For Each row In searchRange.Rows | |
If row.Cells(1, 1).Value <> "" Then | |
If row.Cells(1).Value = rng.Cells(1).Value And row.Cells(2).Value = rng.Cells(2).Value And row.Cells(3).Value = rng.Cells(3).Value And row.Cells(4).Value = rng.Cells(4).Value Then |
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/python | |
import rflib | |
import bitstring | |
rfcat = rflib.RfCat() | |
rfcat.setFreq(314850000) | |
# AM On/Off Keying | |
rfcat.setMdmModulation(rflib.MOD_ASK_OOK) |
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
require 'http' | |
max_points = 30 | |
cutoff_time = Time.local(2018,3,23,10,10) | |
question = 'IT105_AY182_GradedLab01_01' | |
base = 'https://runestone.academy/runestone/' | |
http = HTTP.cookies session_id_runestone: ENV['RUNESTONE_SESSION_ID'] | |
names = JSON.parse http.get(base+'admin/course_students').to_s | |
names = names.to_a.sort.to_h |
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
require 'json' | |
require 'watir' | |
require 'seconds' | |
if ARGS.empty? | |
warn 'Please provide the Facebook user number and query string that will appear in every post (first name usually works)' | |
exit | |
end | |
b = Watir::Browser.new |
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
require 'socket' | |
class TCPSocket | |
class << self | |
def new host, *args, &block | |
socket = super host, *args, &block | |
# check whitelist, set indicator | |
socket.instance_variable_set :@mypki, true # or false | |
# return socket | |
socket |
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
def cropPicture(picture): | |
smallPic = makeEmptyPicture(186,100) | |
smallX = 0 | |
smallY = 0 | |
for x in range(59,244): | |
smallX +=1 | |
smallY = 0 | |
for y in range(25,125): | |
pixel = getPixel(picture,x,y) | |
smallPicPixl = getPixel(smallPic,smallX,smallY) |