This file contains hidden or 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
/** | |
BasicHTTPClient.ino | |
Created on: 24.05.2015 | |
*/ | |
#include <Arduino.h> |
This file contains hidden or 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
<?php | |
//submit | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
class Fuzzy extends CI_Controller | |
{ | |
public function __construct() |
This file contains hidden or 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
<?php | |
class Gerak_model extends CI_Model{ | |
function tampil_data(){ | |
$data = $this->db->get('data_gerak'); | |
} | |
function input_data($data,$table){ | |
$this->db->insert($table,$data); |
This file contains hidden or 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
<?php | |
class Gerak_model extends CI_Model{ | |
function tampil_data(){ | |
$data = $this->db->get('data_gerak'); | |
} | |
function input_data($data,$table){ | |
$this->db->insert($table,$data); |
This file contains hidden or 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
<?php | |
$const=[ | |
[0,'Semua'], | |
[1,'Pending'], | |
[2,'Diterima'], | |
[3,'Ditolak'] | |
]; | |
$const2=[ | |
"peg_nama"=>"Nama peg", | |
"peg_id"=>"Id peg", |
This file contains hidden or 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
#append imgs | |
# thx for the thread! https://stackoverflow.com/questions/30227466/combine-several-images-horizontally-with-python | |
from PIL import Image,ImageDraw | |
images = [Image.open(x) for x in [str(i)+'.png' for i in range(1,901)]] | |
widths, heights = zip(*(i.size for i in images)) | |
new_im = Image.new('RGB', (12*30, 12*30)) | |
x_offset = 0 |
This file contains hidden or 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
<?php | |
// $get=$_GET; | |
$post=$_POST; | |
$num=isset($post['num'])?$post['num']:0; | |
?> | |
<form method="post" action=""> | |
<div> |
This file contains hidden or 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
<?php | |
use Illuminate\Database\Migrations\Migration; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Support\Facades\Schema; | |
class AlterAddIdSekolah extends Migration | |
{ | |
/** | |
* Run the migrations. |
This file contains hidden or 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
/* | |
base : https://chandranrahul.wordpress.com/2017/12/04/extract-images-from-spreadsheet-using-phpexcel/ | |
modified : Rab Apr 22 21:32:00 WIB 2020 | |
- require | |
composer require phpoffice/phpspreadsheet | |
- imports | |
use PhpOffice\PhpSpreadsheet\IOFactory; | |
use PhpOffice\PhpSpreadsheet\Worksheet\MemoryDrawing; |
This file contains hidden or 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
INSERT INTO `wilayah` VALUES ('41748', 'KEPUTIH', 'SUKOLILO', 'SURABAYA', 'JAWA TIMUR', '60111'); | |
INSERT INTO `wilayah` VALUES ('41749', 'KALISARI', 'MULYOREJO', 'SURABAYA', 'JAWA TIMUR', '60112'); | |
INSERT INTO `wilayah` VALUES ('41750', 'KEJAWEN PUTIH TAMBAK', 'MULYOREJO', 'SURABAYA', 'JAWA TIMUR', '60112'); | |
INSERT INTO `wilayah` VALUES ('41751', 'DUKUH SUTOREJO', 'MULYOREJO', 'SURABAYA', 'JAWA TIMUR', '60113'); | |
INSERT INTO `wilayah` VALUES ('41752', 'KALIJUDAN', 'MULYOREJO', 'SURABAYA', 'JAWA TIMUR', '60114'); | |
INSERT INTO `wilayah` VALUES ('41753', 'MULYOREJO', 'MULYOREJO', 'SURABAYA', 'JAWA TIMUR', '60115'); | |
INSERT INTO `wilayah` VALUES ('41754', 'MANYAR SABRANGAN', 'MULYOREJO', 'SURABAYA', 'JAWA TIMUR', '60116'); | |
INSERT INTO `wilayah` VALUES ('41755', 'GEBANG PUTIH', 'SUKOLILO', 'SURABAYA', 'JAWA TIMUR', '60117'); | |
INSERT INTO `wilayah` VALUES ('41756', 'KLAMPIS NGASEM', 'SUKOLILO', 'SURABAYA', 'JAWA TIMUR', '60117'); | |
INSERT INTO `wilayah` VALUES ('41757', 'MENUR PUMPUNGAN', 'SUKOLILO', 'SURABAYA', 'JAWA TI |