Skip to content

Instantly share code, notes, and snippets.

View zawmyohtet's full-sized avatar

Zaw Myo Htet zawmyohtet

View GitHub Profile
@zawmyohtet
zawmyohtet / HappyNewYear.php
Created December 31, 2015 10:36
My CodeFight HappyNewYear Challenge solution
<?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 December 8, 2014 08:16
Android Opacity Value
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 October 7, 2013 07:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console