Skip to content

Instantly share code, notes, and snippets.

View chringel21's full-sized avatar

Christian Engel chringel21

View GitHub Profile
@wboykinm
wboykinm / getjson.php
Created September 27, 2012 08:51
MySQL to geojson parser
<?php
header('Content-type: text/plain');
$username = "[user]";
$password = "[password]";
$hostname = "localhost";
$database = "[database]";
// Opens a connection to a mySQL server
$connection=mysql_connect ($hostname, $username, $password);
@maxivak
maxivak / 00. tutorial.md
Last active April 12, 2024 05:42
Importing/Indexing database (MySQL or SQL Server) in Solr using Data Import Handler
@walihassanjafferi
walihassanjafferi / AajxSolrJQueryDataTables.php
Created February 19, 2016 18:22
Using Ajax Solr with JQuery Datatables
<div id="bkt_db_tables">
<h1>Games</h1>
<table id="example" class="display" width="100%">
<thead>
<tr>
<th>Game_ID</th>
<th>Home_Team</th>
</tr>
@zekitow
zekitow / 00. tutorial.md
Created March 1, 2016 23:45 — forked from maxivak/00. tutorial.md
Importing/Indexing database (MySQL or SQL Server) in Solr using Data Import Handler
@jherax
jherax / filterArray.js
Last active May 6, 2024 09:35
Filters an array of objects with multiple match-criteria.
/**
* Filters an array of objects using custom predicates.
*
* @param {Array} array: the array to filter
* @param {Object} filters: an object with the filter criteria
* @return {Array}
*/
function filterArray(array, filters) {
const filterKeys = Object.keys(filters);
return array.filter(item => {
@bartmika
bartmika / setup_python_stuff_for_macos.md
Last active November 17, 2016 10:16
A HOWTO guide for setting up Python 3.x+ on MacOS.

Setup brew, Python 3, Pip, VirtualEnv, Postgres, gettext, memcached, SSH in MacOS Sierra

By: Bartlomiej Mika at https://mikasoftware.com Date: Oct, 13th, 2016

brew

  1. Install Xcode from the Apple App Store.

  2. Install the Command Line Tools of Xcode. Open a Terminal and type:

$ xcode-select --install
@alexbonhomme
alexbonhomme / macosx-install-php-oracle-oci8-pdo_oci.md
Last active March 27, 2024 08:49 — forked from krisanalfa/macosx-install-php-oracle-oci8-pdo_oci.md
Install OCI8 and / or PDO_OCI on OSX via Brew
<!DOCTYPE qgis_style>
<qgis_style version="2">
<symbols>
<symbol name="qartoon" force_rhr="0" clip_to_extent="1" alpha="1" type="fill">
<layer class="SimpleFill" enabled="1" locked="0" pass="0">
<prop v="3x:0,0,0,0,0,0" k="border_width_map_unit_scale"/>
<prop v="0,0,0,255" k="color"/>
<prop v="round" k="joinstyle"/>
<prop v="1,1" k="offset"/>
<prop v="3x:0,0,0,0,0,0" k="offset_map_unit_scale"/>