Skip to content

Instantly share code, notes, and snippets.

View ohcibi's full-sized avatar
🕴️
Elevated

Tobias Witt ohcibi

🕴️
Elevated
View GitHub Profile
@ohcibi
ohcibi / +etc+gemrc
Last active December 10, 2015 22:18
# Read about the gemrc format at http://docs.rubygems.org/read/chapter/11
# --user-install is used to install to $HOME/.gem/ by default since we want to separate
# pacman installed gems and gem installed gems
gem: --no-rdoc --no-ri
sudo apt-get install -f
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Statusinformationen werden eingelesen... Fertig
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
37 nicht vollständig installiert oder entfernt.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
man-db (2.6.3-1) wird eingerichtet ...
dpkg: Fehler beim Bearbeiten von man-db (--configure):
Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
<!doctype html>
<html>
<head>
<title></title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
one = $('#one');
one.val('-');
one.val(one.val() + '2');
namespace :api do
resource :tracks do
resource :coordinates, only: [:create]
end
end
zoomRect.size.height += 20;
zoomRect.size.width += 20;
[self.mapView setVisibleMapRect:zoomRect animated:YES];
pcm.!default {
type hw
card Device
}
ctl.!default {
type hw
card Device
}
defaults.ctl.card Device
@ohcibi
ohcibi / gist:4697752
Last active December 12, 2015 02:18
# when running mplayer:
speaker-test 1.0.26
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib conf.c:1017:(parse_value) card is not a string
ALSA lib conf.c:1686:(snd_config_load1) _toplevel_:11:0:Invalid argument
ALSA lib conf.c:3406:(config_file_open) /etc/asound.conf may be old or corrupted: consider to remove or fix it
@ohcibi
ohcibi / Scene1.html
Last active December 12, 2015 12:09
<script type="text/x-handlebars" data-template-name="rooms">
<ul id="rooms">
{{#each controller}}
<li>
<h1>{{name}}</h1>
{{ partial devices }}
</li>
{{/each}}
</ul>
</script>
window.App = Ember.Application.create()
App.Router.map -> @resource 'rooms'
App.IndexRoute = Ember.Route.extend redirect: -> @transitionTo 'rooms'
App.ApplicationRoute = Ember.Route.extend
setupController: -> @controllerFor('rooms').set 'model', App.Room.find()
# Controllers
App.RoomsController = Ember.ArrayController.extend
sortProperties: ['room_id']
# Routes
@ohcibi
ohcibi / init.coffee
Last active December 13, 2015 18:59
Ember.Handlebars.registerBoundHelper 'forMoreThanOneIn', (collection) ->
alert collection.toArray()
return elseFn() if collection.length == 1
return "Compound"
window.App = Ember.Application.create
rootElement: "#QiviconBasicClient"
App.Router.map -> @resource 'rooms'
App.IndexRoute = Ember.Route.extend redirect: -> @transitionTo 'rooms'