Skip to content

Instantly share code, notes, and snippets.

import File
for line in File('/dev/ttys0') :
bla lba bla
ser.close()
import dbus
# get connman's dbus interface
bus = dbus.SystemBus()
manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
"org.moblin.connman.Manager")
manager.ConnectService(({ "Type": "wifi", "Mode": "managed",
"SSID": ssid,
---
layout: post
title: Sample Post
tags:
- Ruby on Rails
- Jekyll
- development
redirects:
- old_url
image: http://farm1.static.flickr.com/67/173574384_8b29083ef0_z.jpg?zz=1
var toto = function(){}
@jcheype
jcheype / ss
Created July 22, 2011 16:20
ss
ss
@jcheype
jcheype / ss
Created July 22, 2011 16:21
ss
ss
sdfsd
class IndexView extends Backbone.View
template: JST['index']
render: =>
$(@el).html( @template() )
this
this.IndexView = IndexView
@jcheype
jcheype / OptimizerTest.scala
Created January 27, 2013 19:56
- Optimize + Elapsed time: 55ms: + Path GAIN: 459630:
package com.jcheype.codeStory.enonce2
import org.scalatest.FunSuite
import util.Random
import collection.mutable
import java.util.UUID
import org.slf4j.LoggerFactory
import org.scalatest.matchers.ShouldMatchers
/**
@jcheype
jcheype / RestSimple.scala
Created January 30, 2013 23:59
restsimple
package com.jcheype.codeStory
import scala.util.DynamicVariable
import com.jcheype.webServer._
import org.scalatra._
import org.jboss.netty.bootstrap.ServerBootstrap
import org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory
import java.util.concurrent.Executors
import com.jcheype.webServer.Route
import java.net.InetSocketAddress