Skip to content

Instantly share code, notes, and snippets.

Tan Nhu tan-nhu

Block or report user

Report or block tan-nhu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tan-nhu
tan-nhu / web-servers.md
Created Mar 13, 2020 — forked from willurd/web-servers.md
Big list of http static server one-liners
View web-servers.md

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
View 1-highcharts-cheatsheet.js
// Highcharts CheatSheet Part 1.
// Create interactive charts easily for your web projects.
// Download: http://www.highcharts.com/download
// More: http://api.highcharts.com/highcharts
// 1. Installation.
// Highcharts requires two files to run, highcharts.js and either jQuery, MooTools or Prototype or the Highcharts Standalone Framework which are used for some common JavaScript tasks.
// <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
// <script src="https://code.highcharts.com/highcharts.js"></script>
@tan-nhu
tan-nhu / JSON Format Tools.md
Last active Jun 13, 2018
JSON Format Tools
View JSON Format Tools.md

python -mjson.tool

curl 'https://httpbin.org/json' -k -s | python -mjson.tool

To make it sorter, put an alias in your ~/.bash_profile, or ~/.config/fish/config.fish:

alias json="python -m json.tool"
You can’t perform that action at this time.