Skip to content

Instantly share code, notes, and snippets.

View cheeaun's full-sized avatar
📬
Subscribe to my newsletter https://cheeaun.substack.com/

Chee Aun cheeaun

📬
Subscribe to my newsletter https://cheeaun.substack.com/
View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 6 columns, instead of 4. in line 7.
city,price,start,end,book_by,url
Kuala Lumpur,158,Tue 30 Aug 2016,Mon 22 May 2017,30 Sep 2016,http://www.singaporeair.com//en_UK/sg/special-offers/flight-from-Singapore-to-Kuala-Lumpur_75018/
Ho Chi Minh City,188,Tue 30 Aug 2016,Mon 22 May 2017,30 Sep 2016,http://www.singaporeair.com//en_UK/sg/special-offers/flight-from-Singapore-to-Ho-Chi-Minh-City_75014/
Jakarta,198,Tue 30 Aug 2016,Mon 22 May 2017,30 Sep 2016,http://www.singaporeair.com//en_UK/sg/special-offers/flight-from-Singapore-to-Jakarta_75017/
Kuala Lumpur,198,Sun 31 Jul 2016,Mon 22 May 2017,30 Sep 2016,http://www.singaporeair.com//en_UK/sg/special-offers/flight-from-Singapore-to-Kuala-Lumpur_75008/
Surabaya,208,Tue 30 Aug 2016,Mon 22 May 2017,30 Sep 2016,http://www.singaporeair.com//en_UK/sg/special-offers/flight-from-Singapore-to-Surabaya_75019/
Ho Chi Minh City,208,Tue 30 Aug 2016,Mon 22 May 2017,30 Sep 2016,http://www.singaporeair.com//en_UK/sg/special-offers/flight-from-Singapore-to-Ho-Chi-Minh-City_75013/
Jakarta,228,Tue 30 Aug 2016,Mon 22 May
var blockspring = require('blockspring');
var request = require('request');
var moment = require('moment');
var cycleIndex = 0;
var cycle = function(list){
if (cycleIndex < list.length) cycleIndex++;
else cycleIndex = 1
return list[cycleIndex -1];
};
@cheeaun
cheeaun / local-static-file-server-https-node-http-server-openssl.md
Last active April 14, 2024 18:47
Set up local static file server with HTTPS

Set up local static file server with HTTPS

  • npm i http-server -g - global install the static file server
  • openssl genrsa -des3 -out key.pem 1024
  • openssl req -new -key key.pem -out csr.pem
  • cp key.pem key.pem.org
  • openssl rsa -in key.pem.org -out key.pem
  • openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem
  • http-server . --S in the root directory
@cheeaun
cheeaun / rdrc2016.md
Last active June 13, 2018 08:39
RedDotRubyConf 2016 links & resources 😘

¯_(ツ)_/¯

¯\(ツ)

¯\_(ツ)_/¯

@cheeaun
cheeaun / msia-flag-sphere-copycats.md
Created December 15, 2015 13:31
Malaysia Flag sphere copycats
### Keybase proof
I hereby claim:
* I am cheeaun on github.
* I am cheeaun (https://keybase.io/cheeaun) on keybase.
* I have a public key whose fingerprint is 4FE5 DF46 B8EA 7822 2CCC C90C 6349 4485 0AA4 EFE6
To claim this, I am signing this object: