Skip to content

Instantly share code, notes, and snippets.

View groundwater's full-sized avatar
:electron:
Performing Alchemy

Groundwater groundwater

:electron:
Performing Alchemy
View GitHub Profile

BIGVER

The BIGVER spec is a semver.io compatible versioning scheme

Rules

  1. all new versions must increment the major version always
using System;
using System.Windows.Forms;
namespace WindowsFormsApp1
{
static class Program
{
[STAThread]
static void Main()
{
@groundwater
groundwater / asynchbase.scala
Created April 20, 2012 17:47
Demo Adapting asynchbase to Scala
package ca.underflow.hbase
import org.hbase.async._
import com.stumbleupon.async._
object Demo extends App {
// This let's us pass inline functions to the deferred
// object returned by most asynchbase methods
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Current TS File",
"type": "node",
"request": "launch",
@groundwater
groundwater / README.md
Created April 29, 2012 04:29
Fetch Content from Crunchbase in Google Spreadsheets

Instructions

  1. Create a script in Google Spreadsheets and paste the code.
  2. Create a trigger to run fetch whenever the document is edited
  3. Go to the spreadsheet, type a company name in the A column and hit enter

The script should take the name, fetch data from crunchbase and insert a row with the requested data.

@groundwater
groundwater / bibtex.png
Created December 27, 2017 18:14 — forked from max-mapper/bibtex.png
How to make a scientific looking PDF from markdown (with bibliography)
bibtex.png
$ brew install pdfsandwich
$ pdfsandwich FILE
@groundwater
groundwater / Application.scala
Created August 24, 2012 20:46
Action that parses protocol buffers
object Put extends Controller {
def index = DecodeProtobuf(classOf[MyProtobuf]) { stack :MyProtobuf =>
Action {
// do something with stack
}
}
}
@groundwater
groundwater / dependency-injection.cpp
Created July 26, 2016 06:45
c++ dependency injection via templates
#import <iostream>
// A simple container class for holding results
class Item {
using str = std::string;
private:
str _item;
public:
Item(str k): _item {k} {}
const str value() const {