Skip to content

Instantly share code, notes, and snippets.

@fkrauthan
fkrauthan / TLSSocketFactory.java
Last active January 7, 2023 04:09
Custom SSLSocketFactory Implementation to enable tls 1.1 and tls 1.2 for android 4.1 (16+)
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 / Game.js
Created June 26, 2017 20:38
Simple quick and dirty hot reloading for phaser 2 games with webpack
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 December 4, 2015 19:43
Why don't we just do this?
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 / gist:3265904
Created August 5, 2012 16:55
Symfony2 Bundle structure