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 | |
//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
/** | |
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
# -*- coding: utf-8 -*- | |
# text 2 img | |
from PIL import Image, ImageDraw, ImageFont | |
bg={ | |
'white':(255, 255, 255), | |
'red':(160, 0, 0), | |
'darkblue':(0, 0, 80), | |
'db2':(25, 50, 100), |
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 | |
//integralnya kd | |
//by adib | |
function f1($x=1){ | |
return | |
($x**3-22*($x**2))/8 | |
- | |
((1/24)*$x**3) | |
; |
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
#sh cmd bookmark result | |
function f(){ | |
echo "1 cd ./domains/mmasjid.com/dev | |
2 cd ./domains/mmasjid.com/dev/ | |
3 git add . | |
4 git add .gitignore | |
5 git branch | |
6 git branch dev | |
7 git branch -l | |
8 git branch --set-upstream-to=origin/adib adib |
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
import string | |
""" | |
sort of meta-programming generator | |
likethis | |
function dibch(){ | |
echo " | |
1 /media/c/ | |
2 /media/c/play/ |
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
#!/usr/bin/python | |
# crawl | |
from bs4 import BeautifulSoup as bs4 | |
# import MySQLdb | |
# import os | |
# from Connection import * | |
def getlitext(f): |
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
# import serial | |
import re | |
import time | |
import csv | |
# import mysql.connector | |
# from mysql.connector import Error | |
# from mysql.connector import errorcode | |
from datetime import datetime | |
from pprint import pprint |
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 | |
require_once('koneksi.php'); | |
$sql = mysqli_query($conn, "SELECT id_data, tempat_wisata, dcuaca, djumlah_pengunjung, dspot_wisata, dtiket_wisata, dfasilitas_umum | |
FROM data, alternatif where data.id_alt=alternatif.id_alternatif"); | |
//Pembagi | |
while ($data1= mysqli_fetch_array($sql)){ | |
$c[] = pow($data1['dcuaca'],2); | |
$j[] = pow($data1['djumlah_pengunjung'],2); |