Inspired by "Parsing CSS with Parsec".
Just quick notes and code that you can play with in REPL.
By @kachayev
bl_info = { | |
"name" : "Gamepad Control", | |
"author" : "István Donkó", | |
"description" : "Control the blender viewport using a gamepad", | |
"blender" : (2, 80, 1), | |
# "location" : "View3D", | |
"category" : "Generic" | |
} | |
import bpy |
(ns recipes.core | |
(:refer-clojure :exclude [==]) | |
(:use [clojure.core.logic] | |
[clojure.core.logic.pldb :as pldb])) | |
(db-rel in-larder i) | |
(db-rel recipe r) | |
(db-rel in-recipe r i) | |
(db-rel compound-ingredient i is) |
diff --git a/plugin/fireplace.vim b/plugin/fireplace.vim | |
index 6c32caa..a415bf8 100644 | |
--- a/plugin/fireplace.vim | |
+++ b/plugin/fireplace.vim | |
@@ -232,7 +232,9 @@ function! s:repl.piggieback(arg, ...) abort | |
else | |
let arg = ' :repl-env ' . a:arg | |
endif | |
- let response = connection.eval('(cemerick.piggieback/cljs-repl'.arg.')') | |
+ "let response = connection.eval('(cemerick.piggieback/cljs-repl'.arg.')') |
{-# LANGUAGE ConstraintKinds #-} | |
{-# LANGUAGE GeneralizedNewtypeDeriving #-} | |
module ParserCombinators where | |
{- | |
We'll build a set of parser combinators from scratch demonstrating how | |
they arise as a monad transformer stack. Actually, how they arise as a | |
choice between two different monad transformer stacks! |
/* | |
* robotNav.js | |
* | |
* The green key is located in a slightly more | |
* complicated room. You'll need to get the robot | |
* past these obstacles. | |
*/ | |
function startLevel(map) { | |
// Hint: you can press R or 5 to "rest" and not move the |
Inspired by "Parsing CSS with Parsec".
Just quick notes and code that you can play with in REPL.
By @kachayev
define(function(require) { | |
var React = require('react'); | |
var paramRegex = /__(\d)+/; | |
var parser = new DOMParser(); | |
var errorDoc = parser.parseFromString('INVALID', 'text/xml'); | |
var errorNs = errorDoc.getElementsByTagName("parsererror")[0].namespaceURI; | |
// turns the array of string parts into a DOM | |
// throws if the result is an invalid XML document. |
<html> | |
<head> | |
<script src="out/goog/base.js" type="text/javascript"></script> | |
<script src="hello_world.js" type="text/javascript"></script> | |
<script type="text/javascript">goog.require("hello_world.core");</script> | |
</head> | |
<body> | |
</body> | |
<script type="text/javascript">hello_world.core.run()</script> | |
</html> |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
# Cellular Automata with Modular Arithmetic: Advanced Munching Squares | |
# Copyright (c) 2013, Sergey Shishmintzev | |
# License: MPL/GPL | |
# Interpreter: Python 2.7.3 + numpy 1.6.2 + PIL 1.1.7 | |
# | |
# P.S. Sorry for my English. It isn't my mother tongue. | |
# | |
# Reference: | |
# [Khan1997] A.R. Khan, et.al., "VLSI architecture of a cellular automata machine", 1997, | |
# http://dx.doi.org/10.1016/S0898-1221(97)00021-7 |