Skip to content

Instantly share code, notes, and snippets.

View AungMyoKyaw's full-sized avatar
🌼
late bloomer 🌼

Aung Myo Kyaw AungMyoKyaw

🌼
late bloomer 🌼
  • Singapore
  • 21:36 (UTC +08:00)
View GitHub Profile
@AungMyoKyaw
AungMyoKyaw / PairwiseFCC
Last active April 27, 2016 11:58
Pairwise Free Code Camp
function pairwise(arr, arg) {
var amk=[];
if(arr.length===0){
return 0;
}
arr.forEach(function(element,index){
if(isNaN(element)===false){
var tofind=arg-element;
var indexpos=arr.indexOf(tofind);
if(indexpos!==-1 && index!==indexpos){
@AungMyoKyaw
AungMyoKyaw / Ubuntu-Compass-ruby[16.04]
Created May 30, 2016 16:44
Compass installation for ubuntu 16.04
[https://gist.github.com/stephou0104/233b5c99884f1d8c8b8b#file-ubuntu-compass-ruby]
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties
sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
curl -L https://get.rvm.io | bash -s stable
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
source ~/.rvm/scripts/rvm
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
function nayNum(str) {
// to filter consonant
var consonant = /[က-အ](?!်|္)/g;//thanks to ko camhill(mysteryzillion.org) for this regex.
function setRex(i) {
var s1 = /[အ]/;
var s2 = /[က-င]/;
var s3 = /[စ-ည]/;
var s4 = /[ယ-ဝ]/;
var s5 = /[ပ-မ]/;
var s6 = /[သဟ]/;

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: