Skip to content

Instantly share code, notes, and snippets.

View geoah's full-sized avatar
🦄
Arghxd

George Antoniadis geoah

🦄
Arghxd
View GitHub Profile
for the, devs of 'devrant'
if 'markdown' isnt 'so damn hard'
do alert 'please add markdown'
@geoah
geoah / 1-0-Preface.md
Last active March 2, 2016 17:42
[RFC]

Preface

TL;DR

This is a rant about how a decentralized network for storing structured data might look like.
The goal is to allow third party developers to build applications and services that use it as a data-store and allow users to switch between any application or service without loosing their data.

<?php
header("content-type: application/json; charset=UTF-8");
$aFilteredPlaces = array();
foreach($aSearchResults as $iResNum => $aPointDetails)
{
$aPlace = array();
$aPlace['lat'] = (float) $aPointDetails['lat'];
$aPlace['lng'] = (float) $aPointDetails['lon'];
var module = angular.module( 'my.resource', [ 'ngResource' ] );
module.factory( 'Resource', [ '$resource', function( $resource ) {
return function( url, params, methods ) {
var defaults = {
update: { method: 'put', isArray: false },
create: { method: 'post' }
};
methods = angular.extend( defaults, methods );
@geoah
geoah / ubuntu14.04-otp-0.19.0-installation.sh
Last active August 29, 2015 14:22
Ubuntu 14.04 OpenTripPlanner (OTP) 0.19.0 SNAPSHOT Installation
# Ubuntu 14.04 OpenTripPlanner (OTP) 0.19.0 SNAPSHOT Installation
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install -y oracle-java8-installer wget git-core
rm -rf /var/lib/apt/lists/*
mkdir -p /var/otp/graphs
wget -q -O /var/otp/otp.jar http://dev.opentripplanner.org/jars/otp-0.19.0-SNAPSHOT.jar
java -Xmx6G -Xverify:none -jar /var/otp/otp.jar --help
THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
Do Not Translate or Localize
This file provides information regarding components that are being relicensed to you by Microsoft under Microsoftís Visual Studio Code ìPreviewî software licensing terms. Microsoft reserves all rights not expressly granted herein, whether by implication, estoppel or otherwise.
Microsoft is offering you a license to use the following components subject to the Microsoft Visual Studio Code ìPreviewî software license terms, except that components licensed under open source licenses requiring that such component remain under the original license are being made available to you by Microsoft under the original licensing terms. Please refer to the accompanying Credits_41.0.2272.76.html file for additional notices regarding the Chromium open source project.
1. Async-each version 0.1.6 (https://github.com/paulmillr/async-each)
2. atom-electron version 0.22.3 (https://github.com/atom/electron)

Keybase proof

I hereby claim:

  • I am geoah on github.
  • I am geoah (https://keybase.io/geoah) on keybase.
  • I have a public key whose fingerprint is 5B6A E881 FCB3 7CD3 8865 4D2C 8D26 68FE E602 0367

To claim this, I am signing this object:

@geoah
geoah / bullshit.js
Last active August 29, 2015 14:16
Bullshit-ify bookmarklet
javascript:(function(){var cssCode = document.createElement('style');cssCode.innerHTML='@font-face{font-family:SansBullshitSans;src:url(https://dl.dropboxusercontent.com/u/200262/SansBullshitSans.ttf);font-weight:normal}*{font-family:SansBullshitSans !important;font-variant-ligatures:common-ligatures;-webkit-font-feature-settings:"liga" 1, "dlig" 1;-moz-font-feature-settings:"liga" 1, "dlig" 1;-ms-font-feature-settings:"liga" 1, "dlig" 1;font-feature-settings:"liga" 1, "dlig" 1;}';document.body.appendChild(cssCode);}());
package main
import (
"database/sql"
"fmt"
"log"
"github.com/coopernurse/gorp"
_ "github.com/ziutek/mymysql/autorc"
_ "github.com/ziutek/mymysql/godrv"
package main
import (
"crypto/sha256"
"encoding/hex"
"encoding/json"
"fmt"
"github.com/docker/libtrust"
)