Skip to content

Instantly share code, notes, and snippets.

View el-chogo's full-sized avatar

Carlos Gottberg el-chogo

  • Cornershop by Uber
View GitHub Profile
import xs from 'xstream';
import R from 'ramda';
import {div,ul,h1,button,input,p,li} from '@cycle/dom';
import debounce from 'xstream/extra/debounce';
function showElementD(className, selectedElements, element) {
const included = selectedElements.includes(element.id);
return element === null ?
li('.list-element', 'No element received')
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.clinoge.examples</groupId>
<artifactId>primefaces</artifactId>
<version>0.0.1</version>
<packaging>war</packaging>
divide :: Int -> Int -> Int
divide 1 1 = 1
divide 2 1 = 2
divide 2 2 = 1
divide 3 1 = 3
divide 3 2 = 1
divide 3 3 = 1
divide 4 1 = 4
divide 4 2 = 2
divide 4 3 = 1
@el-chogo
el-chogo / F.php
Last active April 28, 2016 04:05
<?php
namespace Linoge\Functional;
use ReflectionFunction;
use ReflectionMethod;
use ReflectionClass;
class F {
public static function trace() {
return call_user_func_array(F::curry(function($args) {
if (is_array($args))
@el-chogo
el-chogo / download-aporrea.lisp
Last active April 22, 2016 00:02
Joke-intended script, but might be useful for someone. First thing written in Lisp.
(with-output-to-string (*standard-output*)
(ql:quickload "drakma" )
(ql:quickload "plump" )
(ql:quickload "split-sequence" )
(ql:quickload "alexandria" )
(ql:quickload "cl-strings" )
(ql:quickload "clss" ))
(setf *random-state* (make-random-state t))