Skip to content

Instantly share code, notes, and snippets.

View rickcnagy's full-sized avatar

Rick Nagy rickcnagy

View GitHub Profile
@rickcnagy
rickcnagy / qsTextAreas.css
Last active August 29, 2015 14:01 — forked from rickcnagy/qsTextAreas.html
CSS only version of qsTextAreas
.qsform textarea {
font-family: inherit;
font-size: 1em;
width: 97%;
border: 1px solid grey;
padding: 5px 0px 5px 5px;
border-radius: 4px;
height: 100px;
}
@rickcnagy
rickcnagy / qsTextAreas.js
Last active August 29, 2015 14:01 — forked from rickcnagy/qsTextAreas.html
Only the JS version of qsTextAreas.
qsMatchLabels = [
"How did you learn of Living Wisdom School?",
"Family Religion",
"What are your educational goals for your child? In what way do you believe Living Wisdom School will help to accomplish these goals?*",
"Academic Assessment*",
"Social Assessment*",
"Emotional Assessment*",
"Spiritual Assessment*",
"Has the student ever skipped or repeated a grade? Please Explain.*",
"Has school attendance been steady and regular? If not, please explain.*",
@rickcnagy
rickcnagy / qsTextAreas.html
Last active August 29, 2015 14:01
QS Admissions Form with Textareas - LWSPA.
<!-- Copy this entire code block-->
<div id="application-form"></div>
<div class="qsstandalone-footnote" id="enquiry-footer">Form powered by <a href="http://www.quickschools.com" target="_blank">QuickSchools.com - Student Information System</a></div>
<script src="https://lwspa.quickschools.com/sms/es/application?divId=application-form" async></script>
<script type="text/javascript">
qsMatchLabels = [
"How did you learn of Living Wisdom School?",
"Family Religion",
"What are your educational goals for your child? In what way do you believe Living Wisdom School will help to accomplish these goals?*",
@rickcnagy
rickcnagy / consoleQS.js
Created April 24, 2014 23:52
Making a standard outline for my console js scripts. Work in progress.
function main() {
var selector = "button:contains(Delete)"
new Iterator(selector, true, true).loop();
}
Iterator.prototype.loop = function() {
this.elem.click();
$("button:contains(Yes, delete)").click();
@rickcnagy
rickcnagy / tqdm_while.py
Created April 22, 2014 21:16
Fork of noamraph's tqdm that allows the tool to be used in while loop via two simple lines: tqdm_while.start(list) and tqdm_while.update().
#!/Library/Frameworks/Python.framework/Versions/2.7/bin/python
# from tqdm: https://github.com/noamraph/tqdm
import time
start_time = None
total = None
n = 0
@rickcnagy
rickcnagy / csv_tools.py
Created April 22, 2014 21:13
Wrapper on top of Python's csv module for reading/writing CSV sheets as dictionaries. Includes ability to lookup rows by a specific column, thereby allowing the data to be easily matched to external databases, such as QuickSchools or PipelineDeals. - csv_tools.py
#!/Library/Frameworks/Python.framework/Versions/2.7/bin/python
import csv
class CSV_IO(object):
"""class for reading/writing CSV objects
can work standalone or as the backbone for CSVMatch"""
def __init__(self, filepath):
@rickcnagy
rickcnagy / pld_update.py
Last active August 29, 2015 14:00
Format and update PLD companies from external dictionary. Can be CSV data or PLD API data. Formats fields like phone, address, company name, etc.
#!/Library/Frameworks/Python.framework/Versions/2.7/bin/python
import us
import pld
import titlecase
from pld import custom_field_key as custom_field
import api_logging
nces_serial_label = '945949'
randomize_label = '948322'
@rickcnagy
rickcnagy / RunInTerminal.scpt
Last active August 29, 2015 14:00
Run a script in a specific directory in Terminal.app - OS X, via AppleScript. Useful for running scripts from a text editor, such as Sublime or TextMate. SCRIPT_PATH must be the path of the script. TextMate_RunInTerminal.sh is the specific code to make this work natively in TextMate.app.
tell application "Terminal"
set dir to "SCRIPT_PATH"
set scriptString to quoted form of dir
if (count of windows) is 0 then
do script
else
if length of (get windows whose miniaturized is false) is 0 then
set miniaturized of the front window to false
end if
@rickcnagy
rickcnagy / DeleteSemesterFromTranscript.js
Last active August 29, 2015 14:00 — forked from rickcnagy/SaveRecords.js
Deletes a specific custom semester from all transcripts - DeleteSemesterFromTranscript.js
//
// DeleteSemesterFromTranscript.js.txt
// Rick Nagy
// 2014-04-19
//
// run via js console
function init() {
stopAsap = false;
@rickcnagy
rickcnagy / importApplicants.js
Created April 15, 2014 23:51
importApplicants.js - import Applicants from CSV/JSON into the Admissions module.
//
// importApplicants.js
// Rick Nagy
// 2014-04-14
//
// run via js console
function main() {
stopAsap = false;