Skip to content

Instantly share code, notes, and snippets.

View halfdan's full-sized avatar
🇩🇪

Fabian Becker halfdan

🇩🇪
View GitHub Profile
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
@halfdan
halfdan / controllers.application.js
Created August 17, 2015 17:48
Ember Computed Test
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
someValue: Ember.computed('appName', function () {
console.log('Computing someValue');
return this.get('appName') + " is working";
}),
@halfdan
halfdan / gist:5895df3b461270ba8906
Created July 7, 2015 10:52
LiveCodingTV Stats
// ==UserScript==
// @name LiveCoding Stats
// @namespace http://your.homepage/
// @version 0.1
// @description Shows your channel stats (live viewers, total viewers) in the chat window
// @author Fabian Becker <[email protected]>
// @match https://www.livecoding.tv/chat/*
// @grant none
// ==/UserScript==
// ==UserScript==
// @name Skill Strength Viewer
// @namespace http://blog.fabianbecker.eu/
// @version 0.1
// @description Shows individual skill strength
// @author Fabian Becker
// @match https://www.duolingo.com/*
// @grant none
// ==/UserScript==
@halfdan
halfdan / goal-setter.user.js
Last active August 29, 2015 14:13
Duolingo Userscript for setting custom daily XP goals
// ==UserScript==
// @name Custom Goal Setter
// @namespace http://duolingo.com/skelkingur
// @version 0.1
// @description Adds a new field to add a custom daily goal.
// @author Fabian Becker <[email protected]>
// @match https://www.duolingo.com/settings/*
// @grant none
// ==/UserScript==
@halfdan
halfdan / gist:be037a9c37c50e3924a9
Created January 13, 2015 15:24
Duolingo Google TTS
// ==UserScript==
// @name LingoGoogleTTS
// @version 0.1
// @description Technical demo, changed by TheLagom!
// @match https://www.duolingo.com/*
// ==/UserScript==
(function($) {
$ git log --no-merges 0.5.0..master|grep Date
Date: Sat Sep 20 22:11:30 2014 +0100
Date: Sat Sep 20 19:14:16 2014 +0100
Date: Mon Sep 22 17:42:56 2014 -0600
Date: Mon Sep 1 19:46:37 2014 +0000
Date: Mon Sep 22 11:30:00 2014 -0400
Date: Sun Sep 21 20:35:33 2014 +0100
Date: Sun Sep 21 18:56:30 2014 +0000
Date: Mon Sep 22 01:17:56 2014 +0200
Date: Thu Sep 18 23:42:07 2014 +0000
[
{
"commitCount": 32,
"name": "halfdan",
"githubUrl": "https:\/\/github.com\/halfdan",
"avatarUrl": "https:\/\/avatars.githubusercontent.com\/u\/176576?v=2"
},
{
"commitCount": 30,
"name": "PaulAdamDavis",
defmodule HealthComponent do
use GenEvent
### Public API
def get_hp(entity) do
:gen_event.call(entity, HealthComponent, :get_hp)
end
def alive?(entity) do
:gen_event.call(entity, HealthComponent, :alive?)
Running "concat:dev" (concat) task
File core/built/scripts/vendor-dev.js created.
Running "copy:dev" (copy) task
Copied 2 files
Running "sass:compress" (sass) task
File core/client/docs/dist/css/ghost.min.css created.
File core/client/docs/dist/css/ghost.min.css.map created.
File core/client/assets/css/ghost.min.css created.