This file contains 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
let fnNameMatcher = /([^(]+)@|at ([^(]+) \(/; | |
function fnName(str: string) { | |
let regexResult = fnNameMatcher.exec(str) as string[]; | |
if (regexResult) { | |
return regexResult[1] || regexResult[2]; | |
} else { return ''; } | |
} | |
export function log(...messages: any[]) { |
This file contains 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
#!/bin/sh | |
git filter-branch --env-filter ' | |
OLD_EMAIL="a@example.com | |
CORRECT_NAME="a" |
This file contains 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
(defun elisp-showdoc (f) | |
(interactive (list (thing-at-point 'symbol t))) | |
(message | |
"%s" | |
(let* ((doc-list (split-string (documentation (intern f)) "\n")) | |
(number-lines (min (- (floor (* max-mini-window-height (frame-height))) 2) | |
(- (length doc-list) 2))) | |
(subset (concatenate 'list | |
(last doc-list) | |
'("") |
This file contains 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 tove.specs.generators | |
"Based on https://github.com/dm3/clojure.joda-time/blob/master/test/joda_time/generators.clj" | |
(:require [clojure.test.check.generators :as gen] | |
[clojure.string :as string] | |
#?(:clj [java-time :as jt] | |
:cljs [cljs-time.core :as jst])) | |
#?(:clj (:import [java.time LocalDate LocalDateTime ZonedDateTime] | |
[java.time.chrono IsoChronology]))) | |
OlderNewer