Skip to content

Instantly share code, notes, and snippets.

View andyfangdz's full-sized avatar

Andy Fang andyfangdz

View GitHub Profile
@andyfangdz
andyfangdz / sort.cpp
Last active December 27, 2015 18:49
Code tutoring
#include <iostream>
#include <algorithm>
using namespace std;
struct node
{
char name[100];
int score;
}list[100];
bool cmp(node a,node b)
{
@andyfangdz
andyfangdz / Outline.md
Last active December 31, 2015 00:39
TOEFL Writing Preparation

1.*Agree or disagree, the purpose of TV is to educate rather than entertain.

Thesis:Disagree
Subpoint1
{
    There are a lot of successful entertainment TV programs.
    Like: TV Dramas, (TBBT)
}
@andyfangdz
andyfangdz / BubbleName.html
Last active January 3, 2016 10:39
Clipboard
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="http://s3.amazonaws.com/codecademy-content/courses/hour-of-code/js/alphabet.js"></script>
</head>
<body>
<canvas id="myCanvas"></canvas>
<script type="text/javascript" src="http://s3.amazonaws.com/codecademy-content/courses/hour-of-code/js/bubbles.js"></script>
<script>
@andyfangdz
andyfangdz / list.md
Last active August 29, 2015 13:56
iOS Apps List

Tech.

  • Prompt (*)
  • Asana
  • iFile (*)
  • TouchOSC (*)
  • CodeHub

Tools

- Between %s and %s. % ((Object), (Object))

Keybase proof

I hereby claim:

  • I am yzmtf2008 on github.
  • I am AndyFang (https://keybase.io/AndyFang) on keybase.
  • I have a public key whose fingerprint is 283D F005 AB50 1120 7B20 D731 945B BBCB 0A97 9221

To claim this, I am signing this object:

  • "Your rights matter because you never know when you're going to need them." - Edward Snowden #TED2014
  • "The public interest is not always the same as national interest." - Edward Snowden #TED2014
  • "The Internet is not the enemy. Our economy is not the enemy. American businesses, Chinese businesses, and any other company out there is a part of our society. It's a part of our interconnected world. There are ties of fraternity that bond us together, and if we destroy these bonds by undermining the standards, the security, the manner of behavior, that nations and citizens all around the world expect us to abide by." - Edward Snowden #TED2014
  • "It's up to us to preserve that liberation for the next generation to enjoy." - Edward Snowden #TED2014
  • "When we debate about where we can go, it's really a question about what we are willing to put into." - Edward Snowden #TED2014
  • "The last year has been a reminder that democracy may die behind closed doors, but we as individuals are born behind those same closed d
#!/usr/bin/python
# coding=utf-8
# Python version of Zach Holman's "spark"
# https://github.com/holman/spark
# by Stefan van der Walt <stefan@sun.ac.za>
"""
USAGE:
/* Gmail style scrollbar */
::-webkit-scrollbar {
width: 12px
}
::-webkit-scrollbar-thumb {
border-width: 1px 1px 1px 2px
}
::-webkit-scrollbar-track {
border-width: 0
}
@andyfangdz
andyfangdz / gist:f9db5349c540ba872490
Created June 29, 2015 13:34
Useful python timezone snipits
from datetime import datetime
import pytz
datetime.now(pytz.utc)