Skip to content

Instantly share code, notes, and snippets.

@wms
wms / gist:c1cc3e500567654afa3fffd07c24f606
Created January 10, 2024 08:20
Output of running Effect Inspector against example program
*** {
type: 'OP_START',
frame: Object [Frame] {
id: 1,
context: { exit: [Function: resolve] },
getTask: [Function (anonymous)],
createChild: [Function (anonymous)]
},
op: [GeneratorFunction: MainFn]
}
@wms
wms / inspect.ts
Created January 10, 2024 08:18
Effection Inspector
import {
Frame,
Operation,
Signal,
createSignal,
each,
getframe,
spawn,
Instruction,
Task,
@wms
wms / keybase.md
Last active December 1, 2019 08:54

Keybase proof

I hereby claim:

  • I am wms on github.
  • I am wms (https://keybase.io/wms) on keybase.
  • I have a public key ASCIMT1wAFFZwXW7eunFRaYCS7PLYxTGQBUDS9CqR5QR1go

To claim this, I am signing this object:

@wms
wms / package.js
Created September 8, 2016 10:13
A snippet of a Gulp workflow which bundles everything a Node application needs into a .zip file
import del from 'del';
import gulp from 'gulp';
import zip from 'gulp-zip';
import install from 'gulp-install';
import yargs from 'yargs';
import {
build as config
} from '../package.json';
{
"_links": {
"self": {
"href": "/customer/2"
},
"payment": {
"href": "/payment?where=customer_id,2",
"name": "collection"
},
"rental": {
PHP Fatal error: Uncaught exception 'InvalidArgumentException' with message 'A callable is expected in AnnotationRegistry::registerLoader().' in /tmp/kahlan/home/warren/symfony/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php:111
Stack trace:
#0 /home/warren/symfony/autoload.php.dist(13): Doctrine\Common\Annotations\AnnotationRegistry::registerLoader(Array)
#1 /tmp/kahlan/home/warren/symfony/vendor/phpunit/phpunit/src/Util/Fileloader.php(58): include_once('/home/warren/sy...')
#2 /tmp/kahlan/home/warren/symfony/vendor/phpunit/phpunit/src/Util/Fileloader.php(42): PHPUnit_Util_Fileloader::load('/home/warren/sy...')
#3 /tmp/kahlan/home/warren/symfony/vendor/phpunit/phpunit/src/TextUI/Command.php(792): PHPUnit_Util_Fileloader::checkAndLoad('/home/warren/sy...')
#4 /tmp/kahlan/home/warren/symfony/vendor/phpunit/phpunit/src/TextUI/Command.php(622): PHPUnit_TextUI_Command->handleBootstrap('/home/warren/sy...')
#5 /tmp/kahlan/home/warren/symfony/vendor/phpunit/phpunit/src/TextUI/Com
@wms
wms / designer.html
Created February 4, 2015 16:19
designer
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
box-sizing: border-box;
}
@wms
wms / gist:b8ce759636cdc0286eec
Created September 2, 2014 09:43
"Let's be pragmatic about this"
It's phrase we hear frequently these days. Some us say it, too. What does it even mean? I'm going to rant for a few minutes on the true meaning of 'pragmatism', and why it is a word that should be used with caution.
DISCLAIMER: Will contain swears and an unorthodox philosophical perspective.
<?php
require 'vendor/autoload.php';
use polymer\core\App;
use polymer\data\Binding;
use lithium\core\Libraries;
Libraries::add('lithium');
Libraries::add('polymer', ['path' => '/home/warren/polymer/src/polymer']);
@wms
wms / -
Created June 12, 2014 15:59
<?php
require 'vendor/autoload.php';
use polymer\core\App;
use polymer\data\Binding;
use lithium\core\Libraries;
Libraries::add('lithium');
Libraries::add('polymer', ['path' => '/home/warren/polymer/src/polymer']);