Skip to content

Instantly share code, notes, and snippets.

View ferdhika31's full-sized avatar
:octocat:
Home

Ferdhika Yudira ferdhika31

:octocat:
Home
View GitHub Profile
@ferdhika31
ferdhika31 / File_Ferdhika.c
Created December 24, 2015 02:16
EOF, read,write pada c.. dan mencari nilai rata rata lalu di tampilkan
/*
Program : File_Ferdhika.c
Deskripsi : eof
Author : Ferdhika Yudira (151524010)
Tanggal/Version : 23/12/2015 v.1.0
Compiler : Dev C++ V5.7.1
Ctt Lain : Belajar dari
https://en.wikibooks.org/wiki/A_Little_C_Primer/C_File-IO_Through_Library_Functions
http://wardhiansyah.blogspot.co.id/2011/10/belajar-bahasa-c-library-dan-fungsinya.html
*/
@ferdhika31
ferdhika31 / nyolong.php
Created February 1, 2016 05:21
Nyolong gambar
<?php
// Nanya awal nim na.
echo "MASUKKAN NIM\nContoh 1515240 (JTK D4)\nMasukkan :";
$ngambilNim = fgets(fopen ("php://stdin","r")); // ngambil inputan nim
// Nyimpen gambarna dimana?
//echo "Masukkan folder tujuan :";
//$targetFolder = fgets(fopen ("php://stdin","r")); // ngambil inputan nim
echo "Mau ngambil absen 1 sampe berapa? ";
@ferdhika31
ferdhika31 / CRUD_pymongo.py
Created March 27, 2017 13:46
CRUD PyMongo at command line/terminal
# Source From : https://github.com/jay3dec/CRUD_Python_MongoDb/blob/master/MongoDbCRUD.py
# Python Version : 3
# Install pymongo : pip3 install pymongo
from pymongo import MongoClient
# creating connectioons for communicating with Mongo DB
client = MongoClient('localhost:27017')
db = client.EmployeeData
@ferdhika31
ferdhika31 / notif.php
Created December 23, 2017 13:28
Send notif firebase
<?php
// API access key from Google API's Console
define( 'API_ACCESS_KEY', 'API_KEY_FIREBASE' );
// device id
$registrationIds = array(
'REGISTER_ID'
);
// prep the bundle
$msg = array(
@ferdhika31
ferdhika31 / Tgl_indonesia.php
Created June 11, 2018 09:47
Panada library
<?php
/**
* @Author : Localhost {Ferdhika Yudira}
* @Email : fer@dika.web.id
* @Web : http://dika.web.id
* @Date : 2015-02-18 18:00:20
**/
namespace Libraries;
class Tgl_indonesia {
@ferdhika31
ferdhika31 / jalur.html
Last active June 12, 2018 10:29
Cek keluar jalur di google maps
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>Check directions between two point</title>
<style>
/* Always set the map height explicitly to define the size of the div
* element that contains the map. */
#map {
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use App\Traits\BinarySchemaTrait as BinarySchema;
class CreatePengajuanProdukHukumTable extends Migration
{
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use App\Traits\BinarySchemaTrait as BinarySchema;
class CreateProdukHukumTable extends Migration
{
@ferdhika31
ferdhika31 / octicon.css
Created September 13, 2018 05:10
The @font-face for the GitHub Octicons. See https://github.com/styleguide/css/7.0 for more information. Octicons webfonts version 4.4.0
@font-face {
font-family:"Octicons";
src:url("https://cdnjs.cloudflare.com/ajax/libs/octicons/4.4.0/font/octicons.eot?ef21c39f0ca9b1b5116e5eb7ac5eabe6");
src:url("https://cdnjs.cloudflare.com/ajax/libs/octicons/4.4.0/font/octicons.eot?#iefix") format("embedded-opentype"),
url("https://cdnjs.cloudflare.com/ajax/libs/octicons/4.4.0/font/octicons.woff2?ef21c39f0ca9b1b5116e5eb7ac5eabe6") format("woff2"),
url("https://cdnjs.cloudflare.com/ajax/libs/octicons/4.4.0/font/octicons.woff?ef21c39f0ca9b1b5116e5eb7ac5eabe6") format("woff"),
url("https://cdnjs.cloudflare.com/ajax/libs/octicons/4.4.0/font/octicons.ttf?ef21c39f0ca9b1b5116e5eb7ac5eabe6") format("truetype"),
url("https://cdnjs.cloudflare.com/ajax/libs/octicons/4.4.0/font/octicons.svg?ef21c39f0ca9b1b5116e5eb7ac5eabe6#octicons") format("svg");
font-weight:normal;
@ferdhika31
ferdhika31 / polaportal.php
Created October 1, 2018 04:09
Polaportalpontianak
<?php
$awal=0;
$akhir=4;
$baris=1;
for($i=0;$i<15;$i++){
echo "Baris : ".$baris."<br>";