Skip to content

Instantly share code, notes, and snippets.

View Turbo87's full-sized avatar

Tobias Bieniek Turbo87

View GitHub Profile
@Turbo87
Turbo87 / gist:4641476
Created January 26, 2013 09:57
Interview with Santiago Berca about XCSoar

Hi Turbo, see my answers below:

why did you choose to use XCSoar?

This is my story: I wanted a software with a better support for AAT tasks. Javier Gaude (my teammate in the last championships) started to experiment with LK8000, and told me that the feature of the optimized turn points inside the area was great. So I tried it too. But I didn't like the user interface. In the mean time I found XCSoar, and that it had a similar feature for AAT tasks. Since I have some knowledge in programing I took a look to both codes (LK and XCS) and it seemed to me that LK was more difficult to understand (and debug). I really liked the coding style of XCSoar and I guessed that it would be easier to me to add a new feature if needed. So I tried it. It took me a while to get used to the user interface, but after some configuration it became my main navigation software and I convinced Javier to switch to it too.

>

@Turbo87
Turbo87 / gist:147153a7ece904ebb0e4
Created November 17, 2014 09:34
Diff ODT files

Diff ODT files

Install odt2txt

Linux: sudo apt-get install odt2txt

OS X: git clone https://github.com/dstosberg/odt2txt.git && cd odt2txt && make

Register a global diff helper

@Turbo87
Turbo87 / app.js
Created February 15, 2015 04:05
webpack + font-awesome test
require('font-awesome/css/font-awesome.css');
document.body.innerHTML = '<i class="fa fa-fw fa-question"></i>';
@Turbo87
Turbo87 / api.md
Created May 14, 2015 11:18
Skylines API

Skylines API

Overview

Schema

  • API is only available over HTTPS at https://api.skylines.aero/
  • HTTP will show 404 Not Found
  • All data is sent and received as JSON
  • Blank fields are included as null

Keybase proof

I hereby claim:

  • I am turbo87 on github.
  • I am tbieniek (https://keybase.io/tbieniek) on keybase.
  • I have a public key whose fingerprint is 288D B31C D6AA C3A3 6C13 1A46 7D9A EA5E 1D75 99D0

To claim this, I am signing this object:

import Ember from 'ember';
/**
* If the specified keyName is not already associated with a value, attempts to compute its value using
* the given value function and enters it into the object.
*
* @param obj The object to query (and modify)
* @param keyName The property key to query (and set)
* @param valueFunc The function that is called with the keyName if the keyName does not yet exist
* @returns {boolean} The current (existing or computed) value associated with the specified key
var http = require('http');
var httpProxy = require('http-proxy');
var request = require('supertest');
var proxied = http.createServer(function (req, res) {
console.log('proxied: request received');
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('okay');
});
it('route foo', function() {
return emberNew()
.then(() => emberGenerateDestroy(['route', 'foo'], (file) => {
expect(file('app/routes/foo.js'))
.to.contain('import Ember from \'ember\';')
.to.contain('export default Ember.Route.extend({\n});');
expect(file('app/templates/foo.hbs'))
.to.contain('{{outlet}}');
export default function transformer(file, api) {
const j = api.jscodeshift;
const {expression, statement, statements} = j.template;
function argsArray(p) {
return j.variableDeclaration('var', [
j.variableDeclarator(
j.identifier('args'),
p.node.argument.arguments[0]
)
ember-cli@2.4.3 C:\projects\ember-cli
├─┬ amd-name-resolver@0.0.5
│ └── ensure-posix-path@1.0.1
├── bower@1.7.9
├─┬ bower-config@1.3.1
│ ├── mout@1.0.0
│ ├─┬ optimist@0.6.1
│ │ └── wordwrap@0.0.3
│ ├─┬ osenv@0.1.3
│ │ └── os-homedir@1.0.1