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
@agusibrahim
agusibrahim / Tools.java
Created August 21, 2017 10:20
Tools berguna untuk android dev
package com.agusibrahim.rsosdemo.Utils;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Rect;
import android.support.v7.widget.RecyclerView;
import android.util.DisplayMetrics;
import android.view.View;
/**
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>WEB QR Code Test</title>
<script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script>
<script defer src="/__/firebase/4.8.0/firebase-app.js"></script>
<!-- include only the Firebase features as you need -->
<script defer src="/__/firebase/4.8.0/firebase-database.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
This file has been truncated, but you can view the full file.
{
"version":1,
"created":"Wed Sep 12 16:19:22 2018",
"countryLanguageVersion":"0/36",
"sites":[
[
"",
0,
[
[
@agusibrahim
agusibrahim / index.html
Created August 24, 2018 09:15
kartu-nama-cbo
<!DOCTYPE HTML>
<html>
<body>
<p id="labelgen">PLEASE WAIT...</p>
<a id="download" download="triangle.png"><button type="button" onClick="download()">Download Now</button></a><br>
<canvas style="display='none'" crossOrigin="Anonymous" id="myCanvas" width="899" height="550"></canvas>
</body>
</html>
@agusibrahim
agusibrahim / Kode.gs
Created March 18, 2019 18:09
Form Registrasi with google script
function myFunction() {
}
function doGet() {
var idx=HtmlService.createHtmlOutputFromFile("home");
idx.setTitle("REGISTRATION")
return idx;
}
function sendMeQr(fullname, company, position, email){
var ss = SpreadsheetApp.openById("1RZwLAmIFfXrNuwti-K4v3hsT-TjYXsEI_evnpX0TdKU");
@agusibrahim
agusibrahim / IosHelper.cs
Created May 17, 2019 04:26
Ios find active view controller
using System;
using UIKit;
namespace Plugin.Toast
{
/// <summary>
///
/// </summary>
public static class IosHelper
{
[
{
"iata": "0B",
"name": "Blue Air"
},
{
"name": "Ghadames Air",
"iata": null
},
{
@agusibrahim
agusibrahim / index.html
Last active December 15, 2019 05:20
rNaMKWe
<button onclick="share1()">SHARE TEKS</button>
<button onclick="share2()">SHARE IMG</button>
<button onclick="share3()">SHARE WHATSAPP</button>
<button onclick="notif1()">SHOW NOTIF</button>
@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;
@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