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
View app.yaml
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /.*
script: main.app
@mhaligowski
mhaligowski / pl.json
Last active Apr 2, 2019
Poland TopoJSON
View pl.json
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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 / 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 / all.json
Last active Oct 3, 2017
Poland GeoJSON
View all.json
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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;
}
@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 / 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 / gist:7529489
Created Nov 18, 2013
The worst piece of code ever seen
View gist:7529489
// funkcja nadpisana na potrzeby testów <- Polish for: Written for the sake of tests
/**
* @deprecated Use {@link #getProperty(PropertyName)}.
*/
@Deprecated
@Override
protected String getProperty(String propertyName) {
return super.getProperty(propertyName);
}