Skip to content

Instantly share code, notes, and snippets.

Swift theycallmeswift

Block or report user

Report or block theycallmeswift

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View style.css
body {
background: black;
color: white;
div.container {
max-width: 500px;
margin: 100px auto;
border: 20px solid white;
padding: 10px;
theycallmeswift /
Created Aug 28, 2015
A sample implementation of My MLH using Flask. Requirements: Python 2.7, Flask, and Requests.
from flask import Flask, jsonify, make_response, redirect, request
import urllib
import requests
app = Flask(__name__)
# Config
callback = 'http://localhost:5000/auth/mlh/callback'
client_id = '[ INSERT CLIENT ID ]'
client_secret = '[ INSERT CLIENT SECRET ]'
View one-word-domains
theycallmeswift / uikit.html
Created Jul 8, 2014
This is the start of a generic bootstrap UI Kit page.
View uikit.html
.row { margin: 30px 0 60px; }
<div class="container">
<div class="row">
<div class="col-md-3">
<h3>Headers & Body</h3>
theycallmeswift / Y-Hack Top 10 by Attendance
Created Nov 10, 2013
Y-Hack Top 10 Schools by Attendance
View Y-Hack Top 10 by Attendance
1. University of Maryland
2. Brown University
3. McGill University
4. Yale University
5. Virginia Tech
6. Massachusetts Institute of Technology
7 .Columbia University
8. Rutgers, The State University of New Jersey
9. Harvard University
10. University of Waterloo
theycallmeswift /
Created Oct 24, 2013
The list of awesome API Developer Tools from John Sheehan's ( talk at API Strategy SF (
View index.html
<ul class="slider">
<script src="js/jquery-2.0.3.min.js"></script>
<script src="js/handlebars.js"></script>
View herp.js
var casper = require('casper').create({
verbose: true,
logLevel: 'debug',
pageSettings: {
userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4'
var url = '';
from flask import Flask, request
app = Flask(__name__, static_folder='static', static_url_path='')
@app.route('/data', methods=['GET', 'POST'])
def post_data():
data = # but data will be empty unless the request has the proper content-type header...
if not data:
data = request.form.keys()[0]
# mongo.db.test1_collection.insert({ city: data })
theycallmeswift / fizzbuzz.erl
Last active Dec 21, 2015
Fizzbuzz implemented in Erlang
View fizzbuzz.erl
%% DISCLAIMER: Please excuse my style, I don't write erlang.
fizz_buzz() ->
fizz_buzz(N) when N =< 100 ->
N rem 15 == 0 ->
You can’t perform that action at this time.