Skip to content

Instantly share code, notes, and snippets.

diff --git a/plugin/fireplace.vim b/plugin/fireplace.vim
index 6c32caa..a415bf8 100644
--- a/plugin/fireplace.vim
+++ b/plugin/fireplace.vim
@@ -232,7 +232,9 @@ function! s:repl.piggieback(arg, ...) abort
else
let arg = ' :repl-env ' . a:arg
endif
- let response = connection.eval('(cemerick.piggieback/cljs-repl'.arg.')')
+ "let response = connection.eval('(cemerick.piggieback/cljs-repl'.arg.')')
@xfsnowind
xfsnowind / BuzzFizz in clojure
Last active August 29, 2015 14:26
BuzzFizz implementation from [Kjetil](https://github.com/kthu) with Clojure
(take 100 (map #(let [s (str %2 %3) ] (if (seq s) s (inc %)) )
(range)
(cycle [ "" "" "Fizz" ])
(cycle [ "" "" "" "" "Buzz" ])))
open System.IO
open System.Security.Cryptography
let rec getAllFiles dir =
seq { yield! Directory.EnumerateFiles(dir, "*.*")
for d in Directory.EnumerateDirectories(dir) do
yield! getAllFiles d }
let getFileSize (filePath: string) =
FileInfo(filePath).Length
@xfsnowind
xfsnowind / git-init.sh
Created September 29, 2015 18:20
git initialization
#initialize the project
> git init
> touch text
> echo "test"
> text
> git add text
> git commit -m "init and create a text file"
@xfsnowind
xfsnowind / git-second.sh
Created September 29, 2015 18:25
git second commit on blog difference among soft mixed and hard of git command git reset on 2014/03/26
#make second commit
> mkdir mappe
> touch mappe/mappeFil
> echo "test"
> mappe/mappeFil
> git add .
> git commit -m "add the folder 'mappe' and file 'mappeFile' in it"
@xfsnowind
xfsnowind / git-modification.sh
Last active September 29, 2015 18:28
git modifcation to staging area on blog difference among soft mixed and hard of git command git reset on 2014/03/26
#some modification to staging area
> mkdir stagingMappe
> touch stagingMappe/trackedFil
> touch stagingMappe/untrackedFil
> echo "aaaa"
> stagingMappe/trackedFil
> echo "bbbb"
> stagingMappe/untrackedFil
> git add stagingMappe/trackedFil
@xfsnowind
xfsnowind / git-tree.sh
Created September 29, 2015 18:28
show git file structures on blog difference among soft mixed and hard of git command git reset on 2014/03/26
// Shell
> tree
├── mappe
│ └── mappeFil
├── stagingMappe
│ ├── trackedFil
│ └── untrackedFil
└── text
@xfsnowind
xfsnowind / git-status.sh
Created September 29, 2015 18:31
show git status on blog difference among soft mixed and hard of git command git reset on 2014/03/26
// Shell
> git status
On branch master Changes to be committed:
(use "git reset HEAD <file>..." to unstage) new file:
stagingMappe/trackedFil Untracked files:
(use "git add <file>..." to include in what will be committed)
stagingMappe/untrackedFil
@xfsnowind
xfsnowind / git-log.sh
Created September 29, 2015 18:33
show git log on blog difference among soft mixed and hard of git command git reset on 2014/03/26
// Shell
> git log
#commit B
commit 81c07a34e51242c9c95b92a45c4689bad59ea389
Date: Wed Mar 26 15:42:46 2014 +0100
add the folder 'mappe' and file 'mappeFile' in it
#commit A
commit 9a60670ed687bce1dd03f2abfff905ce2998798a
Date: Wed Mar 26 10:46:42 2014 +0100
@xfsnowind
xfsnowind / git-status-after-soft-reset.sh
Created September 29, 2015 18:39
show git status after git soft reset on blog difference among soft mixed and hard of git command git reset on 2014/03/26
# Shell
> git reset --soft HEAD~1
> git status
On branch master Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file:
mappe/mappeFil
new file:
stagingMappe/trackedFil
Untracked files: