other gists
🔗 TS/JS utility functions
🔗 React utils
- Deep Object Dot Path - Type support for deep objects with dot notation.
other gists
🔗 TS/JS utility functions
🔗 React utils
0⃣ 0, keycap, zero | |
1⃣ 1, number, one | |
🕜 1, 30, clock, time, one, thirty, 1:30, one-thirty | |
🕐 1, clock, time, one, 00, o’clock, 1:00, one o’clock | |
2⃣ 2, number, two | |
🕝 2, 30, clock, time, two, thirty, 2:30, two-thirty | |
🕑 2, clock, time, two, 00, o’clock, 2:00, two o’clock | |
3⃣ 3, keycap, three | |
🕞 3, 30, three, clock, time, thirty, 3:30, three-thirty | |
🕒 3, three, clock, time, 00, o’clock, 3:00, three o’clock |
git log --graph --oneline --decorate ( git fsck --no-reflog | awk '/dangling commit/ {print $3}' )
This will show you all the commits at the tips of your commit graph which are no longer referenced from any branch or tag – every lost commit, including every stash commit you’ve ever created, will be somewhere in that graph.
.* | |
!.coveragerc | |
!.env | |
!.pylintrc |
PYTHON = python | |
APPENGINE = /usr/local/google_appengine | |
APPCFG = $(PYTHON) $(APPENGINE)/appcfg.py | |
APP_ID = (YOUR-APP-ID) | |
EMAIL = (YOUR-EMAIL) | |
SERVE_PORT = 8080 | |
ADMIN_PORT = 8000 | |
SERVE_ADDRESS = 0.0.0.0 | |
DATASTORE_PATH = ./datastore.sqlite3 |
This is way more complicated than it should be. The following conditions need to be met :
In this particular case, I'm interested in bringing in the 'default' template of jsdoc as a sub-directory in my project so I could potentially make changes to the markup it genereates while also being able to update from upstream if there are changes. Ideally their template should be a separate repo added to jsdoc via a submodule -- this way I could fork it and things would be much easier.... but, it is what it is.
After much struggling with git, subtree and git-subtree, I ended up finding this http://archive.h2ik.co/2011/03/having-fun-with-git-subtree/ -- it basically sets up separate branches from tracking remote, the particular sub-directory, and uses git subtree contrib module to pull it all togther. Following are
Source: http://willandorla.com/will/2011/01/convert-folder-into-git-submodule/
$ git clone --no-hardlinks original-repo copied-repo
#usage: | |
#{% loop_directory directory:images iterator:image filter:*.jpg sort:descending %} | |
# <img src="{{ image }}" /> | |
#{% endloop_directory %} | |
module Jekyll | |
class LoopDirectoryTag < Liquid::Block | |
include Liquid::StandardFilters | |
Syntax = /(#{Liquid::QuotedFragment}+)?/ |
cd repository | |
git checkout --orphan orphan_name | |
git rm -rf . | |
rm '.gitignore' | |
echo "#Title of Readme" > README.md | |
git add README.md | |
git commit -a -m "Initial Commit" | |
git push origin orphan_name |