Skip to content

Instantly share code, notes, and snippets.

View amitlzkpa's full-sized avatar

Amit Nambiar amitlzkpa

View GitHub Profile
- booklist
- hackernews
memegen
proto codelab
c++ exercises
three in wiz
@amitlzkpa
amitlzkpa / Unicode table
Created September 30, 2021 22:07 — forked from ivandrofly/Unicode table
Unicode table - List of most common Unicode characters *
Unicode table - List of most common Unicode characters *
* This summary list contains about 2000 characters for most common ocidental/latin languages and most printable symbols but not chinese, japanese, arab, archaic and some unprintable.
Contains character codes in HEX (hexadecimal), decimal number, name/description and corresponding printable symbol.
What is Unicode?
Unicode is a standard created to define letters of all languages ​​and characters such as punctuation and technical symbols. Today, UNICODE (UTF-8) is the most used character set encoding (used by almost 70% of websites, in 2013). The second most used character set is ISO-8859-1 (about 20% of websites), but this old encoding format is being replaced by Unicode.
How to identify the Unicode number for a character?
Type or paste a character:
@amitlzkpa
amitlzkpa / Fuzzy formatted dates
Created April 30, 2020 21:16
show pretty dates
// ref: https://stackoverflow.com/questions/7641791/javascript-library-for-human-friendly-relative-date-formatting
function fuzzyTime(date) {
var delta = Math.round((+new Date - date) / 1000);
var minute = 60,
hour = minute * 60,
day = hour * 24,
week = day * 7;
@amitlzkpa
amitlzkpa / index.html
Last active April 19, 2020 08:32
Trying out jsbin - ThreeJS// source https://jsbin.com/zigujew
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>ThreeJS</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/110/three.min.js"></script>
<script src="https://threejs.org/examples/js/controls/OrbitControls.js"></script>
</head>
<body>
@amitlzkpa
amitlzkpa / revit-addin-locations.txt
Created May 15, 2019 21:18 — forked from teocomi/revit-addin-locations.txt
Revit Addin folder location
Autodesk Revit addins are generally loaded from the following locations.
User Addins:
%appdata%\Autodesk\Revit\Addins\
Machine Addins (for all users of the machine):
C:\ProgramData\Autodesk\Revit\Addins\
Addins packaged for the Autodesk Exchange store:
C:\ProgramData\Autodesk\ApplicationPlugins\
@amitlzkpa
amitlzkpa / ImportGTFSData.sh
Created April 13, 2019 06:37 — forked from dsamojlenko/ImportGTFSData.sh
Import GTFS data to MongoDB
mongoimport --db <dbname> --collection agencies --type csv --headerline --file agency.txt
mongoimport --db <dbname> --collection calendardates --type csv --headerline --file calendar_dates.txt
mongoimport --db <dbname> --collection calendars --type csv --headerline --file calendar.txt
mongoimport --db <dbname> --collection routes --type csv --headerline --file routes.txt
mongoimport --db <dbname> --collection stoptimes --type csv --headerline --file stop_times.txt
mongoimport --db <dbname> --collection stops --type csv --headerline --file stops.txt
mongoimport --db <dbname> --collection trips --type csv --headerline --file trips.txt
@amitlzkpa
amitlzkpa / Sublime Settings
Last active February 21, 2019 16:03
Sublime settings with shortcuts for shifting group focus, javascript log and reindent
[
{ "keys": ["ctrl+alt+left"], "command": "focus_neighboring_group", "args": {"forward": false} },
{ "keys": ["ctrl+alt+right"], "command": "focus_neighboring_group" },
{ "keys": ["ctrl+p"],
"command": "insert_snippet",
"args": {
"contents": "console.log(${1:}$SELECTION);${0}"
}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "source.js", "match_all": true }
// Assumes you have a MetaMask wallet running on Chrome
/*
Put this on the html page
<script src="https://cdn.jsdelivr.net/gh/ethereum/web3.js/dist/web3.min.js"></script>
*/
// You can get the ABI json for your contract here.
// Assumes you have a MetaMask wallet running on Chrome
/*
Put this on the html page
<script src="https://cdn.jsdelivr.net/gh/ethereum/web3.js/dist/web3.min.js"></script>
*/
// You can get the ABI json for your contract here.
@amitlzkpa
amitlzkpa / Deploy a smart-contract using Web3.js from client side.
Last active August 4, 2018 13:48
Deploys an instance for a smart-contract compiled in Solidity to an Ethereum network
// Assumes you have a MetaMask wallet running on Chrome
/*
Put this on the html page
<script src="https://cdn.jsdelivr.net/gh/ethereum/web3.js/dist/web3.min.js"></script>
*/