Skip to content

Instantly share code, notes, and snippets.

@ravloony
ravloony / package.json
Last active December 13, 2018 06:33
Purescript webpack config
{
"name": "something",
"version": "0.0.1",
"description": "Something",
"main": "bundle.js",
"directories": {
"test": "test"
},
"dependencies": {
},
@dlants
dlants / resize.md
Created August 24, 2017 04:01
Adding a Window Resize signal to a purescript pux webapp
@yang-wei
yang-wei / BarChart.jsx
Created August 7, 2016 10:41
react d3 (v4.0) stacked bar chart using rd3
'use strict';
import { scaleOrdinal, schemeCategory20c } from 'd3-scale';
import React from 'react';
module.exports = React.createClass({
displayName: 'BarChart',
propTypes: {
@rossharper
rossharper / ParameterizedKotlinTest.kt
Created February 20, 2016 21:51
Parameterized JUnit4 test example in Kotlin
@RunWith(Parameterized::class)
class KotlinTest(val paramOne: Int, val paramTwo: String) {
companion object {
@JvmStatic
@Parameterized.Parameters
fun data() : Collection<Array<Any>> {
return listOf(
arrayOf(1, "I"), // First test: (paramOne = 1, paramTwo = "I")
arrayOf(1999, "MCMXCIX") // Second test: (paramOne = 1999, paramTwo = "MCMXCIX")
@soupi
soupi / Main.purs
Created December 5, 2015 21:37
simple purescript-signal + purescript-canvas example
module Main where
import Prelude
import Data.Maybe
import Control.Monad.Eff
import Graphics.Canvas as C
import Signal as S
import Signal.DOM as S