Skip to content

Instantly share code, notes, and snippets.

Avatar
🕴️
Elevated

Tobias Witt ohcibi

🕴️
Elevated
View GitHub Profile
View test.js
// ...
models: {
a: Model.extend({
bs: hasMany()
}),
b: Model.extend({
cs: hasMany()
}),
c: Model
},
View gist:3503509e465d60c7ad7d2d9daf44a73b
https://gist.github.com/ohcibi/08c47527b111cf51dad42fb5125d08c5
@ohcibi
ohcibi / client.py
Last active Jul 14, 2018 — forked from caspian311/client.py
Simple client-service dbus example in python.
View client.py
#!/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())
View prompt_ohcibi_setup
#
# 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
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
actions: {
reset() {
this.set('value', this.get('value'));
},
preset() {
this.set('value', 'foo');
}
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
foo: ["one", "two", "three"],
theFoo: 0
});
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
actions: {
foo(val) {
console.log("called " + val);
}
},
appName: 'Ember Twiddle',
test: Ember.computed(function() {
You can’t perform that action at this time.