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
// | |
// CopyZeusValues.js | |
// Rick Nagy | |
// 2014-03-31 | |
// | |
// run via js console | |
function init() { |
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
os.chdir(os.path.dirname(os.path.abspath(__file__))) |
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
#!/Library/Frameworks/Python.framework/Versions/2.7/bin/python | |
import math | |
import requests | |
import api_logging | |
import time | |
base_uri = 'https://api.pipelinedeals.com/api/v3' | |
api_key = 'API KEY HERE' |
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
// | |
// OpenAndSaveRecords.js | |
// Rick Nagy | |
// 2014-03-26 | |
// | |
// run via js console | |
function init() { | |
stopAsap = false; |
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
// | |
// OpenAndSaveStudentRecords.js | |
// Console JavaScript | |
// | |
// Created by Rick Nagy on 2014-01-27. | |
// | |
// This will go down the student list in the Students module and click and save each student | |
// | |
// set TRIGGER_KEYUP to true to also trigger the keyUp() method in the name field | |
// this is useful for triggering the name parser, which is useful |
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
#!/Library/Frameworks/Python.framework/Versions/2.7/bin/python | |
import requests | |
import math | |
import json | |
api_key = 'API_KEY' | |
base_url = "https://api.pipelinedeals.com/api/v3" | |
azreen_id = '25077' |
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
// Google Apps Script | |
// relies on titleCaps(): http://ejohn.org/blog/title-capitalization-in-javascript/ | |
function titleCaseColumn() { | |
var columnNum = 5; | |
ss = SpreadsheetApp.getActiveSheet(); | |
for(var i = 2; i < ss.getLastRow(); i++) { | |
var proper = titleCaps(ss.getRange(i, columnNum).getValue().toLowerCase()); |
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
// for Google Sheets | |
function calculateLevels() { | |
var youngColumn = 3; | |
var outputColumn = 5; | |
ss = SpreadsheetApp.getActiveSheet(); | |
var range = ss.getRange(2, youngColumn, ss.getLastRow(), 3); | |
var vals = range.getValues(); |
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
cd ~/Desktop | |
# incremental filename | |
# http://stackoverflow.com/a/806923/1628796 | |
isnumeric() { | |
re='^[0-9]+$' | |
if ! [[ $1 =~ $re ]] ; then | |
echo 0 | |
else |
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
#!/Library/Frameworks/Python.framework/Versions/2.7/bin/python | |
import qs | |
from tqdm import * | |
def main(): | |
section_id = "528351" | |
assignments = qs.get_assignments(section_id) | |
for i in trange(0, len(assignments)): | |
qs.delete_assignment(section_id, assignments[i]['id']) |