Skip to content

Instantly share code, notes, and snippets.

View amzar96's full-sized avatar
๐Ÿ˜
WFH

Amzar amzar96

๐Ÿ˜
WFH
View GitHub Profile
@hrp
hrp / twitter.json
Created April 4, 2011 00:20
Example JSON response from Twitter streaming API
{
"text": "RT @PostGradProblem: In preparation for the NFL lockout, I will be spending twice as much time analyzing my fantasy baseball team during ...",
"truncated": true,
"in_reply_to_user_id": null,
"in_reply_to_status_id": null,
"favorited": false,
"source": "<a href=\"http://twitter.com/\" rel=\"nofollow\">Twitter for iPhone</a>",
"in_reply_to_screen_name": null,
"in_reply_to_status_id_str": null,
"id_str": "54691802283900928",
@bellbind
bellbind / genetic.py
Created December 15, 2010 10:46
[python]Genetic Algorithm example
"""Genetic Algorithmn Implementation
see:
http://www.obitko.com/tutorials/genetic-algorithms/ga-basic-description.php
"""
import random
class GeneticAlgorithm(object):
def __init__(self, genetics):
self.genetics = genetics
pass
@robjohnson
robjohnson / TwitterJSONTweet.js
Created November 16, 2010 19:41
Twitter JSON Tweet Schema
{
"place":null,
"coordinates":null,
"retweeted":false,
"in_reply_to_status_id":null,
"id_str":"28039652140",
"truncated":false,
"in_reply_to_status_id_str":null,
"source":"web",
"favorited":false,