Skip to content

Instantly share code, notes, and snippets.


KahWee Teng kahwee

  • Uber Technologies
  • San Francisco, CA
View GitHub Profile
kahwee / like-linkedin.js
Created Aug 9, 2018
On days I can't decide, I like everything in LinkedIn
View like-linkedin.js
[...$('.like-button:not(.active)')].forEach(el =>
View basic-hello.js
const chalk = require('chalk')
( Open parantheses
) Close parantheses
[ Open bracket
] Close bracket
{ Open brace
} Close brace
/ (Forward) Slash
View gist:5385ceca03173d05875df5e4566be63c
# Install iTerm (Stable release)
# Open and install and run this:
/usr/bin/ruby -e "$(curl -fsSL"
# Then install git
brew install git
# Then run this:
brew install node
View install-blink
cd && mkdir .node_modules_global
npm config set prefix=$HOME/.node_modules_global
echo 'Remember to do this: export PATH="$HOME/.node_modules_global/bin:$PATH"'
kahwee /
Created Jul 26, 2016
Steps problems question

Given n being the number of steps, how many ways can you climb the stairs if you can step 1, 2 or 3 steps at a time.

0: []
1: [1]
2: [1, 1], 
3: [1, 1, 1], 
   [2, 1], 
   [1, 2], 

Keybase proof

I hereby claim:

  • I am kahwee on github.
  • I am kahwee ( on keybase.
  • I have a public key whose fingerprint is 1D47 5A2C 86C3 3DC0 3E61 5F8C 903D 82B0 F5D1 66FB

To claim this, I am signing this object:

View largerHexxeh.js
function reverse (string) {
return string.split('').reverse().join('')
function largerHexxeh (kAsString) {
var len = kAsString.length
var k10 = parseInt(kAsString, 16)
var firstHalf = kAsString.slice(0, Math.ceil(len / 2))
var firstHalfInt = parseInt(firstHalf, 16)
var firstHalfA = firstHalfInt.toString(16)
kahwee / moatvideo.js
Last active Jan 6, 2016
Sample of moatvideo.js
View moatvideo.js
/*Copyright (c) 2011-2015 Moat Inc. All Rights Reserved.*/
try{(function(w,v){var s={},M,za,Aa,ga=0,aa={},ha=[],z={},W=[],x={},U=!1,Ia={15:"",12:"",6:"",7:""},Ba,Ja=function(){for(var a=0;a<ha.length;a++)window.clearTimeout(ha[a]);for(a=0;a<W.length;a++)window.clearInterval(W[a]);for(var h in z)z.hasOwnProperty&&z.hasOwnProperty(h)&&z[h]&&(window.clearTimeout(z[h].tid),z[h]=!1);ha=[];W=[]},P=function(){for(var a in x)if(x.hasOwnProperty(a)){var h=x[a];s.a.a(h);s.b.a(h)}Ja()};s.c=P;(function(a){function h(a){var m=new RegExp("(^| )"+a+"($| )");return function(a){return a&&
a.className&&a.className.match(m)}}function r(a){return a&&a.document&&a.location&&a[k+l]&&a[u+t]}function e(a){if(null==a||r(a))return!1;var m=a.length;return 1===a.nodeType&&m?!0:"string"===typeof a||d(a)||0===m||"number"===typeof m&&0<m&&m-1 in a}function d(c){return"[object Array]"}a.d={};a.d.a=3E3;a.d.b=function(){var a=/Firefox\/(\d+)/.exec(navigator.userAgent);return a?(a=parseInt(a[1],10),21>a&&14<a):!1}();a
View hbs-each-loop.js
var template2 = Handlebars.compile('{{#each company}}{{#each employee}}{{@key}}{{@../index}}\n{{this}}\n\n{{/each}}{{/each}}');
Tremor Video0
Tremor Video0
You can’t perform that action at this time.