I hereby claim:
- I am jwoglom on github.
- I am jwoglom (https://keybase.io/jwoglom) on keybase.
- I have a public key whose fingerprint is E8E2 A832 13C3 8F75 B1EF 4CCC B1AB 08CD 1663 C6F5
To claim this, I am signing this object:
| def numbers_sum_to_ten(num1, num2): | |
| """ | |
| Return True if num1 and num2 sum to 10. | |
| Ex.: numbers_sum_to_ten(5, 5) => True | |
| """ | |
| pass | |
| def word_count(search_word, sentences): | |
| """ | |
| Return the number of times a given word occurs in a group of sentences. |
| function single_replace { | |
| python3 -c "import sys, re; print(re.sub(sys.argv[1], sys.argv[2], open(sys.argv[3]).read()))" "$@" | |
| } | |
| function multi_replace { | |
| python3 -c "import sys, re; t=open(sys.argv[1]).read(); | |
| for i in range(2, len(sys.argv)-1, 2): | |
| t=re.sub(sys.argv[i], sys.argv[i+1], t) | |
| print(t, end='')" "$@" | |
| } |
| function single_replace { | |
| python3 -c "import sys, re; print(re.sub(sys.argv[1], sys.argv[2], open(sys.argv[3]).read()))" "$@" | |
| } | |
| function multi_replace { | |
| python3 -c "import sys, re, functools; t=open(sys.argv[1]).read(); | |
| for i in range(2, len(sys.argv)-1, 2): | |
| t=re.sub(sys.argv[i], sys.argv[i+1], t) | |
| print(t, end='')" "$@" | |
| } |
| // glocktobazel generates Bazel external repositories from a GLOCKFILE | |
| package main | |
| import ( | |
| "bufio" | |
| "os" | |
| "strings" | |
| "fmt" | |
| ) |
| import json | |
| import argparse | |
| import subprocess | |
| import tempfile | |
| def main(): | |
| parser = argparse.ArgumentParser(description='Visualize AWS Security Groups') | |
| parser.add_argument('--file', dest='file', action='store', help='JSON output of `aws ec2 describe-security-groups`') | |
| parser.add_argument('--output', dest='output', action='store', help='SVG output filename') | |
| args = parser.parse_args() |
| <?php | |
| /* | |
| * Pearson Successnet Downloader * | |
| * Fully mirrors a HTML-based textbook stored on Pearson Successnet for offline viewing. | |
| * Author: James Woglom <j@wogloms.net> (wogloms.com) | |
| */ | |
| require_once 'simple_html_dom.php'; /* http://simplehtmldom.sourceforge.net/ */ | |
| // Cookie information in form name=value; name2=value2 | |
| $cookies = "name=value; name2=value2"; |
| // ==UserScript== | |
| // @name Pearson Successnet Keepalive | |
| // @namespace http://www.wogloms.com/ | |
| // @version 1 | |
| // @description Keeps the Pearson Successnet login connection activated by sending a ping every 60 seconds, instead of opening a popup dialog to extend the session every 10 minutes and expiring every 15. | |
| // @match https://www.pearsonsuccessnet.com/snpapp/iText/BrowseITEXTServlet* | |
| // @copyright WTFPL | |
| // ==/UserScript== | |
| console.log("Loaded scn "+new Date()); | |
| setInterval(function() { |
I hereby claim:
To claim this, I am signing this object:
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2014 James Woglom <wogloms.com> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2014 James Woglom <wogloms.com> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |