Skip to content

Instantly share code, notes, and snippets.

View hanafiah's full-sized avatar
🏠
Working from home

Muhamad Hanafiah Yahya hanafiah

🏠
Working from home
View GitHub Profile
@hanafiah
hanafiah / prefixfree.html
Created August 28, 2012 14:42
prefixfree
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="https://raw.github.com/LeaVerou/prefixfree/gh-pages/prefixfree.min.js"></script>
<style type="text/css">
body {background:linear-gradient(45deg,maroon,red);}
</style>
</head>
<body>hello world</body>
</html>
@hanafiah
hanafiah / dabblet.css
Created August 28, 2012 14:32
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
<?php
/*
Plugin Name: category post shortcode
Plugin URI: http://ibnuyahya.com/wordpress-plugins/category-post-shortcode/
Description: To display post by category in your page/post
Author: ibnuyahya
Author URI: http://ibnuyahya.com/
Version: 2.3
*/
@hanafiah
hanafiah / gist:2941379
Created June 16, 2012 13:52
array_multisort
<?php
$listSort[] = array('email' => '[email protected]', 'name' => 'x', 'umur' => 21);
$listSort[] = array('email' => '[email protected]', 'name' => 'y', 'umur' => 11);
$listSort[] = array('email' => '[email protected]', 'name' => 'z', 'umur' => 33);
foreach ($listSort as $key => $row) {
$name2[$key] = $row['name'];
$umur2[$key] = $row['umur'];
}
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
function ayam(){
alert(document.getElementsByTagName("cite")[0].textContent);
}
</script>