Skip to content

Instantly share code, notes, and snippets.

View pratamawijaya's full-sized avatar

Pratama Nur Wijaya pratamawijaya

View GitHub Profile
@pratamawijaya
pratamawijaya / news.json
Last active September 15, 2018 05:18
news api
{
"status": "ok",
"totalResults": 5026,
"articles": [
{
"source": {
"id": null,
"name": "Bitcoinist.com"
},
"author": "Eric Yao",
[
{
"_id": "5ada9cab2dbde457e1678d1d",
"index": 0,
"guid": "39ea9f73-d8e9-4a6d-847e-aa2c8d23457d",
"isActive": true,
"balance": "$3,906.24",
"picture": "http://placehold.it/32x32",
"age": 32,
"eyeColor": "green",
@pratamawijaya
pratamawijaya / sketch-never-ending.md
Created April 18, 2018 09:32 — forked from Bhavdip/sketch-never-ending.md
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

Computer Information:
Manufacturer: Apple
Model: MacBookPro11,5
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
CPU Family: 0x6
@pratamawijaya
pratamawijaya / android_gradient_button_background.xml
Created March 24, 2018 05:16
android gradient button background
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape
android:shape="rectangle">
<!--setup gradient-->
<gradient
android:startColor="#7973B4"
android:centerColor="#6A74B9"
android:endColor="#5976B8"
@pratamawijaya
pratamawijaya / sign_apk.sh
Created January 24, 2018 09:09 — forked from caingougou/sign_apk.sh
Create keystore file and sign a jar file (or android package)
# create keystore file
keytool -genkey -v -keystore [my-release-key].ketstore -keyalg RSA -validity 1000 -alias [some_alias]
# sign package
jarsigner -keystore my-release-key.ketstore [some-release-unsigned.apk] some_alias
# verify signed package
jarsigner -verify [some-release-unsigned.apk]
@pratamawijaya
pratamawijaya / GoogleMapsGeocodingHelper.kt
Created November 4, 2017 01:58 — forked from matteo-grella/GoogleMapsGeocodingHelper.kt
A Kotlin wrapper for the Google Maps Geocoding API v3
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
h scroll left
j scroll down
k scroll up
l scroll right
gg scroll to top of the page
G scroll to bottom of the page
f activate link hints mode to open in current tab
F activate link hints mode to open in new tab
r reload
@pratamawijaya
pratamawijaya / git_submodules.md
Created October 16, 2017 09:05 — forked from gitaarik/git_submodules.md
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:

  • You can separate the code into different repositories.
@pratamawijaya
pratamawijaya / iterm2-solarized.md
Created September 7, 2017 08:58 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k