Skip to content

Instantly share code, notes, and snippets.

View vanphuong12a2's full-sized avatar
🎯
Focusing

Phuong Nguyen vanphuong12a2

🎯
Focusing
View GitHub Profile
@vanphuong12a2
vanphuong12a2 / .dockerignore
Last active November 18, 2017 23:02
Travis & Nodejs & Docker & Google App Engine config files
node_modules
npm-debug.log
@vanphuong12a2
vanphuong12a2 / textract.py
Created January 18, 2016 13:25
Extract text from files with common file extensions.
"""
Extract text from files with common file extensions. (inspried by textract <http://textract.readthedocs.org/en/latest/>)
Modified: Dec 2015
System requirement:
+ catdoc/catppt for doc/ppt extract <http://www.wagner.pp.ru/~vitus/software/catdoc/>
"""
import zipfile
import PyPDF2
from subprocess import Popen, PIPE
from pptx import Presentation
@vanphuong12a2
vanphuong12a2 / tour.go
Created December 14, 2015 05:51
A Tour of Go
//Cbrt.go
//Advanced Exercise: Complex cube roots
package main
import (
"fmt"
"math/cmplx"
)
@vanphuong12a2
vanphuong12a2 / BlackJack.py
Last active December 14, 2015 05:39
Coursera: An Introduction to Interactive Programming in Python. Try on http://www.codeskulptor.org
# http://www.codeskulptor.org/#user38_BFtRPWuJKS_1.py
# Mini-project #6 - Blackjack
import simplegui
import random
# load card sprite - 936x384 - source: jfitz.com
CARD_SIZE = (72, 96)
CARD_CENTER = (36, 48)
card_images = simplegui.load_image("http://storage.googleapis.com/codeskulptor-assets/cards_jfitz.png")
@vanphuong12a2
vanphuong12a2 / 110101.cpp
Last active December 14, 2015 05:44
Programming challenges
//The 3n+1 problem
#include <iostream>
#include <cstdio>
using namespace std;
int limit = 999999;
int len[999999];
int get_cycle_len(long long int n){