Skip to content

Instantly share code, notes, and snippets.

View tcyrus's full-sized avatar

Timothy Cyrus tcyrus

View GitHub Profile
@tcyrus
tcyrus / README.md
Last active August 29, 2015 14:20
The intro sequence to Last Week Tonight
@tcyrus
tcyrus / sso.py
Last active August 29, 2015 14:22 — forked from an-empty-string/sso.py
"""
A wrapper for Intranet2's single sign-on system.
Here's a brief overview of how Iodine SSO works:
- you make a request token (with generate_token)
- you redirect the user to a URL containing that request token
- when the user allows access, they are redirected back to your application
with an access token in the "sso" parameter
- you verify the access token (with check_access_token_validity)
- if you need to, you can start a session to access the API and such
@tcyrus
tcyrus / NIST.md
Last active August 29, 2015 14:26
NIST SHIP 2016

NIST SHIP 2016

This gist contains the

  • NIST Logo (Transparancy)
  • ITL Logo (Transparancy)
  • My Poster
@tcyrus
tcyrus / devpostButton.css
Last active October 6, 2015 18:02 — forked from nealrs/demo.html
Devpost Hackathon Button
.devpostButton {
background-color: #2D9EB2;
border-color: #237A89;
color: white;
box-shadow: none;
border-radius: 2px;
transition: all 200ms ease-out;
display: inline-block;
border-style: solid;
border-width: 0 0 3px;
<meta property="gh:repo" content="tcyrus/github-hacktoberfest">
local event = require('event')
local net = require('internet')
local myEventHandlers = {}
local running = true
local con = net.open('192.168.1.110', 5577)
function myEventHandlers.key_up(address, char, code, playerName)
if (char == 'q') then
import csv
import urllib.request
with urllib.request.urlopen('http://weather.unisys.com/hurricane/atlantic/tracks.atl') as response:
fileA, fileB, fileC = open('typeA.csv', 'wt'), open('typeB.csv', 'wt'), open('typeC.csv', 'wt')
csvA, csvB, csvC = csv.writer(fileA), csv.writer(fileB), csv.writer(fileC)
csvA.writerow(['Card Number', 'Date', 'Days', 'Storm Number', 'Total Storms', 'Name', 'US Hit', 'Hi US Category'])
csvB.writerow(['Card Number', 'Date',
'Stage - 00Z', 'Latitude - 00Z', 'Longitude - 00Z', 'Wind - 00Z', 'Press - 00Z',
'Stage - 06Z', 'Latitude - 06Z', 'Longitude - 06Z', 'Wind - 06Z', 'Press - 06Z',
"""
An example of Ion's new OAuth
For more information see http://tjcsl.github.io/ion/developing/oauth
"""
import os
import json
from requests_oauthlib import OAuth2Session
CLIENT_ID = 'XXX'
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.