Skip to content

Instantly share code, notes, and snippets.

View vincentntang's full-sized avatar
💭
¯\_(ツ)_/¯

Vincent Tang vincentntang

💭
¯\_(ツ)_/¯
View GitHub Profile
@vincentntang
vincentntang / 7-simple-digital-clock.markdown
Last active December 9, 2017 03:46
#7 Simple Digital Clock
@vincentntang
vincentntang / everything-you-ever-wanted-to-know-about-flexbox.markdown
Last active November 29, 2017 04:37
Everything you ever wanted to know about Flexbox
@vincentntang
vincentntang / download_gists.js
Created January 6, 2017 17:03 — forked from thomastraum/download_gists.js
Gist to download all your gists
var request = require('request')
, path = require('path')
, fs = require('fs')
, url = "https://api.github.com/users/thomastraum/gists"
, savepath = './gists';
request(url, function (error, response, body) {
if (!error && response.statusCode == 200) {
@vincentntang
vincentntang / 0_reuse_code.js
Last active December 16, 2016 20:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
/**
* recover.c
*
* Computer Science 50
* Problem Set 4
*
* Recovers JPEGs from a forensic image.
*/
@vincentntang
vincentntang / gist:6113e048220976ab0cd06cabc19e68b3
Created November 4, 2016 16:37
temporay storage bin notes
/**
* copy.c
*
* Computer Science 50
* Problem Set 4
*
* Copies a BMP piece by piece, just because.
*/
#include <stdio.h>
Putting it under some test with markdown
## Header 1
## Header 2
![](http://i.imgur.com/yd7NZoe.png)
Test image here
![](https://gfycat.com/detail/QuaintPersonalDoctorfish)
#!/usr/bin/env python
# A quick and dirty script to rename a pinboard.in tag.
# I'll probably update this become a proper command line app one day
import urllib2
import pinboard
pinuser = ""
pinpasswd = ""
#include <stdio.h>
#include <cs50.h>
int main (void)
{
int n;
//Got the input correctly
do