Skip to content

Instantly share code, notes, and snippets.

View francisl's full-sized avatar

Francis Lavoie francisl

View GitHub Profile
### Keybase proof
I hereby claim:
* I am francisl on github.
* I am francisl (https://keybase.io/francisl) on keybase.
* I have a public key ASCMbt9NizzH60S9tn4RxhL3J3YjW_2mhT2B5nL3OrlNwAo
To claim this, I am signing this object:
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@francisl
francisl / grunt-livescript.js
Created October 25, 2013 02:50
Updated version of a grunt compile script for livescript. Original from Micah Smith. http://www.allampersandall.com/2012/08/nodejs-gruntjs-livescript-mocha-example
module.exports = function(grunt) {
// LIVESCRIPT ----------------------------
var log = grunt.log;
var growl = require('growl')
function handleResult(from, dest, err, stdout, code, done) {
if(err){
growl('ERROR', stdout);
@francisl
francisl / server
Created November 23, 2012 22:01
try server with threads
(define (start-threaded-server)
(display "starting server ")
(write-line (number->string x))
(set! x (+ x 1))
(let ((t (make-thread (lambda ()
(with-exception-handler
(lambda (exn)
(begin
(thread-sleep! 1)
(display ((condition-property-accessor 'exn 'location) exn))