Skip to content

Instantly share code, notes, and snippets.

View ruangprogrammer's full-sized avatar

Ruang Programmer ruangprogrammer

View GitHub Profile
<!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>
<!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>
.gist-data{
height:250px; // Any height
overflow-y: visible;
}
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);
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) {
<!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="">
chrome://apps/
//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');
/*
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
<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'];