Skip to content

Instantly share code, notes, and snippets.

View Turbo87's full-sized avatar

Tobias Bieniek Turbo87

View GitHub Profile

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:

@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.

>

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
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
import Ember from 'ember';
export default Ember.Component.extend({
init() {
this._super(...arguments);
console.log(this.get('item.value'));
},
});
@Turbo87
Turbo87 / controllers.index.js
Last active September 23, 2016 13:54
glimmer-issue
import Ember from 'ember';
export default Ember.Controller.extend({
myService: Ember.inject.service(),
init() {
this._super(...arguments);
this.set('controllerArray', ['xxx']);
},