func ok() {
}
func ok() {
}
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 |
// 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; |
The maven-protobuff project contains a lightweight maven plugin used to compile proto files.
#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"; |
Engineering topic: Less is more
I had a desktop wallpaper a while ago with a single quote, it read:
As a software developer, you are your own worst enemy. The sooner you realize that, the better off you'll be.
As developers, every line of code that we write increases the const of maintaining the project that the code is in. It doesn't matter how clean the code is, how well written it is, how much thought was put into it ahead of time or if it has been refactered: All code carries a debt that can only be paid in time.
The theme of this week's engineering essay: Use the least amount of code possible.
const unsigned int LED_BIT0 = 12; | |
const unsigned int LED_BIT1 = 11; | |
const unsigned int LED_BIT2 = 10; | |
const unsigned int SWITCH_BIT = 9; | |
void setup() { | |
pinMode(LED_BIT0, OUTPUT); | |
pinMode(LED_BIT1, OUTPUT); | |
pinMode(LED_BIT2, OUTPUT); | |
pinMode(SWITCH_BIT, INPUT); |
package com.socklabs; | |
import com.lmax.disruptor.*; | |
import com.lmax.disruptor.dsl.Disruptor; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
public class MultiThreaded { |