Skip to content

Instantly share code, notes, and snippets.

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

Vincent Tang vincentntang

💭
¯\_(ツ)_/¯
View GitHub Profile
@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
@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 / 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 / 7-simple-digital-clock.markdown
Last active December 9, 2017 03:46
#7 Simple Digital Clock
@vincentntang
vincentntang / 28-api-calls-in-various-forms-practice.markdown
Last active January 9, 2018 04:35
#28 API calls in various forms practice

#28 API calls in various forms practice

Functional - ish style programming to demonstrate various ways to make API calls including Promises, jquery GetJSON, and just regular vanilla javascript.

Uses bootstrap /PUG to have minimal HTML / CSS formatting, focus is mostly javascript and asynchronous callbacks

Uses a simple 2 column flexbox layout scheme

A Pen by Vincent Tang on CodePen.

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'express',
1 verbose cli '--save' ]
2 info using npm@3.10.10
3 info using node@v6.11.1
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'express',
1 verbose cli '--save' ]
2 info using npm@5.6.0
3 info using node@v8.11.1
4 verbose npm-session 608cdf354f06931c
5 silly install loadCurrentTree
@vincentntang
vincentntang / index.pug
Last active June 8, 2018 15:57
Overclip text on hover
.wrapper
a.mouseover-me.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vel lacus est. Ut vulputate venenatis mauris porta ornare. Nunc vehicula dapibus sem eget maximus. Nunc vehicula dapibus sem eget maximus. Nunc vehicula dapibus sem eget maximus.
h1.override-me HOVER ABOVE PARAGRAPH TO HIDE THIS TEXT PARTIALLY, BUT KEEP THIS H1 TEXT IN THE SAME POSITION
@vincentntang
vincentntang / dual-inner-shadow-button-toggler.markdown
Last active June 13, 2018 15:20
Dual Inner Shadow Button Toggler
@vincentntang
vincentntang / bootstrap-3-category-grid-sample.markdown
Created June 13, 2018 19:01
Bootstrap 3 Category Grid Sample