Skip to content

Instantly share code, notes, and snippets.

View ar-android's full-sized avatar
:octocat:
NULL

Ahmad Rosid ar-android

:octocat:
NULL
View GitHub Profile
@ar-android
ar-android / IGameLogic.java
Created May 15, 2019 15:26
Blueprint game engine LWJGL
package engine;
public interface IGameLogic {
void init() throws Exception;
void input(Window window);
void render(Window window);
@ar-android
ar-android / Window.java
Created May 15, 2019 15:24
LWJGL Window Object
package engine;
import org.lwjgl.glfw.GLFWErrorCallback;
import org.lwjgl.glfw.GLFWVidMode;
import org.lwjgl.opengl.GL;
import static org.lwjgl.glfw.GLFW.*;
import static org.lwjgl.opengl.GL11.GL_TRUE;
import static org.lwjgl.opengl.GL11.glClearColor;
import static org.lwjgl.system.MemoryUtil.NULL;
@ar-android
ar-android / amazon-linux-ami.md
Last active March 21, 2019 18:38
Amazon linux AMI for laravel server on Amazon EC2

Amazon AMI Linux for Laravel

Install git :

sudo yum installl git

Install nginx :

@ar-android
ar-android / alat-tempur-YouTube.md
Last active December 9, 2019 06:55
Alat tempur YouTube

Alat Perang Pemain Youtube

Kumpulan Alat Perang untuk para pemain Youtube gratis. Mari berusaha untuk mengurangi penggunaan produk bajakan semaksimal mungkin!

Desktop Tools

Kumpulan alat & bahan yang dieksekusi lewat desktop.

  1. GIMP2 - https://gimp.org Untuk editing gambar, cover channel, foto profil, thumbnail & background cover (pengganti photoshop)

  2. Inkspace - https://inkscape.org

package com.ahmadrosid.image_slider_android
import android.content.Context
import android.support.v4.view.ViewPager
import android.util.AttributeSet
import android.view.animation.DecelerateInterpolator
import android.widget.Scroller
class SliderView @JvmOverloads constructor(
context: Context, attrs: AttributeSet? = null
<?php
require 'vendor/autoload.php';
require 'helpers.php';
Flight::route('/', function(){
if(isset($_GET['nerd'])){
echo home_url() . random_post();
die;
}
@ar-android
ar-android / image.html
Created December 11, 2018 12:39
CSS Image center crop
<img src="//image-source" width="100%" height="200" style="object-fit: cover;" >
private void dispatchTakePictureIntent() {
Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
if (takePictureIntent.resolveActivity(getPackageManager()) != null) {
File photoFile = null;
try {
photoFile = createImageFile();
} catch (IOException ex) {
}
if (photoFile != null) {
@ar-android
ar-android / ForceUpdate.java
Created November 4, 2018 19:59
Force update app using remote config
private void startingUp() {
mFirebaseRemoteConfig = FirebaseRemoteConfig.getInstance();
FirebaseRemoteConfigSettings configSettings = new FirebaseRemoteConfigSettings.Builder()
.setDeveloperModeEnabled(BuildConfig.DEBUG)
.build();
mFirebaseRemoteConfig.setConfigSettings(configSettings);
long cacheExpiration = 3600;