Skip to content

Instantly share code, notes, and snippets.

@alinakhay
alinakhay / simple_app.py
Created July 13, 2016 11:05 — forked from kemitche/simple_app.py
reddit OAuth 2.0 Python Webserver Example
#!/usr/bin/env python
from flask import Flask, abort, request
from uuid import uuid4
import requests
import requests.auth
import urllib
CLIENT_ID = None # Fill this in with your client ID
CLIENT_SECRET = None # Fill this in with your client secret
REDIRECT_URI = "http://localhost:65010/reddit_callback"
@alinakhay
alinakhay / unfollow.py
Created July 14, 2016 07:52 — forked from perpetual-hydrofoil/unfollow.py
Twitter Unfollow Example (python)
#! /usr/bin/env python
# how to unfollow everyone who isn't following you
# By Jamieson Becker (Public Domain/no copyright, do what you will)
# Easy instructions, even if you don't know Python
#
# 1. Install pip (apt-get install python-pip) and then
# pip install tweepy, which is the python twitter client
#
@alinakhay
alinakhay / README
Created August 8, 2016 12:03 — forked from ebababi/README
PINGPONG TEST: A small ping pong front end app in HTML5
= PINGPONG TEST
Can you make a small ping pong front end app with HTML5? Basically it has 2
square wall and can kick the ball the each other, don't think it to be very
complicated, you should be able to finish this within 3 hours. Just want to see
a ball can be kicked from left to right and from right to left, and the ball
can be a square as well.
== Citations
@alinakhay
alinakhay / Makefile
Created October 14, 2016 08:56 — forked from nilbus/Makefile
GATech CS-6300 Assignment 6 Makefile
# For Linux (different sed arguments)
TEST_CLASSES := bin/edu/gatech/replace/AllTests.class bin/edu/gatech/replace/ReplaceTest.class
all: show-coverage
show-coverage: replaceCoverage/frame-summary.html
@grep % replaceCoverage/frame-summary.html | head -n 1 | sed -e 's/.*>\([0-9]\+%\).*>\([0-9]\+%\).*/\nCoverage: Line: \1, Branch: \2/'
build-tests: $(TEST_CLASSES)
@alinakhay
alinakhay / emojis.json
Created April 6, 2019 21:05 — forked from oliveratgithub/emojis.json
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
{
"emojis": [
{"emoji": "👩‍👩‍👧‍👧", "name": "family_mothers_two_girls", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👧", "category": "p", "order": ""},
{"emoji": "👩‍👩‍👧‍👦", "name": "family_mothers_children", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👦", "category": "p", "order": ""},
{"emoji": "👩‍👩‍👦‍👦", "name": "family_mothers_two_boys", "shortname": "", "unicode": "", "html": "👩‍👩‍👦‍👦", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👧‍👧", "name": "family_two_girls", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👧", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👧‍👦", "name": "family_children", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👦", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👦‍👦", "name": "family_two_boys", "shortname": "", "unicode": "", "html": "👨&zw
@alinakhay
alinakhay / glassdoor.py
Created January 11, 2021 13:39 — forked from scrapehero/glassdoor.py
Python 3 code to extract job listings from Glassdoor.com
from lxml import html, etree
import requests
import re
import os
import sys
import unicodecsv as csv
import argparse
import json
def parse(keyword, place):