How to use:
./wordle.sh
Or try the unlimit mode:
# * write_to_file | |
# Writes text to a file. If file exists, appends the text at the end. If not, creates a new file. | |
# * del_file | |
# Deletes a file. | |
# * read_file | |
# Reads a file and returns the content. | |
# * add_task |
#lang racket/base | |
(require racket/match | |
racket/list | |
racket/sequence | |
racket/random) | |
(define (is l) | |
(define (insert x ys) | |
(match ys | |
[(list) (list x)] |
#!/bin/bash | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: | |
# * the active virtualenv | |
# * the branch/status of the current git repository | |
# * the return value of the previous command | |
# * the fact you just came from Windows and are used to having newlines in | |
# your prompts. |
An experimental change for fast Clojure REPL startup:
java -jar clojure-1.8.0-fast.jar
The code used to create this JAR is on GitHub.
What's it doing?
It is:
;;; diary-sync-ical.el --- Sync iCalendar to diary -*- lexical-binding: t; -*- | |
;; Copyright (C) 2015 Kan-Ru Chen (陳侃如) | |
;; Author: Kan-Ru Chen (陳侃如) <kanru@kanru.info> | |
;; Keywords: | |
;; This program is free software; you can redistribute it and/or modify | |
;; it under the terms of the GNU General Public License as published by | |
;; the Free Software Foundation, either version 3 of the License, or |
;;; nodejs-repl-eval.el --- Summary | |
;;; Commentary: | |
;;; | |
;;; Evaluation functions for the `nodejs-repl' package. Written on a stormy | |
;;; night between days of node hacking. | |
;;; | |
;;; Code: | |
(require 'js2-mode) | |
(require 'nodejs-repl) |
import subprocess | |
import select | |
from threading import Thread | |
from cStringIO import StringIO | |
def read_stream(stream, output_stream, log_func): | |
while True: | |
r, w, x = select.select([stream.fileno()], [], [], 1.0) | |
if not r: |
;; geeknote ============================================================== | |
(defun geeknote-mode () | |
(interactive) | |
(eshell-command "python ~/geeknote/geeknote.py settings --editor /Applications/Emacs.app/Contents/MacOS/bin/emacsclient") | |
) | |
(defun geeknote-create (newnote) | |
(interactive "sname: ") | |
(eshell-command | |
(format "python ~/geeknote/geeknote.py create --content WRITE --title %s" newnote)) |