Skip to content

Instantly share code, notes, and snippets.

View ngerakines's full-sized avatar
🏠
Working from home

Nick Gerakines ngerakines

🏠
Working from home
View GitHub Profile
#!/usr/bin/python2
import sys
import os
from os.path import join
import tarfile
import shutil
import popen2
from optparse import OptionParser
import logging
public interface CalcService extends RespondingService {
void add(final CallbackMessageController<CalcProto.Results> messageController, final CalcProto.Add add);
}
@ngerakines
ngerakines / gist:9002823
Created February 14, 2014 15:17
update-git.sh
#!/bin/sh
parent=${PWD##*/}
if [ -f 'repos' ]
then
echo "`repos` file exists."
for i in `cat repos`; do
if [ -d $i ]
then
ngerakines@eirena:~/development/ngerakines/menu$ ./menu create --artifact-id=menu-webapp --artifact-version=1.0.0 --artifact-location=file:///var/artifacts/com/socklabs/menu-webapp/menu-webapp-1.0.0.zip --cookbook=https://github.com/ngerakines/menu-webapp-cookbook
ngerakines@eirena:~/development/ngerakines/menu$ ls
1385576835.menu help.go LICENSE localfs.go menu menu.go model.go README.md
ngerakines@eirena:~/development/ngerakines/menu$ ./menu show file:////home/ngerakines/development/ngerakines/menu/1385576835.menu
path: file:////home/ngerakines/development/ngerakines/menu/1385576835.menu type: 1
time: 1385576835
artifacts:
menu-webapp 1.0.0 file:///var/artifacts/com/socklabs/menu-webapp/menu-webapp-1.0.0.zip
cookbooks:
https://github.com/ngerakines/menu-webapp-cookbook
11615-MBP15:menu nick.gerakines$ ./menu
Usage: menu <command> <arguments and options>
Commands:
create
show
artifacts
cookbooks
list
11615-MBP15:menu nick.gerakines$ ./menu create
func ok() {
}
func ok() {
}
#!/usr/bin/ruby
# WebExcursions, a script for gathering new Pinboard links with a certain tag
# and generating Markdown/Jekyll posts when enough are collected.
# Brett Terpstra 2013
#
# -f to force writing out current bookmarks to file regardless of count
%w[fileutils set net/https zlib rexml/document time base64 uri cgi stringio].each do |filename|
require filename
end
@ngerakines
ngerakines / main.cpp
Created January 16, 2013 18:07
tdd workshop stuff
// This is the test executable: where the tests will be declared and run.
#include "test.h"
#include <iostream>
#include <string>
#include <map>
#include <time.h>
using namespace std;

About

The maven-protobuff project contains a lightweight maven plugin used to compile proto files.

Features

  • Will automatically extract .proto files out of dependency jars and put them into “//target/protos”.
  • Will compile your module/project proto files into the “//src/main/java” directory for checkin.
  • Works with both standard and multi-module projects.
#include <Time.h>
int RFIDResetPin = 13;
//Register your RFID tags here
char tag1[13] = "84003378CA05";
char tag2[13] = "840033725D98";
char cat1name[5] = "Toby";
char cat2name[8] = "Biscuit";