GithubHelp home page GithubHelp logo

byronhsu / life-commit Goto Github PK

View Code? Open in Web Editor NEW
941.0 12.0 38.0 3.4 MB

πŸƒπŸ“† Life as a git. Commit on your life.

Home Page: https://byronhsu.github.io/life-commit/

License: MIT License

JavaScript 73.23% CSS 19.83% HTML 6.94%
commit life git cli nodejs

life-commit's Introduction

πŸƒπŸ“† Life as a git. Commit on your life.

Demo

My Website

https://byronhsu.github.io/life-commit/

Install

In order to use life-commit, make sure that you have Node version 6.0.0 or higher.

$ npm install -g life-commit

Usage

overview

  Usage
    $ life
  Options
    --init, -i                 
    --commit, -c               
    --log, -l                  
    --edit , -e <commitId>      
    --dir, -d [folder name]    
  Examples
    $ life --commit
    $ life --log

options

--init or -i

$ life --init

Initialize your life

--commit or -c

$ life --commit

Commit on your life

--log or -l

$ life --log

Log the commits on your life

--edit or -e

$ life --edit 06f302

Edit the existing commits

--dir or -d

$ life --dir myfolder

Create a directory that visualizing the commits on webpage

Contribute

  • Define lifemojis

    All the lifemojis are stored at /src/data/lifemojis.json. Comment at issue#2 with an emoji and description. Let's brainstorm and define more and more creative lifemojis together!

    Format:

      {
      "emoji": "🚚",
      "description": "Made a move"
      },
      {
      "emoji": "πŸ‘°",
      "description": "Got married"
      },
      {
      "emoji": "πŸ‘¨β€πŸ‘©β€πŸ‘§",
      "description": "Had a child"
      },
  • Code

    Send PRs directly!

Credits

Elegant UI design by Bruno Rodrigues

Creative project gitmoji-cli and gitmoji by Carlos Cuesta

LOGO desinged by Gary Chiang

life-commit's People

Contributors

byronhsu avatar dipanshkhandelwal avatar styfle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

life-commit's Issues

Make CLI conform to git

For example, life commit is much more intuitive than life --commit if one is familiar with git.

Can't see lifemojis in web??

I chose one ,and open the index ,but cant see the icon, why?

馃帀 First commit Life log

And I upload dist folder to my VPS, but Chines are Garbled!

Date ranges

Example use case:
Let's say I attend an internship from 2015-08-11 to 2015-08-23. I think I'll be convenient to be able to commit with a range of dates rather than, say, just the start date.

TimeStamps not sorted correctly

My commit file looks something like -

[
 {
  "lifemoji": "πŸ’ͺ",
  "title": "100DaysOfML Challenge Begins",
  "message": "Today I embarked on a challenge to understand and work on Machine Learning",
  "date": "2018-08-01T07:22:43.600Z",
  "id": "49aefe23-ccc3-448c-9bd3-16a96cad39b9"
 },
 {
  "lifemoji": "βœ…",
  "title": "Downloaded Prof. Gilbert' book",
  "message": "Downloaded \"Introduction to Linear Algebra\" by Gilbert Strang",
  "date": "2018-08-01T08:59:45.823Z",
  "id": "63605e54-faf8-4985-b93a-4d2e1a714447"
 }
]

As per it, "100DaysOfML Challenge Begins" must appear before "Downloaded Prof. Gilbert' book" but that does not happen.

Node JS Version - 8.11.3

I think I found the issue. It' in the gulpfile.js on line 22. It should be

if (new Date(c1.date.input).getTime() < new Date(c2.date.input).getTime()) return -1; 

instead of

if (new Date(c1.date).getTime() < new Date(c2.date).getTime()) return -1;

This resolves it for me.

πŸ˜‡ Question about naming

I personally suggest common naming convention such as life init (or life i as shorthand), instead of life --init or life -i. I think it's easier to type and allow more option parsing. Because as the program grows, you might need more options for a single command, such aslife i --student or life log --detail.

(Not an serious issue, just one of my questions πŸ˜†)

New lifemojis

{
"emoji": "🚚",
"description": "Made a move
},
{
"emoji": "πŸ‘°",
"description": "Got married"
},
{
"emoji": "πŸ‘¨β€πŸ‘©β€πŸ‘§",
"description": "Had a child"
},

This is a great tool - love the idea! Keep it up

Advice about the commit history data

I committed at office, and then go back home. Then I want to commit, I found I can't get the history data so that I could continue commit based on the history. I checked my github pages stored the html output, and didn't find the data.

So I advice to add JSON data to the output.

Who commits your death?

I like the whole idea of this project πŸ‘ . Can even be used as a diary.

But I thinking about it, in committing one's life, who commits his death?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.