Skip to content

Instantly share code, notes, and snippets.

View ichsanputr's full-sized avatar
Awali dengan basmalah..

Muhammad Ichsanul Fadhil ichsanputr

Awali dengan basmalah..
View GitHub Profile
View index.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SSN Website Landing Page</title>
<link rel="icon" href="images/favicon.svg">
<link href="style.css" rel="stylesheet">
View a.css
@keyframes fadeOut{from{opacity:1}to{opacity:0}}.v-toast--fade-out{animation-name:fadeOut}@keyframes fadeInDown{from{opacity:0;transform:translate3d(0, -100%, 0)}to{opacity:1;transform:none}}.v-toast--fade-in-down{animation-name:fadeInDown}@keyframes fadeInUp{from{opacity:0;transform:translate3d(0, 100%, 0)}to{opacity:1;transform:none}}.v-toast--fade-in-up{animation-name:fadeInUp}.fade-enter-active,.fade-leave-active{transition:opacity 150ms ease-out}.fade-enter,.fade-leave-to{opacity:0}.v-toast{position:fixed;display:flex;top:0;bottom:0;left:0;right:0;padding:2em;overflow:hidden;z-index:1052;pointer-events:none}.v-toast__item{display:inline-flex;align-items:center;animation-duration:150ms;margin:.5em 0;box-shadow:0 1px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);border-radius:.25em;pointer-events:auto;opacity:.92;color:#fff;min-height:3em;cursor:pointer}.v-toast__item--success{background-color:#28a745}.v-toast__item--info{background-color:#17a2b8}.v-toast__item--warning{background-color:#ffc107}.v-toast__ite
ichsanputr / scan.go
Last active July 3, 2023 12:55
View scan.go
package main
import (
ichsanputr / App.vue
Created June 21, 2023 05:35
modal pakek flowbite dengan vue
View App.vue
<!-- button buat bukak modal, pakek props default biar warna nya biru -->
<!-- props lainya cek dokumentasi :) -->
<Button @click="openModal" color="default">Buka Modal</Button>
<!-- buat modal nya bisa copy di -->
ada props size buat ngatur ukuranya, docs nya disini
pakek event @close buat nutup dan bukak, fungsinya kalau pencet tombol X di modal bakal najalanin method closeModal
View dfd
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
// WiFi
const char *ssid = ""; // Enter your WiFi name
const char *password = ""; // Enter WiFi password
// MQTT Broker
const char *mqtt_broker = ""; // Enter your WiFi or Ethernet IP
const char *topic = "test/topic";
const int mqtt_port = 1883;
WiFiClient espClient;
View motor_esp32.ino
#include <WiFi.h>
#include <WebServer.h>
#define ENA 13
#define ENB 12
#define IN_1 32
#define IN_2 33
#define IN_3 34
#define IN_4 35
View chart.json
"data": [
"ketua": [
"id": 1,
"name": "Joko",
"category": "Ketua",
"summary": 1341
ichsanputr / fdfdf
Created January 24, 2023 13:56
View fdfdf
iframe {
top:0; left:0;
filter:alpha(opacity=10); /* in a real attack this would be opacity=0 */
ichsanputr / mkdir.asm
Last active December 8, 2022 09:26
Create a directory using mkdir syscall with x64 assembly linux
View mkdir.asm
;compile and running using command below
;nasm -f elf64 -g -F dwarf -o a.o a.asm
;ld -o a a.o
global _start
section .data
pathDir db "dirTest",0
ichsanputr / rtctolcd.c
Created March 9, 2022 02:31
Display current date, hour, second with RTC and LCD Arduino
View rtctolcd.c
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <RTClib.h>
RTC_DS1307 rtc;
LiquidCrystal_I2C lcd(0x27,20,4);
void setup()