This is a dummy gist that kind of represents the data model that is being used in the KitchenOffice Webapp
This file contains 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 "Cube.h" | |
Cube::Cube() {} | |
Cube::~Cube() {} | |
void Cube::setSide(double s) { | |
side = s <= 0 ? 1 : s; | |
} | |
double Cube::getSide() { |
This file contains 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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <stdint.h> | |
#include <wiringPiSPI.h> | |
int main (void) { | |
int i ; | |
printf ("Raspberry Pi SPI 25LC010A program\n") ; |
This file contains 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
CHECK: The RFM70 library sends this data | |
1. Select Bank 0 | |
ATM: 5B [5C 07 0x07(0E 0x0E)5D ] | |
RPI: 5B [5C 07 0x07(0E 0x0E)5D ] - OK | |
? | |
ATM: 5B [5C 00 0x00(0E 0x0E)5D ] |
This file contains 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
#!/bin/bash | |
# | |
### BEGIN INIT INFO | |
# Provides: mysql-tmpfs | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Should-Start: $network $time | |
# Should-Stop: $network $time | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 |
This file contains 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
#!/bin/bash | |
DATADIR=/opt/mysql/server-5.6/data/ | |
echo -e "\n * Stopping mysql" | |
/etc/init.d/mysql stop | |
killall mysqld | |
killall -9 mysqld | |
echo "Done." |
This file contains 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
#!/usr/bin/env python | |
from multiprocessing import Pool, Queue | |
import os | |
import time | |
q = Queue() | |
def worker_main(): | |
print(os.getpid(),"working") |
This file contains 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
#!/bin/sh | |
# /etc/init.d/tomcat7 -- startup script for the Tomcat 6 servlet engine | |
# | |
# Written by Miquel van Smoorenburg <[email protected]>. | |
# Modified for Debian GNU/Linux by Ian Murdock <[email protected]>. | |
# Modified for Tomcat by Stefan Gybas <[email protected]>. | |
# Modified for Tomcat6 by Thierry Carrez <[email protected]>. | |
# Modified for Tomcat7 by Ernesto Hernandez-Novich <[email protected]>. | |
# Additional improvements by Jason Brittain <[email protected]>. | |
# |
This file contains 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 java.util.concurrent.CompletableFuture; | |
import org.neo4j.graphdb.GraphDatabaseService; | |
import org.neo4j.graphdb.Label; | |
import org.neo4j.graphdb.Node; | |
import org.neo4j.graphdb.Relationship; | |
import org.neo4j.graphdb.ResourceIterable; | |
import org.neo4j.graphdb.Transaction; | |
import org.neo4j.graphdb.event.KernelEventHandler; | |
import org.neo4j.graphdb.event.TransactionEventHandler; |
This file contains 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 static io.vertx.core.Vertx.vertx; | |
import io.vertx.core.AsyncResult; | |
import io.vertx.core.Handler; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.junit.Test; | |
public class AsyncTest { |
OlderNewer