Skip to content

Instantly share code, notes, and snippets.

Avatar

Mateusz Haligowski mhaligowski

View GitHub Profile
@mhaligowski
mhaligowski / README
Created May 30, 2021
This is what happens with help when using yargs with `commandDir`.
View README
Example project
@mhaligowski
mhaligowski / packer.json
Created Jul 6, 2018
Prepare VirtualBox VM (+Vagrant) with WordPress preinstalled
View packer.json
{
"_comment": "Build with `packer build ubuntu.json`",
"builders": [
{
"boot_command": [
"{{ user `boot_command_prefix` }}",
"/install/vmlinuz noapic ",
"initrd=/install/initrd.gz ",
"file=/floppy/{{ user `preseed` }} ",
"debian-installer={{ user `locale` }} auto locale={{ user `locale` }} kbd-chooser/method=us ",
@mhaligowski
mhaligowski / Monster.java
Created Jun 2, 2017
AssertJ collections example
View Monster.java
public class Monster {
private String id;
private String name;
public Monster(final String id, final String name) {
this.id = id;
this.name = name;
}
View app.yaml
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /.*
script: main.app
@mhaligowski
mhaligowski / function.js
Created May 16, 2017
Handling with both Google Cloud Functions and Express
View function.js
exports.hello = require('./hello');
@mhaligowski
mhaligowski / ScopesModule.java
Created Mar 12, 2017
Super simple Scope in Guice
View ScopesModule.java
import com.google.inject.*;
import javax.inject.Inject;
import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@ScopeAnnotation
@Retention(RUNTIME)
@interface NameScoped {
@mhaligowski
mhaligowski / Gemfile
Last active Aug 29, 2015
rakefile for asciidoctor
View Gemfile
source 'https://rubygems.org'
gem 'asciidoctor'
gem 'tilt'
gem 'haml'
gem 'rake'
@mhaligowski
mhaligowski / pl.json
Last active Apr 2, 2019
Poland TopoJSON
View pl.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mhaligowski
mhaligowski / index.html
Last active Dec 28, 2015
Poland unemployment rate September 2013
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.counties {
fill: none;
}
.states {
fill: none;
@mhaligowski
mhaligowski / all.json
Last active Oct 3, 2017
Poland GeoJSON
View all.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.