Skip to content

Instantly share code, notes, and snippets.

Florian Krauthan fkrauthan

Block or report user

Report or block fkrauthan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fkrauthan
fkrauthan / Game.js
Created Jun 26, 2017
Simple quick and dirty hot reloading for phaser 2 games with webpack
View Game.js
import "pixi";
import Phaser from "phaser";
import hotReloadPatcher from "./utils/hotReloadPatcher";
import hotReloadState from "./utils/hotReloadState";
import BootState from "./states/Boot";
import PreloadState from "./states/Preload";
import GameState from "./states/Game";
@fkrauthan
fkrauthan / index.js
Created Dec 4, 2015
Why don't we just do this?
View index.js
const deepEqual = require('deep-equal');
// Constants
const UPDATE_PATH = "@@router/UPDATE_PATH";
const SELECT_STATE = state => state.routing;
// Action creator
function pushPath(path, state, { avoidRouterUpdate = false } = {}) {
@fkrauthan
fkrauthan / TLSSocketFactory.java
Last active Oct 31, 2019
Custom SSLSocketFactory Implementation to enable tls 1.1 and tls 1.2 for android 4.1 (16+)
View TLSSocketFactory.java
package net.cogindo.ssl;
import java.io.IOException;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import javax.net.ssl.SSLContext;
@fkrauthan
fkrauthan / gist:3265904
Created Aug 5, 2012
Symfony2 Bundle structure
You can’t perform that action at this time.