- Download Apache Tomcat 9.0.12
- and then . . .
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Borrowed from: | |
# https://github.com/silven/go-example/blob/master/Makefile | |
# https://vic.demuzere.be/articles/golang-makefile-crosscompile/ | |
BINARY = superdo | |
VET_REPORT = vet.report | |
TEST_REPORT = tests.xml | |
GOARCH = amd64 | |
VERSION?=? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var random = Math.floor(Math.random() * 100000000); | |
pm.globals.set("user_phone", "+628681"+random); | |
pm.globals.set("user_email", "u"+random+"@jarjit.com"); | |
pm.globals.set("user_fullname", "u"+random+" jarjit "); | |
pm.globals.set("user_gender", Math.random() < 0.5 ? "male" : "female"); | |
pm.globals.set("user_dob", "1990-01-01"); | |
pm.globals.set("user_is_public", true); | |
pm.globals.set("user_description", "hello "+random); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pm.globals.get("variable_key"); //untuk mengambil variabel global | |
pm.variables.get("variable_key"); //mengambil variabel lokal | |
pm.environment.set("variable_key", "variable_value"); //setting environment variabel | |
pm.globals.set("variable_key", "variable_value"); //setting variabel global | |
pm.environment.unset("variable_key"); //hapus environment variabel | |
pm.globals.unset("variable_key"); //hapus variabel global | |
// melakukan request ke suatu API | |
pm.sendRequest("https://postman-echo.com/get", function (err, response) { | |
console.log(response.json()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.util.Log; | |
import java.io.IOException; | |
import java.net.InetAddress; | |
import java.net.Socket; | |
import java.net.SocketException; | |
import java.net.UnknownHostException; | |
import javax.net.SocketFactory; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install Ruby Gems on Mac OS X without sudo | |
1. Add GEM_HOME to your .bash_profile | |
For example, nano ~/.bash_profile and add | |
export GEM_HOME=/Users/srinivas/.gem where the path is to your own Home folder | |
2. Add the gem executables to your system path | |
Also in .bash_profile, add | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Creator: Phil Cook | |
# Email: [email protected] | |
# Twitter: @p_cook | |
brew_prefix=$(brew --prefix | sed 's#/#\\\/#g') | |
brew_array=("5.6","7.0","7.1","7.2") | |
php_array=("[email protected]" "[email protected]" "[email protected]" "[email protected]") | |
valet_support_php_version_array=("[email protected]" "[email protected]" "[email protected]" "[email protected]") | |
php_installed_array=() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-optimizationpasses 5 | |
-dontusemixedcaseclassnames | |
-dontskipnonpubliclibraryclasses | |
-dontskipnonpubliclibraryclassmembers | |
-dontpreverify | |
-verbose | |
#your package path where your gson models are stored | |
-keep class com.project.models.** { *; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.os.SystemClock; | |
import android.view.View; | |
import java.util.Map; | |
import java.util.WeakHashMap; | |
/** | |
* A Debounced OnClickListener | |
* Rejects clicks that are too close together in time. | |
* This class is safe to use as an OnClickListener for multiple views, and will debounce each one separately. |