Skip to content

Instantly share code, notes, and snippets.

View smasongarrison's full-sized avatar
😸
Tenure-Tracking

Mason Garrison smasongarrison

😸
Tenure-Tracking
View GitHub Profile
@weiglemc
weiglemc / grab-tco.sh
Created November 18, 2022 18:51
Command-line to grab t.co URLs from Twitter archive
awk -F '\"' '/\"url\" :/ {print $4}' tweets.js
@joshparkerj
joshparkerj / show-svgs.meta.js
Last active October 15, 2022 11:51
show svgs
// ==UserScript==
// @name show svgs
// @namespace http://tampermonkey.net/
// @version 0.1
// @description show svgs
// @author Josh Parker
// @source https://github.com/joshparkerj/silly-internet-tricks/blob/main/wikipedia/show-svgs.user.js
// @downloadURL https://gist.github.com/joshparkerj/387e6798a4b5cb2e64e21bb2daf7d6fc/raw/show-svgs.user.js
// @updateURL https://gist.github.com/joshparkerj/387e6798a4b5cb2e64e21bb2daf7d6fc/raw/show-svgs.meta.js
// @match https://en.wikipedia.org/wiki/*
@RHDZMOTA
RHDZMOTA / essay-grading.md
Last active May 26, 2024 10:20
Simple essay grading system.

The number of words in the essay should be between 700 and 1000 words. Students should follow the “five-paragraph essay” format, which consists of three principal components:

  • Introduction - The principal purpose of the introduction is to expose the thesis statement explicitly. An effective introductory paragraph usually begins with a hook to grab the reader’s attention. This might be a personal anecdote, relevant statistics, or a quote. After that, the writer should move on to a clear, one-sentence thesis statement.
  • Body - A good essay usually contains roughly three body paragraphs. The first sentence of these paragraphs is known as the topic sentence and should provide an argument in favor of the thesis. Body paragraphs make use of examples, supporting evidence, statistics, and citations. To ensure continuity, you might want to use a “transition phrase” to connect different paragraphs (e.g., “moreover”, “on the other hand”, “by contrast”, “furthermore”).
  • Conclusion - This paragraph should
@mwt
mwt / speedgrader.ahk
Last active August 18, 2022 19:14
An AutoHotkey script to grade assignments in Canvas SpeedGrader quickly using Numpad keys to score the question. For example, Numpad0 gives a score of zero. Make sure NumLock is on! This is intended for use in the grade by question mode. You may need to make adjustments based on browser metrics. Made for Firefox.
SetTitleMatchMode, 2
GradeAssignment(s)
{
WinActivate SpeedGrader ; Use window with "SpeedGrader" in name
CoordMode, Click, Window
WinGetPos, winX, winY, winWidth, winHeight, A
Y := winHeight * 0.26 ; Get textbox Y coordinate
tX := winWidth * 0.57 ; Get textbox X coordinate
rX := winWidth * 0.95 ; Arbitrary coordinate on right panel
@PeterBerthelsen
PeterBerthelsen / OrthoBot sendTweet
Created January 21, 2019 16:23
sendTweet Function
function sendTweet(TweetText, IdInResponseTo, ImageAttachURL){
//////////////////////////Set Variables///////////////////////////////////////////////////////
var ss = SpreadsheetApp.getActiveSpreadsheet(); //spreadsheet
var logsheet = ss.getSheetByName("TweetLog");
var lastRow = Math.max(logsheet.getLastRow(),1) + 1;
var twitterKeys= { //Twitter Authentication Tokens to pass through props
TWITTER_CONSUMER_KEY: "[YOUR VALUE HERE]",
TWITTER_CONSUMER_SECRET: "[YOUR VALUE HERE]",
TWITTER_ACCESS_TOKEN: "[YOUR VALUE HERE]",
TWITTER_ACCESS_SECRET: "[YOUR VALUE HERE]"
library(tidyverse)
library(rtweet)
library(glue)
tml <- get_timelines("CostcoRiceBag", n = 3200)
br <- tml %>%
filter(is.na(reply_to_screen_name)) %>%
slice(
which(str_detect(text, "IS IT JUST ME")):
@kennwhite
kennwhite / 1944_OSS_Simple_Sabotage_Field_Manual.md
Last active May 17, 2024 09:58
1944 OSS Simple Sabotage Field Manual
@ivandrofly
ivandrofly / Unicode table
Created May 4, 2014 02:20
Unicode table - List of most common Unicode characters *
Unicode table - List of most common Unicode characters *
* This summary list contains about 2000 characters for most common ocidental/latin languages and most printable symbols but not chinese, japanese, arab, archaic and some unprintable.
Contains character codes in HEX (hexadecimal), decimal number, name/description and corresponding printable symbol.
What is Unicode?
Unicode is a standard created to define letters of all languages ​​and characters such as punctuation and technical symbols. Today, UNICODE (UTF-8) is the most used character set encoding (used by almost 70% of websites, in 2013). The second most used character set is ISO-8859-1 (about 20% of websites), but this old encoding format is being replaced by Unicode.
How to identify the Unicode number for a character?
Type or paste a character:
@mbaez
mbaez / gmail-pop3-refresh.js
Last active March 7, 2021 18:05
This script, force one click, every 10 seconds in Gmail Refresh Pop Account button
/**
* This script, force one click, every 10 seconds in Gmail Refresh Pop Account button
* @author Maximiliano Báez
*/
var $popup = window.open("https://mail.google.com/mail/ca/u/0/?shva=1#settings/accounts",'_blank', 'toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,left=10000, top=10000, width=10, height=10, visible=none');function refreshPop(){var $el = $popup.document.getElementsByClassName("rP sA"); if($el.length>0){$el = $el[0]; $el.click(); console.log($el)} setTimeout(refreshPop, 10000)};refreshPop();