This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Ruangprogrammer Bootstrap 3 Fluid Layout Example</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Bootstrap 3 Fixed Layout Example</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.gist-data{ | |
height:250px; // Any height | |
overflow-y: visible; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function code($code) | |
{ | |
//echo "this page is under construction"; | |
if (!empty($this->session->userData)) { | |
$row = $this->download_model->get_by_code($code); | |
redirect('https://github.com' . $row->download_link_download); | |
} else { | |
$code_download = $code; | |
$this->session->set_userdata('code_download', $code_download); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const knex = require('../knex'); // the connection! | |
const Promise = require('bluebird'); | |
module.exports = { | |
getShow(id){ | |
// return knex('_modules').orderBy('module_order','ASC'); | |
return knex.select('module_id').from('_user_level_authority').where('user_level_id',id).map(function(row) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="description" content=""> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chrome://apps/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//test DOENE | |
var storage = multer.diskStorage({ | |
destination : function(req, file, cb ){ | |
cb(null, 'media/images/thumbs/'); | |
}, | |
filename : function(req, file, cb){ | |
cb(null, 'product_' + file.fieldname + '-' + Date.now() + '.jpg'); | |
} | |
}); | |
var upload = multer({ storage: storage }).single('image'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
a = item_show.map((x,i)=>{ | |
return { | |
module_id:x.module_id, | |
name: x.module_name, | |
icon:x.module_name, | |
url:x.module_link, | |
// children: ['1','3','4','6'], | |
// icon:x.module_icon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form method="POST" action=""> | |
<input type="text" name="password_hash"><br><br> | |
Masukan password :<input type="submit" name="proses" value="Proses"> | |
</form> | |
<?php | |
error_reporting(0); | |
if(isset($_POST['proses'])){ | |
$password = $_POST['password_hash']; | |
$hash = password_hash($password, PASSWORD_DEFAULT); | |
echo "password : ".$_POST['password_hash']; |
NewerOlder