Skip to content

Instantly share code, notes, and snippets.

View voidfiles's full-sized avatar

Alex Kessinger voidfiles

View GitHub Profile
@voidfiles
voidfiles / adn_activitystream.json
Created August 6, 2013 22:06
Example ActivityStream output from App.net API.
{
"meta": {
"code": 200
},
"data": {
"items": [{
"generator": {
"link": "http://wedge.natestedman.com",
"name": "Wedge",
"client_id": "PDvZfuW8zhzjwU8PF9KEzFbAcTn6T67U"
@voidfiles
voidfiles / test_script.md
Created October 17, 2013 18:20
Test feed fetch from appengine.

Run this script line by line here, and when you make it work there it will work in pourover.

from google.appengine.api import urlfetch
resp = urlfetch.fetch('http://www.vlachbild.de/feed/', deadline=60)
print resp.content
@voidfiles
voidfiles / whoosh_percolate.py
Last active March 9, 2019 14:58
Can whoosh do something like percolate
# This is a notepad to see if whoosh could do something like percolate for for elastic search
from whoosh.fields import Schema, TEXT
from whoosh.filedb.filestore import RamStorage
from whoosh.index import FileIndex
from whoosh.qparser import QueryParser
schema = Schema(title=TEXT(stored=True), content=TEXT)
def create_in(schema, indexname):
@voidfiles
voidfiles / 0_reuse_code.js
Created December 14, 2013 01:55
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@voidfiles
voidfiles / batman.py
Last active January 1, 2016 00:08
Batman is a way to quickly write small helpfull commands
#!/usr/bin/env python
# To Use:
# pip install clint docopt
# place file in your ~/bin/ files
"""
____ _
| _ \ | |
| |_) | __ _| |_ _ __ ___ __ _ _ __
| _ < / _` | __| '_ ` _ \ / _` | '_ `
| |_) | (_| | |_| | | | | | (_| | | | |
@voidfiles
voidfiles / redis_models.py
Created December 28, 2013 06:31
I was hoping that I could just easily store some models in redis, but then ended up going with a solution that I didn't build, before I jumped ship though I ended up with a fully fledged redis model system. I just didn't want to delete so I put it up as a gist.
# The MIT License (MIT)
#
# Copyright (c) 2013 Alex Kessinger
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@voidfiles
voidfiles / README.md
Last active January 2, 2016 16:29
Result replication for http://www.theatlantic.com/technology/archive/2014/01/how-netflix-reverse-engineered-hollywood/282679/ with a big decrease in the amount of time taken to do the crawl.

Hello

This is a project that attempts to replicate the results from The Atlantic article How Netflix Reverse Engineered Hollywood by Alexis C. Madrigal. Instead of using "sketchy" software it attempts to use an open source stack.

It takes a 20 hour job and turns it into a 1 hour job.

QuickStart

&gt;&gt;&gt; git clone https://gist.github.com/8330873.git
@voidfiles
voidfiles / comment_embed.html
Last active October 18, 2019 10:18
Embedable app.net comments.
<script id='adn-comments' src="http://html5.alexkessinger.net/embed.js" type="text/javascript" charset="utf-8" async defer></script>
@voidfiles
voidfiles / discuss.html
Created February 8, 2014 00:23
An alternate way to discuss things.
<a href='javascript:var dsqs = document.getElementById('disqus_thread'), s = document.createElement('script');s.id = 'adn-comments';s.src = 'https://d105v2jof9gtr3.cloudfront.net/embed.js';dsqs.innerHTML = '';dsqs.appendChild(s);'>Discuss</a>
@voidfiles
voidfiles / comments.html
Created February 13, 2014 01:25
Embed the App.net comments widget on your website.
<script src="https://d105v2jof9gtr3.cloudfront.net/embed.js" id='adn-comments'></script>