Skip to content

Instantly share code, notes, and snippets.

@leejaew
leejaew / blockstack-id-verification
Created February 2, 2019 03:18
Verifying my Blockstack ID
Verifying my Blockstack ID is secured with the address 15BaRdKzdQBaesY7CJ1TBJpCSLH68djHD2 https://explorer.blockstack.org/address/15BaRdKzdQBaesY7CJ1TBJpCSLH68djHD2

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@leejaew
leejaew / unixtime_to_readable.rb
Created September 23, 2013 20:46
convert unix timestamp to readable format in ruby
# sample unix timestamp
unix_timestamp = 1379967844
# create a new time object with the value
#
# Time.at(value)
t = Time.at(unix_timestamp)
# get current system time
@leejaew
leejaew / unixtime_to_readable.js
Created September 23, 2013 20:44
convert unix timestamp to readable format in javascript
// create a new Date object, foo
var foo = new Date;
// prompt user for a input (e.g. unix timestamp)
//var unixTimestamp = prompt("Enter Unix Timestamp");
// get current system time, getTime()
var unixTimestamp = parseInt(foo.getTime() / 1000);
// call a function in a constructor context
@leejaew
leejaew / youtube_search.json
Created August 29, 2013 18:34
JSON response from a search.list() YouTube Data API call. Sample code via http://blog.jael.ee/2013/08/29/using-apis-youtube
{
"kind": "youtube#searchListResponse",
"etag": "\"KEUMKBAfMFio6qdGCa6Hez6bAHI/cejCtLduIr8M2iiidj3uVuSJKuc\"",
"nextPageToken": "CAUQAA",
"pageInfo": {
"totalResults": 1000000,
"resultsPerPage": 5
},
"tokenPagination": {
"nextPageToken": "CAUQAA"
@leejaew
leejaew / .bash_profile
Created August 20, 2012 00:05 — forked from mschmulen/.bash_profile
.bash_profile ( some of my .bash settings )
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
#ANDROID exports
PATH=/Users/mschmulen/android-sdk-macosx/tools:$PATH
PATH=/Users/mschmulen/android-sdk-macosx/platform-tools:$PATH
PATH=/usr/local/bin/node:$PATH
PATH=/usr/local/bin/npm:$PATH
export PATH