Skip to content

Instantly share code, notes, and snippets.

View ienugr's full-sized avatar

Ismandra Eka Nugraha ienugr

View GitHub Profile
@ienugr
ienugr / README.md
Last active July 11, 2019 11:36
Script to get JSON data from local file and show country regions by specifying the country id

Country Info

Prerequisites

  • Node JS

How to run

node index.js
@ienugr
ienugr / LeftRotation.java
Created October 25, 2017 13:51
A left rotation operation on an array of size n shifts each of the array's elements 1 unit to the left.
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static void LeftShift(int arr[], int n) {
int temp = arr[0];
for (int i = 0; i < n-1; i++) {
@ienugr
ienugr / codility-demo-test.js
Created October 18, 2017 11:15
Codility Demo Test
// Task description
// This is a demo task.
// Write a function:
// function solution(A);
// that, given an array A of N integers, returns the smallest positive integer (greater than 0) that does not occur in A.
// For example, given A = [1, 3, 6, 4, 1, 2], the function should return 5.

#Steps to install latest Laravel, LEMP on AWS Ubuntu 14.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.

Install PHP 7 on Ubuntu

Run the following commands in sequence.

sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip

Raleight Table Assembly Instruction

This is the assembly instruction of Raleigh Table.

Raleigh Table Image

Parts

  1. Table Top - 1x
  2. Magazine Shelf - 1x