Skip to content

Instantly share code, notes, and snippets.

View shweshi's full-sized avatar
💭
Coding...

Shashi Prakash Gautam shweshi

💭
Coding...
View GitHub Profile
import json
import csv
import sys
import datetime
import os
def make_reader(in_json):
# Open location history data
@shweshi
shweshi / web-servers.md
Created November 11, 2021 17:13 — forked from willurd/web-servers.md
Big list of http static server one-liners

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
@shweshi
shweshi / package.json
Created January 8, 2020 17:51 — forked from adamreisnz/package.json
Simple pure npm scripts build process
{
"name": "project-name",
"description": "Template for static sites",
"version": "1.0.0",
"homepage": "http://www.project-name.com",
"author": {
"name": "Adam Reis",
"url": "http://adam.reis.nz"
},
"license": "UNLICENSED",