Skip to content

Instantly share code, notes, and snippets.

Avatar

Josh Leong leodotng

View GitHub Profile
@leodotng
leodotng / Express Quick Setup
Last active Oct 19, 2017
Hopefully this helps you pull together the millions of pieces and things needed to put together a basic express app without the generator.
View Express Quick Setup
===========INSTRUCTIONS FOR EXPRESS APP================
npm init
-> Blank
-> Blank
-> Fill out Description
-> type app.js for entry point
-> Blank
-> Blank
-> License MIT
-> Enter for OK
View gist:bfdde95eabfbe3769a521c8622712cc5
git reset --hard <old-commit-id>
git push -f
View Hostel Data
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-71.98215490000001,
-13.5178622
@leodotng
leodotng / Install_tmux
Created Feb 17, 2018 — forked from simme/Install_tmux
Install and configure tmux on Mac OS X
View Install_tmux
# First install tmux
brew install tmux
# For mouse support (for switching panes and windows)
# Only needed if you are using Terminal.app (iTerm has mouse support)
Install http://www.culater.net/software/SIMBL/SIMBL.php
Then install https://bitheap.org/mouseterm/
# More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/
@leodotng
leodotng / substring.js
Created Jun 3, 2018 — forked from primaryobjects/substring.js
Longest Substring Without Repeating Characters in javascript.
View substring.js
/**
* @param {string} s
* @return {number}
*/
var lengthOfLongestSubstring = function(s) {
var max = 0;
var str = '';
var i = 0;
var cache = [];