Skip to content

Instantly share code, notes, and snippets.

@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 May 23, 2022
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