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 / workspace_settings_vscode.json
Created September 17, 2019 07:02
Setting VS Code agar lebih ringan ketika membuka project
{
"telemetry.enableTelemetry": false,
"telemetry.enableCrashReporter": false,
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"**/.vscode": true,
"**/__pycache__": true,
"**/.pytest_cache": true,
"**/node_modules": false,
(function() {
"use strict";
/**
* Bootstrap Modal Js Class
* @dvinciguerra
*/
var Modal = function(el, options) {
var self = this;
@GulajavaMinistudio
GulajavaMinistudio / workspace_settings.json
Last active August 5, 2019 03:23
Setting JSON untuk Workspace di VS Code agar tidak terlalu berat
{
"telemetry.enableTelemetry": false,
"telemetry.enableCrashReporter": false,
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"**/.vscode": true,
"**/__pycache__": true,
"**/.pytest_cache": true,
"**/node_modules": true,
@GulajavaMinistudio
GulajavaMinistudio / ZSHRC_BACKUP.txt
Created May 21, 2019 03:22
Backup ZSH RC untuk setelan ZSH Shell di Linux
# source /home/kucingmumu/.bashrc
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# android sdk
export ANDROID_HOME="/home/kucingmumu/Android/Sdk/"
export PATH="${PATH}:${ANDROID_HOME}tools/:${ANDROID_HOME}platform-tools/"
@GulajavaMinistudio
GulajavaMinistudio / UdemyJavaScriptCourse_Recommended.txt
Last active September 26, 2020 23:38
Gist yang berisi daftar Course Udemy untuk belajar pengembangan aplikasi web modern dengan serba JavaScript
@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.

@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 / 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 / jam-dinding-vue.now.sh-20181231T051122.json
Created December 31, 2018 02:59
Hasil audit aplikasi Jam Dinding dengan mode SPA dan dibuat dengan Vue JS
{"userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36","environment":{"networkUserAgent":"Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5 Build/MRA58N) AppleWebKit/537.36(KHTML, like Gecko) Chrome/71.0.3559.0 Mobile Safari/537.36","hostUserAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36","benchmarkIndex":538},"lighthouseVersion":"3.2.0","fetchTime":"2018-12-30T22:11:22.845Z","requestedUrl":"https://jam-dinding-vue.now.sh/#/jam","finalUrl":"https://jam-dinding-vue.now.sh/#/jam","runWarnings":[],"runtimeError":{"code":"NO_ERROR","message":""},"audits":{"is-on-https":{"id":"is-on-https","title":"Uses HTTPS","description":"All sites should be protected with HTTPS, even ones that don't handle sensitive data. HTTPS prevents intruders from tampering with or passively listening in on the communications between your app and your users, and is a prerequisite for HTTP/2 and many new web platform A
@GulajavaMinistudio
GulajavaMinistudio / jamanalogdigitalx.firebaseapp.com-20181231T050327.json
Last active December 30, 2018 22:09
Hasil audit aplikasi Jam Dinding dengan mode SPA dan dibuat dengan Angular
{"userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36","environment":{"networkUserAgent":"Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5 Build/MRA58N) AppleWebKit/537.36(KHTML, like Gecko) Chrome/71.0.3559.0 Mobile Safari/537.36","hostUserAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36","benchmarkIndex":546},"lighthouseVersion":"3.2.0","fetchTime":"2018-12-30T22:03:27.984Z","requestedUrl":"https://jamanalogdigitalx.firebaseapp.com/jam","finalUrl":"https://jamanalogdigitalx.firebaseapp.com/jam","runWarnings":[],"runtimeError":{"code":"NO_ERROR","message":""},"audits":{"is-on-https":{"id":"is-on-https","title":"Uses HTTPS","description":"All sites should be protected with HTTPS, even ones that don't handle sensitive data. HTTPS prevents intruders from tampering with or passively listening in on the communications between your app and your users, and is a prerequisite for HTTP/2 and many