Skip to content

Instantly share code, notes, and snippets.

View ihsanberahim's full-sized avatar
💭
focusing on the strong base for long term

Muhammad Nur'Ihsan Bin Berahim ihsanberahim

💭
focusing on the strong base for long term
View GitHub Profile
@ihsanberahim
ihsanberahim / add_id_column.sql
Last active August 29, 2015 14:10
Make RedBean Works on Custom Table
#RedBean needs the 'id' column.
ALTER TABLE `table_name` ADD `id` INT UNSIGNED NULL DEFAULT '1';
@ihsanberahim
ihsanberahim / app.html
Created November 29, 2014 00:12
Block input example
<html>
<body onload="onBodyLoad()">
<input name="intergerField"/>
</body>
</html>
@ihsanberahim
ihsanberahim / index.html
Last active August 29, 2015 14:10
Watermark Image With JS
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style>
#watermarked{
background-color: #fff;
}
</style>
@ihsanberahim
ihsanberahim / designer.html
Last active August 29, 2015 14:11
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
<link rel="import" href="../core-animated-pages/transitions/slide-up.html">
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<p>Please download this jsbin file to make sure it is works</p>
alias dota2="open steam://run/570//%22%20%22-novid%22%20%22-autoconfig%22"
alias dota2_home="open steam://run/570//%22%20%22-novid%22%20%22-autoconfig%22%20%22-windowed%22%20%22-w%22%20%221600%22%20%22-h%22%20%22900%22"
alias dota2_office="open steam://run/570//%22%20%22-novid%22%20%22-autoconfig%22%20%22-windowed%22%20%22-w%22%20%221280%22%20%22-h%22%20%221024%22"
@ihsanberahim
ihsanberahim / grunt_after.json
Last active August 29, 2015 14:17
generator yo polymer grunt improvement to make your project getting smaller
{
copy: {
dist: {
files: [{
expand: true,
dot: true,
cwd: '<%= yeoman.app %>',
dest: '<%= yeoman.dist %>',
src: [
'*.{ico,txt}',
@ihsanberahim
ihsanberahim / helpers.js
Created March 27, 2015 23:45
reset angular in cordova app
window.origin = window.location.href.replace(window.location.hash,'').replace(window.location.search,'').replace('#','');
var reset_app = function()
{
window.open(window.origin,'_top');
}
/**
* http://ihsanberahim.com
*/
@ihsanberahim
ihsanberahim / _ionic3_ionitemsliding_click_event.MD
Last active January 29, 2019 19:22
IONIC3 - Trigger IonItemSliding using click event
@ihsanberahim
ihsanberahim / _README.md
Last active May 11, 2018 03:33
DUMP SQL USE WP

DUMP SQL USE WP

  • install Debug Bar Console
  • install File Manager