Menggunakan Flex.
mxmlc path/to/StageExample.as
Kode demo untuk tutorial di Youtube
-- work, but the result not accurate | |
SELECT c.user_id, | |
c.user_fname, | |
COUNT(cc.user_id) AS total_child, | |
COUNT(ccc.user_id) AS total_consul | |
FROM drpp_user c | |
LEFT JOIN drpp_child cc | |
ON cc.user_id = c.user_id | |
LEFT JOIN drpp_consul ccc | |
ON ccc.user_id = c.user_id |
<?php | |
/** | |
* @version 20150828 | |
*/ | |
function username($str) { | |
$bool = preg_match('/^[a-zA-Z][a-zA-Z0-9_]+$/', $str); | |
$status = ($bool ? "<b>Good</b>" : "Bad"); | |
echo $status." : ".$str."\n"; | |
} | |
$kind = array( |
// @param st: The string that will be trimmed. @default whitespace | |
String.prototype.strim = function(st) { | |
st = st || "\\s"; | |
return this.replace(new RegExp("^"+st+"+|"+st+"+$",'g'),''); | |
} | |
/* | |
example: | |
"alorem ipsuma".strim('a'); // return "lorem ipsum" | |
" lorem ipsum ".strim(); // return "lorem ipsum" |
<?php | |
// 201602211052, 201605282339 | |
error_reporting(E_ALL); ini_set('display_errors', 1); | |
class Anoop { | |
public function bend($elm,$attack) { | |
if (!isset($this->{$elm})) { | |
$this->{$elm} = new ELement($elm); | |
} | |
$this->{$elm}->technique($attack); |
<!-- put inside <head/> tag --> | |
<style> | |
<b:loop index='i' values='1 to 100' var='n'> | |
<b:if cond='data:n%5 == 0'> | |
.w-<data:n/>p {width:<data:n/>%;} | |
.h-<data:n/>p {height:<data:n/>%;} | |
</b:if> | |
</b:loop> | |
</style> |
node.exe
to /jsbin