Skip to content

Instantly share code, notes, and snippets.

View biskandar's full-sized avatar
💭
Spring Boot + Kubernetes = DevOps

Benny biskandar

💭
Spring Boot + Kubernetes = DevOps
View GitHub Profile
#include <LiquidCrystal.h>
const int lightPin = A0 ; // Light Sensor Pin
const int tempPin = A1 ; // Temperature Sensor Pin
const int lcdRSPin = 13 ; // Select Pin
const int lcdENPin = 12 ; // Enable Pin
const int lcdD4Pin = 11 ; // Databus line 4
const int lcdD5Pin = 8 ; // Databus line 5
const int lcdD6Pin = 7 ; // Databus line 6
@biskandar
biskandar / 2013101701.c
Created October 16, 2013 16:04
Arduino Uno + GSM Shield + StarHub Sim Card : Intro
// import the GSM Library
#include <GSM.h>
// define PIN Number
#define PINNUMBER ""
// initialize the library instance
GSM gsmAccess( true ) ; // true with debug enabled
GSMScanner scannerNetworks ;
GSMModem modemTest ;
@biskandar
biskandar / 2013101801.c
Created October 18, 2013 14:04
Arduino Uno + GSM Shield + StarHub Sim Card : Send / Recv SMS
#include <GSM.h>
// the gsm library instances
GSM gsmAccess ;
GSM_SMS sms ;
void setup() {
// initialize serial communications
<configuration>
<simple-gateway>
<drivers>
<driver id="driverHttpSender">
<properties>
<property name="remoteUri" value="http://remoteuri/path"/>
<property name="scriptFile" value="./js/driverHttpSender.js"/>
</properties>
</driver>
<driver id="driverHttpListener">
@biskandar
biskandar / InsertSort1.java
Created October 18, 2016 15:18
Java: Insertion Sort 1
package introalgo.chap2;
import java.util.Random;
public class InsertSort1 {
public static void main( String[] args ) {
Random random = new Random();
@biskandar
biskandar / MergeSort1.java
Created October 18, 2016 18:24
Java: Merge Sort 1
package introalgo.chap2;
import java.util.Random;
public class MergeSort1 {
static int[] init( int max ) {
int[] data = new int[max];
Random random = new Random();
for (int i = 0; i < data.length; i++) {
@biskandar
biskandar / MergeSort2.java
Created October 18, 2016 20:56
Java: Merge Sort 2
package introalgo.chap2;
import java.util.Random;
public class MergeSort2 {
static int[] init( int max ) {
int[] data = new int[max];
Random random = new Random();
for (int i = 0; i < data.length; i++) {
@biskandar
biskandar / CircularLinkedList.java
Created October 20, 2016 22:30
Java: Circular Linked List
package com.careercup.linkedlist;
public class CircularLinkedList {
public static class Node<AnyType> {
private AnyType data;
private Node<AnyType> next;
public Node( AnyType data ) {
@biskandar
biskandar / CircularDoubleLinkedList.java
Created October 20, 2016 23:28
Java: Circular Double Linked List
package com.careercup.linkedlist;
public class CircularDoubleLinkedList {
public static class Node<AnyType> {
private AnyType data;
private Node<AnyType> next;
private Node<AnyType> prev;
@biskandar
biskandar / DoubleLinkedList.java
Created October 21, 2016 00:05
Java: Double Linked List
package com.careercup.linkedlist;
public class DoubleLinkedList<AnyType> {
private Node<AnyType> nodeFirst;
private Node<AnyType> nodeLast;
private Node<AnyType> nodeIndex;
public DoubleLinkedList() {
nodeFirst = null;