Skip to content

Instantly share code, notes, and snippets.

@xfsnowind
xfsnowind / js-console.sh
Created September 29, 2015 19:08
javascript console result of object on blog "Handle Jquery object with Lazy.js" on 2014/04/07
// Javascript console
ObjectWrapper {source: jQuery.fn.init[4], root: function, get: function, each: function, watch: function…}
├──source: jQuery.fn.init[4]
│ ├──0: div.castle
│ ├──1: div.castle
│ ├──2: div.castle
│ ├──3: div.castle
├──context: document
├──length: 4
├──prevObject: jQuery.fn.init[1]
@xfsnowind
xfsnowind / castle-lazy.js
Created September 29, 2015 19:07
lazy operations to html nodes on blog "Handle Jquery object with Lazy.js" on 2014/04/07
lazy($(".castle")).map(mapFunc)
.reduce(reduceFunc)
.each(eachFunc);
@xfsnowind
xfsnowind / nodes.html
Created September 29, 2015 19:06
html nodes on blog "Handle Jquery object with Lazy.js" on 2014/04/07
<div class="castle"></div>
<div class="castle"></div>
<div class="castle"></div>
<div class="castle"></div>
@xfsnowind
xfsnowind / git-status-after-hard-reset.sh
Created September 29, 2015 18:45
how git status after git hard reset on blog difference among soft mixed and hard of git command git reset on 2014/03/26
# Shell
> git reset --hard HEAD~1
> git status
On branch master Untracked files:
(use "git add <file>..." to include in what will be committed)
stagingMappe/
nothing added to commit but untracked files present
(use "git add" to track)
> tree
├── stagingMappe
@xfsnowind
xfsnowind / git-status-after-mixed-reset.sh
Created September 29, 2015 18:43
show git status after git mixed reset on blog difference among soft mixed and hard of git command git reset on 2014/03/26
# Shell
> git reset --mixed HEAD~1
> git status
On branch master Untracked files:
(use "git add <file>..." to include in what will be committed)
mappe/
stagingMappe/
> tree
├── mappe
│ └── mappeFil
@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:
@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.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-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-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