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
int redPin = 0; | |
int greenPin = 1; | |
int resetPin = 4; | |
int selectPin = 5; | |
int brightPin = 3; | |
int clockPin = 2; | |
int offset = 0; | |
int bufferCol = 0; |
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 processing.serial.*; | |
// 2D Array of objects | |
DrawCell[][] grid; | |
Cell[] buffer; | |
Serial myPort; | |
// Number of columns and rows in the grid | |
int cols = 16; |
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
org.hamcrest.core | |
org.hamcrest.MatcherAssert | |
org.hamcrest.Matchers | |
org.mockito.Mockito |
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
#------------------------------------------------------------------------------- | |
# Copyright (c) 2015, Thomas Mohaupt <Thomas.Mohaupt@gmail.com> | |
# All rights reserved. | |
# | |
# This is a BSD 2-Clause license, | |
# see http://opensource.org/licenses/bsd-license.php | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# |
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 | |
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | |
SDIR=${DIR}/src | |
DRIVER_SRC=`ls ${DIR}/hybrid*.tar.gz 2> /dev/null` | |
CONTAINER="thomo/centos7-dev:latest" | |
MYUID=`id -u` | |
MYGID=`id -g` |
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
{ | |
"a" : "first character", | |
"b" : "second character" | |
} |
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
Example data like: https://gist.github.com/ThoMo/fb3cb24dc8d14a53af97 | |
<table> | |
<thead><tr><th>Term</th><th>Description</th></tr></thead> | |
<tbody> | |
{% assign gs = site.data.glossary | sort:[0] %} | |
{% for kv in gs %} | |
<tr> <td>{{ kv[0] }} </td><td> {{ kv[1] }} </td></tr> | |
{% endfor %} | |
</tbody> |
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
FROM centos:7 | |
MAINTAINER Thomas Mohaupt "Thomas.Mohaupt@gmail.com" | |
ENV UPDATED_AT=2015-09-26 | |
RUN echo "deltarpm=0" >> /etc/yum.conf | |
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 | |
RUN yum -y install epel-release |
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
vagrant init puppetlabs/centos-7.0-64-nocm; vagrant up --provider virtualbox |
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
--- | |
- name: Bootstraping new servers | |
hosts: newhosts | |
remote_user: root |