Skip to content

Instantly share code, notes, and snippets.

View suciptoid's full-sized avatar
👋
Hello World

Sucipto suciptoid

👋
Hello World
View GitHub Profile
@suciptoid
suciptoid / MainActivity.java
Created November 11, 2016 23:03
Indonesia Android Kejar #2 Beginner : Code snippet MainActivity.java
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
// Membuat handler click tombol order
public void submitOrder(View view){
{
"token_type": "Bearer",
"expires_in": 31536000,
"access_token": "eyJ0eXAiOiJK.......",
"refresh_token": "k3aQ9Hn95........."
}

Keybase proof

I hereby claim:

  • I am showcheap on github.
  • I am showcheap (https://keybase.io/showcheap) on keybase.
  • I have a public key whose fingerprint is 014F CF33 2B4A EB23 090C 8A51 5453 347A 134D 846D

To claim this, I am signing this object:

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="true" >
<shape android:shape="rectangle" >
<corners android:radius="3dip" />
<stroke android:width="1dip" android:color="@color/colorPrimaryDark" />
</shape>
</item>
<style name="AppTheme.ButtonRounded">
<item name="android:gravity">center_horizontal</item>
<item name="android:background">@drawable/rounded_button_background</item>
<item name="android:padding">8dp</item>
<item name="android:button">@android:color/transparent</item>
</style>
@suciptoid
suciptoid / postgreSQL-openSUSE-13.2
Created April 25, 2017 15:34 — forked from di3goleite/postgreSQL-openSUSE-13.2
PostgreSQL on openSUSE 13.2
# install latest postgresql
sudo yum install postgresql-server postgresql-contrib
# start postgresql
sudo systemctl start postgresql
# change postgres user password
sudo passwd postgres
# create a database and create a new user
@suciptoid
suciptoid / index.md
Created November 10, 2017 07:34
Hide keyboard middleware React Native Navigation + Redux

Create Redux middleware to hide keyboard (if open) when navigating screen

// Hide keyboard middleware
const keyboardMiddleware = store => next => action => {

    // If action is navigate screen
    if(action.type == 'NAVIGATE_SCREEN'){
 Keyboard.dismiss()
image: registry.gitlab.com/showcheap/android-ci:react-native
before_script:
- sdkmanager "platforms;android-23"
- sdkmanager "build-tools;25.0.3"
- export GRADLE_USER_HOME=`pwd`/.gradle
- chmod +x ./android/gradlew
- npm install
cache:
@suciptoid
suciptoid / App_Http_VideoStream.php
Created January 19, 2018 09:21 — forked from vluzrmos/App_Http_VideoStream.php
Laravel VideoStream.
<?php
namespace App\Http;
/**
* Description of VideoStream
*
* @author Rana
* @link https://gist.github.com/vluzrmos/d5682ad426525196d069
*/
<?php
/**
* Description of VideoStream
*
* @author Rana
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial
*/
class VideoStream
{
private $path = "";