Install the Rails gem if you haven't done so before
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
;; https://www.pixelated-noise.com/blog/2020/09/10/what-spec-is/ | |
;; API docs : https://clojure.github.io/spec.alpha/clojure.spec.alpha-api.html | |
;; https://practical.li/clojure/clojure-spec/ | |
;; Guide : https://clojure.org/guides/spec | |
;; https://corfield.org/blog/2019/09/13/using-spec/ | |
;; https://www.cognitect.com/blog/2017/6/19/improving-on-types-specing-a-java-library | |
;; Example code | |
;; https://github.com/practicalli/leveraging-spec | |
;; braidchat : core/client/store.cljs, base/state.cljc (validation interceptors) |
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
#! /bin/sh | |
# This is a very crude way where you change the shadow cljs jar in the maven repo and repackage it | |
cd '/home/gitpod/.m2/repository/thheller/shadow-cljs/2.15.12' | |
# unzip to directory called out | |
unzip shadow-cljs-2.15.12-aot.jar -d out | |
mv shadow-cljs-2.15.12-aot.jar shadow-cljs-2.15.12-aot-backup.jar |
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
for i in *.html ; do echo "$i" && pandoc -s ./$i -o ./output/$i.md ; done |
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
function parseDimension(dimension) { | |
var packageDimensions = dimension.split("x"); | |
return packageDimensions; | |
} | |
function numericSort(a, b) { | |
if (a < b) return -1; | |
if (a > b) return 1; | |
return 0; |
At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.
git commit --amend
This will open your $EDITOR
and let you change the message. Continue with your usual git push origin 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
PROMPT=' | |
$(git_prompt_info)%(?,,%{${fg_bold[white]}%}[%?]%{$reset_color%} )%{$fg[yellow]%}%# %{$reset_color%} ' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[blue]%}(" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%})%{$fg[red]%}⚡%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" | |
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
define(function (require) { | |
// import dependencies | |
var defineComponent = require('./lib/component'); | |
// export component constructor | |
return defineComponent(helloWorld); | |
// component definition | |
function helloWorld () {}; |
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
config.macros.hero= {}; | |
config.macros.hero.handler = function (place,macroName,params,wikifier,paramString,tiddler) { | |
var heroText= params.length > 0 ? params[0] : "BLANK"; | |
wikify("__@@''"+heroText+"''@@__", place); | |
} | |
config.macros.insight= {}; | |
config.macros.insight.handler = function (place,macroName,params,wikifier,paramString,tiddler) { |
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
body:before { | |
content: ""; | |
position: fixed; | |
top: -10px; | |
left: 0; | |
width: 100%; | |
height: 10px; | |
-webkit-box-shadow: 0px 0px 10px rgba(0,0,0,.8); | |
-moz-box-shadow: 0px 0px 10px rgba(0,0,0,.8); |
NewerOlder