Skip to content

Instantly share code, notes, and snippets.

Avatar

Zaw Myo Htet zawmyohtet

View GitHub Profile
@zawmyohtet
zawmyohtet / HappyNewYear.php
Created Dec 31, 2015
My CodeFight HappyNewYear Challenge solution
View HappyNewYear.php
<?php
function happyNewYear($wish){
$st = explode(" ", addslashes($wish));
$mx = max(array_map("strlen", $st));
$re[] = str_repeat("*", $mx + 4);
for ($i = 0; $i < sizeof($st); $i++ ){
@zawmyohtet
zawmyohtet / new_gist_file_0
Created Dec 8, 2014
Android Opacity Value
View new_gist_file_0
100% — ff
99% — fc
98% — fa
97% — f7
96% — f5
95% — f2
94% — f0
93% — ed
92% — eb
91% — e8
@zawmyohtet
zawmyohtet / 0_reuse_code.js
Created Oct 7, 2013
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console