Skip to content

Instantly share code, notes, and snippets.

View freyandhy's full-sized avatar

Friandy D. Noviandha freyandhy

View GitHub Profile
@freyandhy
freyandhy / data-box-provinsi.json
Created April 12, 2023 02:55
Data di box peta Provinsi
{
total: 28,
data: [
{ name: 'PDIP', value: 10 },
{ name: 'Golkar', value: 8 },
{ name: 'PKB', value: 7 },
{ name: 'Gerindra', value: 4 },
{ name: 'PKS', value: 2 },
{ name: 'Demokrat', value: 1 },
{ name: 'Nasdem', value: 1 },
@freyandhy
freyandhy / dapil.json
Created April 12, 2023 02:40
Indonesia per Dapil
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@freyandhy
freyandhy / province-lat-long.json
Created April 12, 2023 02:31
Provinsi Latitude Longitude
[
{
"id": "11",
"name": "Aceh",
"alt_name": "ACEH",
"latitude": 4.684086348992826,
"longitude": 96.71137522456142,
"number": 12
},
{
@freyandhy
freyandhy / indonesia.json
Created April 12, 2023 02:25
Indonesia per province geoJSON
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@freyandhy
freyandhy / books.json
Created August 9, 2021 08:22
Json Example
[
{
"id": 1,
"isbn": "B-001",
"title": "Javascript Programming",
"publisher": "Publisher 1",
"writer": "Writer 1"
},
{
"id": 2,
@freyandhy
freyandhy / contoh.sql
Created February 7, 2021 11:47
Ini contoh sql
-- Ini query untuk bla bla bla
SELECT * FROM articles;
-- Ini query untuk bla bla bla
SELECT * FROM articles ORDER BY id ASC;
@freyandhy
freyandhy / ganjil-genap.js
Created October 9, 2020 01:48
Ini adalah script untuk nge-cek bilangan ganjil & genap
// deklrasi variabel & inputan
let number = prompt("masukkan angka ?");
// cek, jika bukan number && number >= 0 (tidak minus)
if (!isNaN(number) && number >= 0) {
// cek, jika number di modulus 2 == 0
if (number % 2 === 0) {
console.log("Genap"); // maka genap
} else {
console.log("Ganjil"); // maka ganjil
@freyandhy
freyandhy / FE-Material.md
Last active January 2, 2023 19:58
Referensi Materi - FE Class

Binar Academy

FE Material Class

Ini adalah daftar materi tentang Frontend untuk menunjang belajar kalian.

Pastikan kalian pelajari terlebih dahulu sebelum masuk kelas, agar mempermudah aktifitas belajar kita.

Selamat belajar!

@freyandhy
freyandhy / woocommerce-email.php
Created November 27, 2019 13:55
Testing Get Name at WooCommerce Email
<?php
// Generated by curl-to-PHP: http://incarnate.github.io/curl-to-php/
$name = $order->get_formatted_billing_full_name();
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://hooks.slack.com/services/ss/x/x');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
// curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"text\":\"@here Ada 1 Order Nih\"}");
@freyandhy
freyandhy / docker-compose.yml
Created September 7, 2019 09:39
docker-compose.yml for django-alpine
version: "3"
services:
djangoapp:
build: .
ports:
- "5000:5000"
volumes:
- ./project:/app