Skip to content

Instantly share code, notes, and snippets.

from flask import Flask, jsonify, abort
import requests
from bs4 import BeautifulSoup
from pprint import pprint
import time
import json
import pickle
import os
import re
@sean-adler
sean-adler / grr
Created April 13, 2013 10:23
fuckonname
var tipuedrop = { 'pages':
[ { 'title': 'joe cheese pizza',
'text': 'blue cheese pizza',
'tags': 'blue cheese pizza',
'loc': 'http://localhost:5001/?food=%26%20blue%20cheese%20pizza' },
{ 'title': 'Asian pork soft tacos',
'text': 'Asian pork soft tacos',
'tags': 'Asian pork soft tacos',
'loc': 'http://localhost:5001/?food=Asian%20pork%20soft%20tacos' },
{ 'title': 'Azteca enchilada casserole',
@sean-adler
sean-adler / api.js
Last active April 25, 2016 20:17
Redux AJAX wrapper
/**
* actions + action creators
*/
import $ from 'jquery'
import uuid from 'node-uuid'
export const REQUEST_START = 'REQUEST_START'
export const REQUEST_SUCCESS = 'REQUEST_SUCCESS'

Keybase proof

I hereby claim:

  • I am sean-adler on github.
  • I am seanadler (https://keybase.io/seanadler) on keybase.
  • I have a public key ASCEcSkB8NtPzH6tZxD9hpkpa-MPk4jaQyuSXAQGQ92uaQo

To claim this, I am signing this object:

@sean-adler
sean-adler / cprofile-output.py
Created April 3, 2018 19:29
Write cProfile stats to human-readable text file
import cProfile
import pstats
prof = cProfile.Profile()
prof.run('<YOUR CODE>')
prof.sort_stats('cumtime')
prof.dump_stats('output.prof')
stream = open('output.txt', 'w')
stats = pstats.Stats('output.prof', stream=stream)
@sean-adler
sean-adler / pytorch-ignite-param-scheduling.ipynb
Created May 4, 2018 01:38
PyTorch ignite parameter scheduling
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sean-adler
sean-adler / cutout-transform.ipynb
Created May 7, 2018 00:32
fastai cutout transform
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.