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 / 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

@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)
@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 / .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
@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
task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest', 'createDebugCoverageReport']) {
reports {
xml.enabled = true
html.enabled = true
}
def fileFilter = [ '**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*' ]
def debugTree = fileTree(dir: "$project.buildDir/tmp/kotlin-classes/debug", excludes: fileFilter)
def mainSrc = "$project.projectDir/src/main/kotlin"
@f4ww4z
f4ww4z / build.gradle
Last active February 19, 2019 15:57 — forked from rafaeltoledo/build.gradle
# Our merge report task
task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest', 'createDebugCoverageReport']) {
reports {
xml.enabled = true
html.enabled = true
}
def fileFilter = ['**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*']
import React, { Component } from 'react';
import { Router, browserHistory, Route, Link } from 'react-router';
import logo from './logo.svg';
import './App.css';
const Page = ({ title }) => (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>{title}</h2>
@f4ww4z
f4ww4z / data_preprocessing_template.py
Created June 22, 2019 10:16
A template to process data for machine learning models
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
# Importing the dataset
data = pd.read_csv('Data.csv')
# Separate independent and dependent variables
X = data.iloc[:, :-1].values