Skip to content

Instantly share code, notes, and snippets.

View ympbyc's full-sized avatar
💭
Lisping in the mountains.

Minori Yamashita ympbyc

💭
Lisping in the mountains.
View GitHub Profile
; A MICRO-MANUAL FOR LISP - NOT THE WHOLE TRUTH, 1978
; John McCarthy, Artificial Intelligence Laboratory, Stanford University
; https://www.ee.ryerson.ca/~elf/pub/misc/micromanualLISP.pdf
; https://github.com/jaseemabid/micromanual
; for CL : Rainer Joswig, joswig@lisp.de
; this version runs in a Common Lisp
@BilalQadri
BilalQadri / emacs-biwa.el
Last active June 26, 2022 12:58
Biwascheme from Emacs (with repl)
;; Initialize Biwascheme interpreter on frontend(browser) then send and receive expressions with websocket client
;; INSTALL websocket.el, LOAD this file and RUN interactive function `load-ws` from Emacs
;; ws-close to close server
;; send expression (e.g functions) to browser with `C-c C-s` ... Tip# cursor should be on function name
(defun load-ws ()
(interactive)
(load-file "~/.emacs.d/websocket.el")
(start-ws)
(start-repl))
1. Clone this repository https://github.com/frenchy64/clojurescript/tree/tools.analyzer-ast
2. Checkout the `tools.analyzer.ast` branch.
3. `lein install` that branch.
4. Now you should have `[org.clojure/clojurescript "0.0-SNAPSHOT"]` in your maven repo
5. You now have push rights to `https://github.com/typedclojure/core.typed`.
6. I'll soon have a CLJS branch we can all work on.
Relevant files:
- the clojurescript type checker
- https://github.com/typedclojure/core.typed/blob/master/module-check/src/main/clojure/clojure/core/typed/check_cljs.clj
@exoego
exoego / 転職先に訊きたいチェックリスト.md
Last active April 16, 2023 03:57
転職活動してて訊きたいことのメモ

制度

  • 有休…
  • 病休…
  • 育休…
  • 年収(月給、賞与など)…
  • 残業代…
  • 早朝/深夜手当…
  • 休出手当…
  • 住宅補助…
(ns chanplay.core
(:require
[goog.dom :as dom]
[goog.events :as events]
[cljs.core.async :as async
:refer [<! >! chan close! sliding-buffer put! alts!]]
[jayq.core
:refer [$ append ajax inner html $deferred when done resolve pipe on] :as jq]
[crate.core :as crate]
)
@omasanori
omasanori / gist:8023683
Last active December 31, 2015 17:59
R'0'RSを読む

R'0'RSを読む

これはLisp Advent Calendar 2013の19日目の文章です。

はじめに

表題に出てくるR'0'RSは正式な名称ではありません。表題で私がR'0'RSと呼んでいる文章はSchemeの言語仕様を記述した報告書、いわゆるRnRSの元祖といえる"Scheme: An Interpreter for Extended Lambda Calculus"です。この文章はAI Memo 349としても知られています。以下ではAIM 349と呼びます。

@ympbyc
ympbyc / Hashtable.js
Last active December 15, 2015 11:49
Persistent Hashtable for JavaScript (naive)
/*
* 2013 Minori Yamashita <ympbyc@gmail.com>
* Interim Persistent Hashtable for JavaScript
* MIT License
*/
module.exports = (function () {
//CONS CELLS
function cons (a, d) {
return [a, d];
@pasberth
pasberth / monad.scm
Last active October 3, 2020 21:48 — forked from anonymous/monad.scm
(define (then m k)
(bind m (lambda (_) k)))
(define (state-unit a)
(lambda (s) `(,a ,s)))
(define (state-bind m k)
(lambda (s)
(let* { [r (m s)]
[a (car r)]
@pasberth
pasberth / monad.rb
Last active December 14, 2015 07:49
Monad in Ruby
class MonadContext
def initialize(monad_methods)
@monad = nil
@monad_methods = monad_methods
end
def monad
@monad || raise("Monad doesn't exist")
end
 ======================================================================
||                               _,                                   ||
||                               /| /                                 ||
||                              /  /[fetch]                           ||
||                       [save]/  /                                   ||
||                            /  /                                    ||
||                           /  v_                                    ||
||  ------------           -------                                    ||
|| | TweetModel |-------->|  t C  |                                   ||