Skip to content

Instantly share code, notes, and snippets.

View agusibrahim's full-sized avatar
🌴
On vacation

Agus Ibrahim agusibrahim

🌴
On vacation
View GitHub Profile
["501409:Aceh Barat:Kab. Aceh Barat","501400:Aceh Barat Daya:Kab. Aceh Barat Daya","501404:Aceh Besar:Kab. Aceh Besar","501401:Aceh Jaya:Kab. Aceh Jaya","501417:Aceh Selatan:Kab. Aceh Selatan","501414:Aceh Singkil:Kab. Aceh Singkil","501403:Aceh Tamiang:Kab. Aceh Tamiang","501416:Aceh Tengah:Kab. Aceh Tengah","501405:Aceh Tenggara:Kab. Aceh Tenggara","501402:Aceh Timur:Kab. Aceh Timur","501408:Aceh Utara:Kab. Aceh Utara","5012832:Alapan:Kab. Simeulue","5012578:Arongan Lambalek:Kab. Aceh Barat","5012671:Atu Lintang:Kab. Aceh Tengah","5012589:Babah Rot:Kab. Aceh Barat Daya","5012686:Babul Makmur:Kab. Aceh Tenggara","5012687:Babul Rahmah:Kab. Aceh Tenggara","5012688:Babussalam:Kab. Aceh Tenggara","5012689:Badar:Kab. Aceh Tenggara","5012790:Baeutong Ateuh Banggalang:Kab. Nagan Raya","5012841:Baiturrahman:Kota Banda Aceh","5012600:Baitussalam:Kab. Aceh Besar","5012630:Bakongan:Kab. Aceh Selatan","5012631:Bakongan Timur:Kab. Aceh Selatan","5012726:Baktiya:Kab. Aceh Utara","5012727:Baktiya Barat:Kab. Aceh Utara","50
.ficon-1ah:before {
content: ""
}
.ficon-24-hour-finess-center:before {
content: "ï„‚"
}
.ficon-24hour-check-in:before {
content: ""
@agusibrahim
agusibrahim / scrape_ports_pelni.js
Created February 1, 2024 09:22
get pelni ports
var token = document.querySelector("input[name='_token']").value;
var options = Array.from(document.querySelectorAll("select[name='ticket_org'] option")).filter(x => x.getAttribute("value") != "");
var results = [];
for (const option of options) {
var ids = option.getAttribute("value");
var b = option.innerText;
var dest=""
try {
@agusibrahim
agusibrahim / main.dart
Created January 20, 2024 06:47
hotel-detail-view
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
This file has been truncated, but you can view the full file.
import 'package:flutter/material.dart';
var blockdata = [
{"a": 22, "s": 58, "w": 376, "h": 30, "t": 37, "p": 545, "l": 40},
{"a": 22, "s": 58, "w": 323, "h": 30, "t": 245, "p": 545, "l": 93},
{"a": 22, "s": 58, "w": 376, "h": 178, "t": 67, "p": 545, "l": 40},
{"a": 1, "s": 59, "w": 376, "h": 30, "t": 355, "p": 545, "l": 40},
{"a": 1, "s": 59, "w": 28, "h": 30, "t": 402, "p": 545, "l": 388},
{"a": 2, "s": 59, "w": 348, "h": 30, "t": 402, "p": 545, "l": 40},
{"a": 2, "s": 59, "w": 189, "h": 30, "t": 561, "p": 545, "l": 227},
@agusibrahim
agusibrahim / flutter_flow_icon_button.dart
Created July 15, 2022 14:53
missing file for flutterflow
import 'package:flutter/material.dart';
class FlutterFlowIconButton extends StatelessWidget {
const FlutterFlowIconButton(
{Key? key,
this.borderColor,
this.borderRadius,
this.borderWidth,
this.buttonSize,
this.fillColor,
{
"SURVEY": {
"DESCRIPTION": "Dear customer 👋, please take a few moments to share feedback about the conversation you had with %{inboxName}.",
"RATING": {
"LABEL": "Rate your conversation",
"SUCCESS_MESSAGE": "Thank you for submitting the rating"
},
"FEEDBACK": {
"LABEL": "Do you have any thoughts you'd like to share?",
"PLACEHOLDER": "Your feedback (optional)",
@agusibrahim
agusibrahim / expose_wsl_port.js
Created August 19, 2021 00:58
Expose your WSL port to other device (same network)
const execSync = require('child_process').execSync;
async function main (){
var wslip=(await execSync("bash -c \"hostname --all-ip-addresses\"")+"").replace(" ","").replace("\n","")
try{
await execSync("NET SESSION >nul 2>&1")
}catch{
console.log("Please run as Administrator")
return
}
if(process.argv.length<2 || isNaN(process.argv[2])){
@agusibrahim
agusibrahim / ftp_test.py
Last active May 3, 2020 01:45
ftp connection checker
import ftplib, time, urllib2, urllib
from configparser import ConfigParser
config=ConfigParser()
config.read("ftp_config.ini")
# atur disini yaa
HOSTNAME="localhost"
PORT=14147
@charset "UTF-8";
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
/**
* 1. Set default font family to sans-serif.
* 2. Prevent iOS text size adjust after orientation change, without disabling
* user zoom.
*/
/* line 9, ../scss/includes/_normalize.scss */
html {
font-family: sans-serif;