This is a quick simple guide to getting jSpin setup for Mac and Linux.
You will need:
- Java (1.5 +)
| 13:15 <xQuasar> | HASKELL IS FOR FUCKIN FAGGOTS. YOU'RE ALL A BUNCH OF | |
| | FUCKIN PUSSIES | |
| 13:15 <xQuasar> | JAVASCRIPT FOR LIFE FAGS | |
| 13:16 <luite> | hello | |
| 13:16 <ChongLi> | somebody has a mental illness! | |
| 13:16 <merijn> | Wow...I suddenly see the error of my ways and feel | |
| | compelled to write Node.js! | |
| 13:16 <genisage> | hi | |
| 13:16 <luite> | you might be pleased to learn that you can compile | |
| | haskell to javascript now |
| #!/bin/sh | |
| # Setup some variables needed for bootstrapping the environment | |
| ROOT=/home/vrde/projectz/myproject | |
| REPOS=${ROOT}/repos | |
| export PYTHONPATH=${REPOS} | |
| # unregister broken GHC packages. Run this a few times to resolve dependency rot in installed packages. | |
| # ghc-pkg-clean -f cabal/dev/packages*.conf also works. | |
| function ghc-pkg-clean() { | |
| for p in `ghc-pkg check $* 2>&1 | grep problems | awk '{print $6}' | sed -e 's/:$//'` | |
| do | |
| echo unregistering $p; ghc-pkg $* unregister $p | |
| done | |
| } | |
| # remove all installed GHC/cabal packages, leaving ~/.cabal binaries and docs in place. |
| # wavio.py | |
| # Author: Warren Weckesser | |
| # License: BSD 3-Clause (http://opensource.org/licenses/BSD-3-Clause) | |
| import wave | |
| import numpy as np | |
| def _wav2array(nchannels, sampwidth, data): | |
| """data must be the string containing the bytes from the wav file.""" |
| A Whirlwind Tour of Combinatorial Games in Haskell | |
| ================================================== | |
| Combinatorial games are an interesting class of games where two | |
| players take turns to make a move, changing the game from one position | |
| to another. In these games, both players have perfect information | |
| about the state of the game and there is no element of chance. In | |
| 'normal play', the winner is declared when the other player is unable | |
| to move. A lot of famous strategy games can be analysed as | |
| combinatorial games: chess, go, tic-tac-toe. |
| # Released by rdb under the Unlicense (unlicense.org) | |
| # Based on information from: | |
| # https://www.kernel.org/doc/Documentation/input/joystick-api.txt | |
| import os, struct, array | |
| from fcntl import ioctl | |
| # Iterate over the joystick devices. | |
| print('Available devices:') |
This is a quick simple guide to getting jSpin setup for Mac and Linux.
You will need:
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| /* | |
| * File: minunit.h | |
| * Author: Zed. A. Shaw, Sam | |
| * | |
| * @see http://c.learncodethehardway.org/book/ex30.html | |
| * | |
| * Created on 27 August 2014, 22:14 | |
| */ | |
| #ifndef MINUNIT_H |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # Author: Damien Garaud | |
| # Date: 2014-2015 | |
| # License: Simplified BSD | |
| """Allow you to pipe command results into an Emacs buffer. Suppose you have an | |
| Emacs server since you launch 'emacsclient'. |