Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jgngo
jgngo / gist:f6e3e70faed60fd61478200bdc74cd96
Last active September 9, 2025 08:28
ph_provinces.json
{"type": "FeatureCollection", "features": [{"type": "Feature", "geometry": {"type": "Polygon", "coordinates": [[[120.57182232500008, 17.786033365000037], [120.6022255060001, 17.809284779000055], [120.69086868800002, 17.83457964200005], [120.713090887, 17.85995599300003], [120.72824914700004, 17.892507978000026], [120.78375228200004, 17.911236471000052], [120.82604262300005, 17.95475861500006], [120.85020468100005, 17.962860961000043], [120.89458557200008, 17.951472294000038], [120.9203956020001, 17.95626482200003], [120.9469459710001, 17.99709437600006], [120.9277503080001, 18.020743286000023], [120.93546188900007, 18.06899515000003], [120.92814130400008, 18.088193385000068], [120.97006946800002, 18.18186392000007], [120.92676405500005, 18.241938255000036], [120.91666636100001, 18.28456025600007], [120.94836326600011, 18.38169343000004], [120.94704360700008, 18.42062579300005], [120.96914518200002, 18.510116371000038], [120.97645367700012, 18.568958937000048], [120.92800873600004, 18.559397641000032], [120.89
This file has been truncated, but you can view the full file.
[{"borocode":"5","boroname":"Staten Island","shape_area":"1623618358.46","shape_leng":"325912.288988","the_geom":{"type":"MultiPolygon","coordinates":[[[[-74.05050806403247,40.56642203416086],[-74.05047137128506,40.566417387435564],[-74.05030321271722,40.566417461200594],[-74.05012587375454,40.56640588033513],[-74.04998352562573,40.566395924928315],[-74.04931640362085,40.56588774778048],[-74.04923629842045,40.565362736368144],[-74.05002620158642,40.565318180621176],[-74.05074409977213,40.56588712593507],[-74.05074768943298,40.56595407675391],[-74.05073223954238,40.565992119017764],[-74.05073571037052,40.566032774595826],[-74.05080326895582,40.566052200461186],[-74.05087333045633,40.566081240209904],[-74.05090601705051,40.56609434162805],[-74.05091292518976,40.56613368425463],[-74.05088200371617,40.566178290004146],[-74.05085250143459,40.5661895557033],[-74.05083386287333,40.56619667357837],[-74.05076507357134,40.56619932634292],[-74.05070831606588,40.566194105555894],[-74.05068769619591,40.56621772277329],[-7
@jgngo
jgngo / sendmail.js
Last active November 10, 2020 06:24
send email using nodemailer
require('dotenv').config()
const nodemailer = require("nodemailer");
// async..await is not allowed in global scope, must use a wrapper
async function main() {
let transporter = nodemailer.createTransport({
host: process.env.SMTP_HOST,
port: process.env.SMTP_PORT,
secure: true,
@jgngo
jgngo / filter_stores.js
Last active January 23, 2020 07:16
filter store list
const fs = require("fs");
const axios = require("axios");
const INPUT_URL =
"https://s3-ap-southeast-1.amazonaws.com/s3.philseven.com/public/cbs_stores.json";
const INPUT_FILE = "cbs_stores.json";
const OUTPUT_FILE = "solr_import.json";
// Get from URL
@jgngo
jgngo / gulp-resize-and-minify-images.js
Created December 18, 2017 03:44 — forked from ryantbrown/gulp-resize-and-minify-images.js
Gulp - Resize and Optimize / Minify Images
/**
* Make sure Graphicsmagick is installed on your system
* osx: brew install graphicsmagick
* ubuntu: apt-get install graphicsmagick
*
* Install these gulp plugins
* glup, gulp-image-resize, gulp-imagemin and imagemin-pngquant
*
* Group images according to their output dimensions.
* (ex: place all portfolio images into "images/portfolio"

Keybase proof

I hereby claim:

  • I am jgngo on github.
  • I am jgngo (https://keybase.io/jgngo) on keybase.
  • I have a public key ASDdpa3I24KwSZPHynrHOPqOedw_KJl8PTaqlH6o22FqJAo

To claim this, I am signing this object:

$ ssh-keygen
$ cat ~/.ssh/id_rsa.pub | ssh [email protected] "cat >> ~/.ssh/authorized_keys