!SLIDE
"Follow your nose"
— Roy T. Fielding
!SLIDE
"build scalable, flexible implementations that do not simply run on the Web, but that actually exist in the Web"
/** | |
* Mark and Sweep Garbage Collection technique. | |
* MIT Style License | |
* by Dmitry Soshnikov | |
*/ | |
// This diff describes the simplest version of mark and sweep | |
// GC in order to understand the basic idea. In real practice the | |
// implementation can be much tricker and more optimized. |
package main | |
import ( | |
"github.com/codegangsta/martini" | |
"github.com/codegangsta/martini-contrib/binding" | |
"github.com/codegangsta/martini-contrib/render" | |
"labix.org/v2/mgo" | |
) | |
type Wish struct { |
# Ubuntu upstart file at /etc/init/ejabberd.conf | |
respawn | |
respawn limit 20 5 | |
start on runlevel [2345] | |
stop on runlevel [06] | |
script | |
exec start-stop-daemon --start --name ejabberd --user ejabberd --chuid ejabberd --exec /usr/local/sbin/ejabberdctl -- start |
package main | |
import ( | |
"fmt" | |
"github.com/codegangsta/negroni" | |
"github.com/julienschmidt/httprouter" | |
"net/http" | |
) | |
func main() { |
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
tagName: '', // Does not let Ember inject HTML into the component. | |
routing: Ember.inject.service('-routing'), | |
breadcrumbs: Ember.computed('routing.currentRouteName', function () { | |
let routeName = this.get('routing.currentRouteName'); | |
let routeNames = routeName.split('.'); | |
let len = routeNames.length; |
function hexToBase65536(hex) { | |
var result = ""; | |
for (var i = hex.length ; i > 0; i -= 4) { | |
result += String.fromCharCode(parseInt(hex.substring(i - 4, i), 16)); | |
} | |
return result; | |
} |
# Ubuntu upstart file at /etc/init/yourservice.conf | |
pre-start script | |
mkdir -p /var/log/yourcompany/ | |
end script | |
respawn | |
respawn limit 15 5 | |
start on runlevel [2345] |
Open Apple menu -> System Preferences -> Bluetooth and disable Bluetooth on Mac as well as any other nearby Macs or devices which will try to pair with and confuse the controller.
Reset PS3 controller by inserting paperclip into pinhole near L2 button.
Connect PS3 controller to Mac with USB cable.
Enable Bluetooth.