code
Le Code Produit Pendant Les Ateliers MixTeen
Lors du dernier atelier MixTeen qui s’est déroulé le 30 avril pendant les conférences de MixIT, du code a été produit. Et bien il est dispo, et comme les grands, dans un joli GitHub par ici ! N’hésitez pas à poser vos questions ici ou à team@mixteen.org
2014, May 11 — 1 minute(s) readPig 5 - Golo Lcd
Once more, I’m back! Thanks to Golo Community my little tech issue was quickly solved. Below, you will find the Golo version of the previous posts. It’s even downloadable here To launch the golo samples, use the command: golo golo --classpath /opt/pi4j/lib/*.jar --files <your golo file> LcdSimple.golo : module PiG.gpio.LcdSimple # inspired by https://github.com/Pi4J/pi4j/blob/master/pi4j-example/src/main/java/LcdExample.java...
2013, Dec 08 — 4 minute(s) readGolo - Little 5
Ok! That’s time to sync everyone on the state of GoloHttpServer. First of all, I created a GitHub for this and you’re more than welcome to contribute, ask questions or even just talk about it. This will allow you to take a look at the implementation of the run function which handle the Http request and response. function run = |connectedClient, serverState| { let inFromClient = BufferedReader( InputStreamReader (connectedClient:getInputStream())) let outToClient = DataOutputStream(connectedClient:getOutputStream()) let...
2013, Apr 26 — 3 minute(s) readGolo - Little 4
So, last time I told you I started to write some kind of GoloHttpServer. In that process (which is still WIP) I had several questions. One of the first was: a server will receive several requests, I need to launch threads. I knew how to do that with Java, how to do that with Golo. The solution I found is based on the below code: module little.experiment4_1 import java.lang function run = |number| { println...
2013, Mar 30 — 2 minute(s) readGolo - Little 2
The D-day is coming for Golo and be sure to attend Julien’s talk at Devoxx ! In the meantime, here is a new piece of Golo. module little.experiment2_1 import java.lang function functionWithCase = |inputParameter| { case { when inputParameter == "This value" { println("this value spotted") } otherwise { println("otherwise was the answer") } } } function main = |args| { functionWithCase("This value") functionWithCase("not something to handle") } This illustrate the...
2013, Mar 25 — 2 minute(s) read