Skip to content

Instantly share code, notes, and snippets.

View f4ww4z's full-sized avatar
🙂
Istiqomah

Maharaj Fawwaz Almuqaddim Yusran f4ww4z

🙂
Istiqomah
View GitHub Profile
@f4ww4z
f4ww4z / .travis.yml
Last active February 1, 2019 09:55
Travis new configuration (Android API level 28)
language: android
sudo: required
jdk: oraclejdk8
env:
global:
- ANDROID_API_LEVEL=28
- ANDROID_BUILD_TOOLS_VERSION=28.0.3
- ANDROID_ABI=armeabi-v7a
@f4ww4z
f4ww4z / .travis.yml
Created February 1, 2019 09:41
Travis's old configuration (API level < 28)
language: android
sudo: required
jdk: oraclejdk8
env:
global:
- ANDROID_API_LEVEL=27
- ANDROID_BUILD_TOOLS_VERSION=27.0.3
- ANDROID_ABI=armeabi-v7a
Windows Registry Editor Version 5.00
; Open files
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code]
@="Edit with VS Code"
"Icon"="E:\\VSCode\\Code.exe,0"
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command]
@="\"E:\\VSCode\\Code.exe\" \"%1\""
; This will make it appear when you right click ON a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CLASSES_ROOT\Directory\shell\vscode]
@echo off
SET CurrentWorkingDirectory=%CD%
SET CMDER_ROOT=%~dp0
CALL "%CMDER_ROOT%\vendor\init.bat"
CD /D %CurrentWorkingDirectory%
{
//...
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
"terminal.integrated.shellArgs.windows": ["/K", "E:\\cmder\\vscode.bat"]
//...
}
@f4ww4z
f4ww4z / Bintang.kt
Last active May 13, 2018 02:32
Pattern / "problem solving"
fun main(args: Array<String>) = bintang(4)
fun bintang(n: Int) {
for (i in n downTo 0) printBintang(n, i)
for (i in 1..n) printBintang(n, i)
}
fun printBintang(n: Int, rentang: Int) {
space(n - rentang)
@f4ww4z
f4ww4z / BookGenerator.java
Last active August 7, 2022 01:44
Want to write a book in a few seconds? Out of ideas and/or motivation for words? Try this Java class to generate a whole book within seconds!
import java.util.List;
import java.util.ArrayList;
import java.util.Scanner;
import java.io.FileReader;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.concurrent.ThreadLocalRandom;
@f4ww4z
f4ww4z / modules_to_addons_changes.md
Last active December 18, 2017 23:39
OpenMRS [AO-12] GCI Task - Update the OpenMRS Wiki

https://issues.openmrs.org/browse/AO-12

Changing old instructions for publishing to modules.openmrs.org and point to the new OpenMRS index addons.openmrs.org instead