This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface ActionClass<T extends Action> { | |
prototype: T; | |
} | |
// Base class for actions | |
abstract class Action { | |
type: string; | |
constructor() { | |
// Copy from the prototype onto the instance | |
this.type = this.type; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You can't use rebase -i here since it takes the parent commit as argument. | |
# You can do the following though: | |
git checkout FIRST_COMMIT_SHA && git commit --amend && git rebase HEAD master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns latinsq.core | |
(:use [clojure.set :only (difference)])) | |
(defn replace-at | |
"in string s, replaces character at index p with c" | |
[s p c] | |
(str | |
(.substring s 0 p) | |
c |