Skip to content

Instantly share code, notes, and snippets.

View laszlokorte's full-sized avatar

Laszlo Korte laszlokorte

View GitHub Profile
import { ShaderChunk } from 'three';
export const vertexShader = `
${ShaderChunk.logdepthbuf_pars_vertex}
${ShaderChunk.fog_pars_vertex}
attribute vec3 previous;
attribute vec3 next;
attribute float side;
attribute float width;
attribute float counters;
#lang s-exp framework/keybinding-lang
;modified version of https://github.com/yjqww6/drracket-paredit
(require drracket/tool-lib srfi/2)
(require (for-syntax racket/list))
;; The raw version of define-shortcut that does not perform any
;; key processing or body wrapping.
(define-syntax-rule (define-shortcut-internal (key ...) name proc)

Keybase proof

I hereby claim:

  • I am laszlokorte on github.
  • I am laszlokorte (https://keybase.io/laszlokorte) on keybase.
  • I have a public key ASD0IhNwhXub65-6LsaPiU5e8G2Nhp4Qm_Z7ux6WsXmxuQo

To claim this, I am signing this object:

@laszlokorte
laszlokorte / 0-test.php
Last active January 7, 2017 23:05
Php Serializable bug
<?php
// The root container object
class Root implements Serializable {
private $nodes;
private $mainNode;
public function __construct() {
$this->nodes = new IdentifierMap();
}
// Adds child object
import {Observable as O} from "rx"
import hyper from "hyperscript-helpers"
const view = (DOM, model$) => {
const {div, h1, button} = hyper(DOM.h)
return DOM.prepare(model$.map(text =>
div([
h1(text),
button("Click me!"),
import {Observable as O} from 'rx';
import I from 'immutable';
import {
expressionFromJson,
collectIdentifiers,
collectSubExpressions,
evaluateAll,
} from '../lib/expression';
@laszlokorte
laszlokorte / introrx.md
Created December 21, 2015 17:23 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
import Cycle from '@cycle/core';
import isolate from '@cycle/isolate';
import {makeDOMDriver, div} from '@cycle/dom';
import {Observable as O} from 'rx';
const Canvas = ({DOM, content$}) => {
const intent = (D) =>
({
toggle$: D
.select('.clickableBackground')
'use strict';
var isArray = require('x-is-array');
// START Cycle.js-specific code >>>>>>>>
var h = require('@cycle/dom').h;
// END Cycle.js-specific code <<<<<<<<<<
var SVGAttributeNamespace = require('virtual-dom/virtual-hyperscript/svg-attribute-namespace');
var attributeHook = require('virtual-dom/virtual-hyperscript/hooks/attribute-hook');
@laszlokorte
laszlokorte / Material-Theme-Lighter.sublime-theme
Last active November 29, 2015 12:19
Some color and spacing adjustments
[
{
"class": "sidebar_label",
"color": [135, 145, 165],
},
{
"class": "sidebar_label",
"parents": [{"class": "tree_row", "attributes": ["expandable"]}],
"color": [145, 165, 175],