Skip to content
View four_in_one_demo.ino
//There id more information aboat this code in Page 26 of "Instruction manual-English.pdf"
// This code is for the bluetooth and infrared controlled ultrasonic arduino car.
// By default, the buttons 2, 4, 6 en 8 of the remote will move the car in infrared mode.
// Ultrasonic mode is enabled by the play/pause button.
// Track following is enabled by the EQ button.
// Button 5 will stop whatever the car is doing and enable button 2, 4, 6 en 8 again.
// Bluetooth is always enabled and available while in infrared mode. The password is 1234.
// Android car control app can be found here:
View utils.jsx
<h1>Hello, world!</h1>,
View spork_patch.rb
class Spork::TestFramework::RSpec
def run_tests(argv, stderr, stdout)
if rspec1?
::Spec::Runner::OptionParser.parse(argv, stderr, stdout)
elsif rspec3?
View docker-enter
if [ -e $(dirname "$0")/nsenter ]; then
# with boot2docker, nsenter is not in the PATH but it is in the same folder
NSENTER=$(dirname "$0")/nsenter
if [ -z "$1" ]; then
View ember-simple-auth.js
// Version: 0.0.11-11-g134e758
// Last commit: 134e758 (2014-01-02 16:25:13 +0100)
(function() {
'use strict';
The main namespace for Ember.SimpleAuth
View verify_exists.rb
require 'ruby-debug'
words = ["akka", "play framework", "sbt", "typesafe"]
tweet = "This is an example tweet talking about scala and sbt."
words.any? do |word|
View graph.html
<!-- initializing Angular -->
<html ng-app>
<!-- setting default value -->
<script language="javascript">
function Ctrl($scope) {
$scope.graph = 'noise_margin';
<script src=""></script>
View commands
# build esseintails
yum -y install gcc gcc-c++ kernel-devel
# make tools
yum -y install gcc automake autoconf libtool make
# ruby related stuff
yum -y install libxslt-devel libxml2-devel gdbm-devel libffi-devel zlib-devel openssl-devel readline-devel curl-devel openssl-devel pcre-devel git memcached-devel postgresql-devel ImageMagick-devel ImageMagick
# libyaml-devel
View simple_form_display_filter.rb
module SimpleForm
class FormBuilder < ActionView::Helpers::FormBuilder
# tried to monkey patch without copy'n'pasting, broke associations
def input(attribute_name, options={}, &block)
options = @defaults.deep_dup.deep_merge(options) if @defaults
chosen =
if name = options[:wrapper]
name.respond_to?(:render) ? name : SimpleForm.wrapper(name)
Something went wrong with that request. Please try again.