Skip to content

Instantly share code, notes, and snippets.

@mkjsix
mkjsix / git-all.sh
Last active March 28, 2018 16:01
Apply a git command recursively in all folders
#!/bin/bash
find . -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && git $1" \;
@mkjsix
mkjsix / JSONizable.java
Created October 20, 2016 13:09
JSONizable is a Java interface which uses Gson to serialize Java objects to JSON and viceversa
package com.softinstigate.util;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
/**
*
* @author mturatti
*/
public interface JSONizable {
@mkjsix
mkjsix / 0_reuse_code.js
Created December 28, 2015 10:46
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@mkjsix
mkjsix / pom.xml
Created September 3, 2015 14:38
POM file for Sparkjava using the Maven Shade plugin
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.softinstigate</groupId>
<artifactId>meteo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>meteo</name>
<properties>