Skip to content

Instantly share code, notes, and snippets.

View smurfy's full-sized avatar

Philipp Andreas smurfy

  • Munich, Germany
View GitHub Profile
@smurfy
smurfy / hunter_autotools_project.cmake
Last active April 11, 2023 20:20
Patched cmake file to get autotools working on windows. Against Hunter v0.23.300
# Copyright (c) 2015 Ruslan Baratov, Alexandre Pretyman
# All rights reserved.
#
# This function builds an autotools based project.
#
# It forwards to ExternalProject_Add the following parameters:
# URL, URL_HASH, DOWNLOAD_DIR, SOURCE_DIR and INSTALL_DIR
#
# Adds to the environment variables:
# PATH=<root-id>/bin
<?php
namespace MyBundle\Doctrine\DBAL;
use Doctrine\DBAL\Driver\PDOSqlite\Driver;
/**
* Our own sqlite driver class, to add more methods to the sqlite sql syntax
*/
class SqliteDriver extends Driver
@smurfy
smurfy / build-sfdroid-repos.sh
Last active September 7, 2016 06:10 — forked from mjtorn/build-sfdroid-repos.sh
Build sfdroid for the Fairphone2
#!/usr/bin/env bash
# vim: ts=4 sw=4 et ai
# Markus Törnqvist <mjt@nysv.org> 2016
# Licensed under the DWTFYW public license
set -eu
FP2_BLOBS=fp2-sibon-16.06.0-blobs.sh
@smurfy
smurfy / MechLoadout.xsd
Last active August 29, 2015 14:01
MWO GameFiles xsd
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="MwoLoadout" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="Loadout">
<xs:complexType>
<xs:sequence>
<xs:element name="Upgrades" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="Armor" minOccurs="1" maxOccurs="1">
@smurfy
smurfy / freq.json
Last active January 4, 2016 11:49
Huffman class with own freq tables and result encoded/decoded as arrays for easy binary access
{"-1": 721, "1000": 9, "1001": 239, "1002": 14, "1003": 20, "1004": 24, "1005": 4, "1006": 3, "1007": 7, "1008": 21, "1009": 17, "1010": 2, "1011": 16, "1012": 2, "1014": 3, "1018": 14, "1019": 8, "1020": 11, "1021": 9, "1023": 3, "1024": 8, "1025": 5, "1026": 5, "1027": 17, "1028": 28, "1029": 5, "1030": 4, "1031": 41, "1032": 8, "1037": 1, "1500": 17, "1501": 16, "1502": 35, "1503": 18, "1504": 49, "2000": 21, "2001": 4, "2005": 10, "2006": 12, "2007": 21, "2008": 20, "2010": 6, "2011": 4, "2012": 5, "2017": 10, "2027": 89, "2028": 73, "2029": 5, "2030": 9, "2031": 4, "3000": 398, "3001": 82, "3218": 1, "3219": 1, "3220": 1, "3221": 1, "3222": 1, "3223": 1, "3224": 1, "3225": 1, "3226": 1, "3227": 1, "3228": 4, "3229": 1, "3230": 1, "3231": 1, "3232": 1, "3233": 3, "3234": 3, "3235": 1, "3236": 1, "3237": 1, "3238": 8, "3239": 1, "3240": 1, "3241": 1, "3242": 1, "3243": 1, "3244": 1, "3245": 1, "3246": 7, "3247": 4, "3248": 3, "3249": 5, "3250": 8, "3251": 1, "3252": 4, "3253": 4, "3254": 4, "3255": 1, "325