This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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 ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <GSM.h> | |
| // the gsm library instances | |
| GSM gsmAccess ; | |
| GSM_SMS sms ; | |
| void setup() { | |
| // initialize serial communications |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package introalgo.chap2; | |
| import java.util.Random; | |
| public class InsertSort1 { | |
| public static void main( String[] args ) { | |
| Random random = new Random(); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.careercup.linkedlist; | |
| public class CircularLinkedList { | |
| public static class Node<AnyType> { | |
| private AnyType data; | |
| private Node<AnyType> next; | |
| public Node( AnyType data ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.careercup.linkedlist; | |
| public class CircularDoubleLinkedList { | |
| public static class Node<AnyType> { | |
| private AnyType data; | |
| private Node<AnyType> next; | |
| private Node<AnyType> prev; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.careercup.linkedlist; | |
| public class DoubleLinkedList<AnyType> { | |
| private Node<AnyType> nodeFirst; | |
| private Node<AnyType> nodeLast; | |
| private Node<AnyType> nodeIndex; | |
| public DoubleLinkedList() { | |
| nodeFirst = null; |