wiki:jazz/16-04-15

Version 4 (modified by jazz, 9 years ago) (diff)

--

2016-04-15

Gist

  • http://defunkt.io/gist/
  • https://github.com/defunkt/gist
  • RubyGems 安裝:
    gem install gist
    
  • Mac 安裝
    brew install gist
    
  • Debian / Ubuntu 安裝
    apt-get -y install gist
    
  • 使用
    • 登入
      gist login
      
    • 上傳單一檔案
      gist file1
      
    • 上傳多個檔案
      gist file1 file2
      
    • 上傳 STDIN 到指定檔名
      指令 | gist -f "檔名"
      
    • 複製 gist URL 到剪貼簿
      指令 | gist -c
      

Bash

Gradle

  • 使用 gradle init 產生 gradle 專案目錄的範本
    ~$ mkdir -p gradle-sample
    ~$ cd gradle-sample
    ~/gradle-sample$ gradle init
    :wrapper
    :init
    
    BUILD SUCCESSFUL
    
    Total time: 2.419 secs
    
    This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.12/userguide/gradle_daemon.html
    
  • gradle init 產生的目錄結構如下:
    .
    ├── build.gradle
    ├── gradle
    │   └── wrapper
    │       ├── gradle-wrapper.jar
    │       └── gradle-wrapper.properties
    ├── gradlew
    ├── gradlew.bat
    └── settings.gradle
    
    2 directories, 6 files