Skip to content

Instantly share code, notes, and snippets.

Avatar

Alexandre Rousseau gamecubate

View GitHub Profile
View rps.cljs
(ns rps.app
(:require [reagent.core :as r]
[cljs.core.logic :as m :refer [membero]]
[clojure.core.logic.pldb :as pldb :refer [db-rel db with-db with-dbs]]
;; DATA
(def default-data {:player-hand nil
:computer-hand nil
:outcome nil
:player-score 0
@gamecubate
gamecubate / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
margin: 0;
width: 960px;
height: 500px;
}
View circonscriptions.csv
id nom idRégionÉlectorale idCarte
619 Charlesbourg 1 1
623 Jean-Lesage 1 1
643 Jean-Talon 1 1
663 Lévis 11 1
633 Taschereau 1 1
639 Vanier-Les Rivières 1 1
437 Acadie 2 2
373 Anjou—Louis-Riel 2 2
473 Blainville 13 2
@gamecubate
gamecubate / circonscriptions.csv
Last active Aug 29, 2015
Elections Québec 2014
View circonscriptions.csv
619 Charlesbourg 1 1
623 Jean-Lesage 1 1
643 Jean-Talon 1 1
663 Lévis 11 1
633 Taschereau 1 1
639 Vanier-Les Rivières 1 1
437 Acadie 2 2
373 Anjou—Louis-Riel 2 2
473 Blainville 13 2
@gamecubate
gamecubate / .gistup
Last active Aug 29, 2015
Radio buttons test
@gamecubate
gamecubate / index.html
Last active Dec 15, 2015
[Leaflet +] MapBox + d3
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<head>
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
width: 960px;
height: 500px;
position: relative;
You can’t perform that action at this time.