Skip to content

Instantly share code, notes, and snippets.

View QuanSai's full-sized avatar
💭
code monkeying

Greg Thompson Jr. QuanSai

💭
code monkeying
  • New York City
View GitHub Profile
@QuanSai
QuanSai / tree.sh
Created September 14, 2016 12:28
django-angular project generated
myproject
├── backend
│   ├── docs
│   ├── myproject
│   │   ├── manage.py
│   │   └── myproject
│   │   ├── dev.env
│   │   ├── __init__.py
│   │   ├── prod.env
│   │   ├── settings
@QuanSai
QuanSai / sampleProject
Created September 5, 2016 22:12
Sample Django + Angular project I generated using one of my setup scripts.
mysite
├── backend
│   ├── docs
│   ├── mysite
│   │   ├── applications
│   │   │   ├── api
│   │   │   │   ├── __init__.py
│   │   │   │   └── v1
│   │   │   │   ├── __init__.py
│   │   │   │   ├── routes.py
@QuanSai
QuanSai / keybase.md
Created August 3, 2016 22:26
keybase verification

Keybase proof

I hereby claim:

  • I am quansai on github.
  • I am gregthompsonjr (https://keybase.io/gregthompsonjr) on keybase.
  • I have a public key whose fingerprint is 9C6B C267 EBA8 288D 8762 2E68 40E2 D582 3ECA 5FF9

To claim this, I am signing this object:

@QuanSai
QuanSai / domainexp.py
Created February 14, 2016 01:41
Extract domain expiration data from domain.com
import sys
import urllib2
from bs4 import BeautifulSoup
if __name__=="__main__":
REGISTRAR = "http://whois.com/whois/"
# ask the user for the domain name if a domain was not passed in
try:
@QuanSai
QuanSai / example.json
Last active January 4, 2016 05:51
comparing json to xml for django-lazyboy
{
"name": "breakfast-project",
"version": "0.0.1",
"author": "Greg Thompson Jr.",
"apps": [
{
"app": "foods",
"models": {
"Food": {
"parents": [
@QuanSai
QuanSai / example.json
Created January 4, 2016 05:40
Another example of XML for django-lazyboy in comparison to JSON
{
"name": "breakfast-project",
"version": "0.0.1",
"author": "Greg Thompson Jr.",
"apps": [
{
"app": "foods",
"models": {
"Food": {
"parents": [
@QuanSai
QuanSai / example.json
Created January 4, 2016 05:23
XML for django-lazyboy?
{
"name": "breakfast-project",
"version": "0.0.1",
"author": "Greg Thompson Jr.",
"apps": [
{
"app": "foods",
"models": {
"Food": {
"parents": [
@QuanSai
QuanSai / install_core_dependencies_test.sh
Created May 15, 2014 20:41
Test run of core dependencies install run.
#!/bin/bash
#exit upon failure of one of the subprocesses below
set -e
#install dependencies
sudo apt-get update -y -qq
sudo apt-get -y install git
sudo apt-get -y install postgresql
sudo apt-get -y install pgadmin3
#!/usr/bin/env python
import os.path
import os
import stat
import json
import urllib2
import BaseHTTPServer
import webbrowser
import httplib
import mimetools
@QuanSai
QuanSai / Joanna.java
Created November 20, 2012 04:45
Klingon Species for girl
package joanna;
public class Joanna
{
public static void main (String [] args)
{
Species s1 = new Species(), s2 = new Species();
s1.setSpecies("Klingon Ox", 10, 15);
s2.setSpecies("Klingon Ox", 10, 15);
testEqualsOperator(s1,s2);