Skip to content

Instantly share code, notes, and snippets.

View ohcibi's full-sized avatar
🕴️
Elevated

Tobias Witt ohcibi

🕴️
Elevated
View GitHub Profile
import Ember from 'ember';
export default Ember.Controller.extend({
actions: {
toggle() {
this.set("sortDir", this.get("sortDir") === "asc" ? "desc" : "asc");
}
},
appName:'Ember Twiddle',
model: ["foo", "bar", "baz"],
1. Sort and evaluate all issues and PRs
1. Roadmap/Future of the project in general
autoload -U add-zsh-hook
load-nvmrc() {
if [[ -f .nvmrc && -r .nvmrc ]]; then
nvm use
fi
}
add-zsh-hook chpwd load-nvmrc
@ohcibi
ohcibi / test.js
Last active November 25, 2019 09:24
// ...
models: {
a: Model.extend({
bs: hasMany()
}),
b: Model.extend({
cs: hasMany()
}),
c: Model
},
https://gist.github.com/ohcibi/08c47527b111cf51dad42fb5125d08c5
@ohcibi
ohcibi / client.py
Last active July 14, 2018 09:13 — forked from caspian311/client.py
Simple client-service dbus example in python.
#!/usr/bin/env python
import dbus
bus = dbus.SystemBus()
service = bus.get_object('com.example.service', "/com/example/service")
message = service.get_dbus_method('get_message', 'com.example.service.Message')
quit = service.get_dbus_method('quit', 'com.example.service.Quit')
print("Mesage from service: " + message())
#
# A theme inspired by sorin and nicoulaj and my old theme
#
# Authors:
# Tobias Witt <tobias.witt@hhu.de>
#
# Features:
# - Lambda Prompt Character (Half-Life 3 confirmed!!!)
# - Two lines.
# - VCS information in both prompts
import Ember from 'ember';
export default Ember.Controller.extend({
actions: {
reset() {
this.set('value', this.get('value'));
},
preset() {
this.set('value', 'foo');
}
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});