Skip to content

Instantly share code, notes, and snippets.

🌴
On vacation

Agus Ibrahim agusibrahim

🌴
On vacation
Block or report user

Report or block agusibrahim

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View opera_news_sources.json
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 / IosHelper.cs
Created May 17, 2019
Ios find active view controller
View IosHelper.cs
using System;
using UIKit;
namespace Plugin.Toast
{
/// <summary>
///
/// </summary>
public static class IosHelper
{
@agusibrahim
agusibrahim / Kode.gs
Created Mar 18, 2019
Form Registrasi with google script
View Kode.gs
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");
View index.html
<!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>
View web_qr_code.html
<!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>
@agusibrahim
agusibrahim / Tools.java
Created Aug 21, 2017
Tools berguna untuk android dev
View Tools.java
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;
/**
@agusibrahim
agusibrahim / testgist1.java
Created Jul 3, 2017
Test Post with java Android
View testgist1.java
import id.agusibrahim.test.*;
// test file 1, generate at 3 Jul 2017 11.21.30 - 1499055690358
@agusibrahim
agusibrahim / testgist1.txt
Created Jul 3, 2017
Test Post with java Android
View testgist1.txt
test file 1, generate at 3 Jul 2017 11.18.36
@agusibrahim
agusibrahim / testgist.txt
Created Jul 3, 2017
Test Post with java Android
View testgist.txt
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.menu_login:
String token=gauth.getAccessToken();
if(token==null) doLogin();
else mPerformEdit.setDefaultText("Has Login, Token: "+token);
break;
case R.id.menu_settings:
if(gauth.getAccessToken()!=null){
doPost();
You can’t perform that action at this time.