Skip to content

Instantly share code, notes, and snippets.

View icholy's full-sized avatar
💥
breaking things

Ilia Choly icholy

💥
breaking things
View GitHub Profile
package main
import (
"fmt"
"sync"
"time"
)
// Waiter allows multiple clients to wait until a certain sequence number has been reached
type Waiter struct {
@icholy
icholy / build.py
Last active August 15, 2018 18:29
#!/usr/bin/env python
import errno
import os
import subprocess
import sys
import shutil
import glob
import tarfile
import os.path
#!/bin/bash
# This script takes a remote repository and merges it into
# the current one as a subdirectory
set -e
if [ -z "$1" ]
then
echo "Usage:"
#!/bin/bash
# This script takes a remote repository and merges it into
# the current one as a subdirectory
if [ -z "$1" ]
then
echo "Usage:"
echo " ./merge_repo.sh <repository> [name]"
exit
type Checker struct {
err error
}
func (c *Checker) Check(cond bool, err error) {
if !cond && c.err == nil {
c.err = err
}
}
// Type definitions for GeoJSON Format Specification
// Project: http://geojson.org/
// Definitions by: Jacob Bruun <https://github.com/cobster/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export as namespace GeoJSON;
/**
* http://geojson.org/geojson-spec.html#geojson-objects
*/

build the top level project

git clone https://github.com/pentaho/pentaho-kettle.git
cd pentaho-kettle
git checkout 8.0.0.4
mvn clean install -DskipTests

We need the ui XUL files from the final assembly

const charset = ['a', 'b', 'c'];
function parse(key: string): number[] {
return key.split('').map(c => charset.indexOf(c));
}
function format(key: number[]): string {
return key.map(i => charset[i]).join('');
}
let ref = {
foo: 123,
bar: "test"
};
let obj = {
foo: 123,
bar: "what"
}
package main
import (
"bufio"
"fmt"
"io"
"log"
"os/exec"
)