gitignore.io


Source link: https://github.com/joeblau/gitignore.io


Create useful .gitignore files for your project

Install Command Line

To run gitignore.io from your command line you need an active internet connection and an environment function. You need to add a function to your environment that lets you access the gitignore.io API.

Git

#!/bin/bash

$ git config --global alias.ignore '!gi() {
 curl -L -s https://www.gitignore.io/api/$@ ;
}
; gi'

Linux

#!/bin/bash

$ echo "function gi() {
 curl -L -s https://www.gitignore.io/api/\$@ ;
}
" >> ~/.bashrc && source ~/.bashrc

#!/bin/zsh

$ echo "function gi() {
 curl -L -s https://www.gitignore.io/api/\$@ ;
}
" >> ~/.zshrc && source ~/.zshrc

#!/bin/fish

$ printf "function gi\n\tcurl -L -s https://www.gitignore.io/api/\$argv\nend\n" > ~/.config/fish/functions/gi.fish

macOS

#!/bin/bash

$ echo "function gi() {
 curl -L -s https://www.gitignore.io/api/\$@ ;
}
" >> ~/.bash_profile && source ~/.bash_profile

#!/bin/zsh

$ echo "function gi() {
 curl -L -s https://www.gitignore.io/api/\$@ ;
}
" >> ~/.zshrc && source ~/.zshrc

#!/bin/fish

$ printf "function gi\n\tcurl -L -s https://www.gitignore.io/api/\$argv\nend\n" > ~/.config/fish/functions/gi.fish

Windows

Create a PowerShell v3 Script

#For PowerShell v3 Function gig {

param(
  [Parameter(Mandatory=$true)]
  [string[]]$list
)
$params = ($list | ForEach-Object {
 [uri]::EscapeDataString($_) 
}
) -join ","
Invoke-WebRequest -Uri "https://www.gitignore.io/api/$params" | select -ExpandProperty content | Out-File -FilePath $(Join-Path -path $pwd -ChildPath ".gitignore") -Encoding ascii 
}

Create a PowerShell v2 Script

#For PowerShell v2 Function gig {

param(
  [Parameter(Mandatory=$true)]
  [string[]]$list
)
$params = ($list | ForEach-Object {
 [uri]::EscapeDataString($_) 
}
) -join ","
$wc = New-Object System.Net.WebClient
$wc.Headers["User-Agent"] = "PowerShell/" + $PSVersionTable["PSVersion"].ToString()
$wc.DownloadFile("https://www.gitignore.io/api/$params", "$PWD\.gitignore") 
}

Create a Command Line Prompt Script If you have installed msysgit), create gi.cmd with content below. And copy it to C:\Program Files\Git\cmd\gi.cmd, assuming msysgit was installed to c:\Program Files\Git. Make sure that C:\Program Files\Git\cmd is added to the environment variable path.

@rem Do not use "echo off" to not affect any child calls. @setlocal  @rem Get the abolute path to the parent directory, which is assumed to be the @rem Git installation root. @for /F "delims=" %%I in ("%~dp0..") do @set git_install_root=%%~fI @set PATH=%git_install_root%\bin;%git_install_root%\mingw\bin;%PATH%  @if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH% @if not exist "%HOME%" @set HOME=%USERPROFILE%  @curl.exe -L -s https://www.gitignore.io/api/%*

Other Clients

Clients maintained by third-party developers

Source Code Language Instructions Maintainer
gogi Go Install Cuong Manh Le
ignr Python Usage Antriksh Yadav

Tools or extensions maintained by third-party developers on other platforms

Source Code Platform Instructions Maintainer
fzf-gitignore Neovim Install Filip Szyma?ski
gi Visual Studio Code Install Hasit Mistry
helm-gitignore GNU Emacs Install Juan Placencia

Use Command Line

After the function is created, the gi command will give you command line access to the gitignore.io API. . Note: Use gig if you are on Windows

Preview

Show output on the command line. Note: Use gig if you are on Windows

$ gi linux,java # Created by https://www.gitignore.io  ### Linux ### .* !.gitignore *~  ### Java ### *.class # Package Files # *.jar *.war *.ear

Global

Append Operating System and IDE settings to global .gitignore. Note: Use gig if you are on Windows

$ gi linux,eclipse >> ~/.gitignore_global

Project

Appending Programming Langauge settings to your projects .gitignore. Note: Use gig if you are on Windows

$ gi java,python >> .gitignore

List

List displays a list of all of the currently support gitignore.io templates. Note: Use gig if you are on Windows

$ gi list actionscript,ada,agda,android,appceleratortitanium,appcode,archives, archlinuxpackages,autotools,bancha,basercms,bower,bricxcc,c,c++,cakephp, cfwheels,chefcookbook,clojure,cloud9,cmake,codeigniter,codekit,commonlisp, compass,composer,concrete5,coq,cvs,dart,darteditor,delphi,django,dotsettings, dreamweaver,drupal,eagle,eclipse,elasticbeanstalk,elisp,elixir,emacs,ensime, episerver,erlang,espresso,expressionengine,fancy,finale,flexbuilder,forcedotcom, freepascal,fuelphp,gcov,go,gradle,grails,gwt,haskell,intellij,java,jboss,jekyll, jetbrains,joe,joomla,justcode,jython,kate,kdevelop4,kohana,komodoedit,laravel, latex,lazarus,leiningen,lemonstand,lilypond,linux,lithium,magento,matlab,maven, mercurial,meteor,modelsim,monodevelop,nanoc,netbeans,node,notepadpp,objective-c, ocaml,opa,opencart,openfoam,oracleforms,osx,perl,ph7cms,phpstorm,playframework, plone,prestashop,processing,pycharm,python,qooxdoo,qt,quartus2,r,rails,redcar, rhodesrhomobile,ros,ruby,rubymine,rubymotion,sass,sbt,scala,scrivener,sdcc, seamgen,senchatouch,silverstripe,sketchup,stella,sublimetext,sugarcrm,svn, symfony,symfony2,symphonycms,tags,target3001,tarmainstallmate,tasm,tex,textmate, textpattern,turbogears2,typo3,unity,vagrant,vim,virtualenv,visualstudio,vvvv, waf,wakanda,webmethods,webstorm,windows,wordpress,xamarinstudio,xcode,xilinxise, yeoman,yii,zendframework

Advanced Command Line Improvements

Advanced command line suggestions are tracked on the gitignore.io wiki.

Design

Asset Description
gitignore.io horizontal logo
gitignore.io square logo

Install Locally

Requirements

Instructions

$ git clone --recursive [email protected]:joeblau/gitignore.io.git $ cd gitignore.io/ $ vapor build $ vapor run

Companies

Here are some companies that use gitignore.io:

About

.gitignore.io is a web service designed to help you create .gitignore files for your Git repositories. The site has a graphical and command line method of creating a .gitignore for your operating system, programming language, or IDE.

Resources

The RecyclerView widget is a more advanced and flexible version of ListView. This widget is a container for displaying large data sets that can be scrolled very efficiently by maintaining a limited number of views. Use the RecyclerView widget when you have data collections whose elements change at runtime based on user action or network events.

This project is modified SwipeList to work with RecyclerView.

A robust, powerful, and very simple ORM android database library with annotation processing.

The library eliminates the need for writing most SQL statements, writing ContentValues for every table, converting cursors into models, and so much more.

Let DBFlow make SQL code flow like a steady stream so you can focus on your complex problem and not be hindered by repetitive code writing.

What sets this library apart: baked in support for multiple databases seamlessly, powerful and fluid builder logic in expressing SQL statements, annotation processing to enable blistering speed, ModelContainer classes that enable direct to database parsing for data such as JSON, and rich interface classes that enable powerful flexibility.

RoundedLetterView looks like the one in Android 5.0 Contacts app.

Attributes:

  • titleText - The text in the first row.
  • titleSize - The size of the first row text.
  • titleColor - The color of the first row text.
  • backgroundColorValue - the color between the circle and the stroke.

ObservableScrollView is an Android library to observe scroll events on scrollable views.

It's easy to interact with the Toolbar introduced in Android 5.0 Lollipop and may be helpful to implement look and feel of Material Design apps.

AutoFitTextView is a TextView that automatically fit its font and line count based on its available size and content.

Allows to perform various simple operations on bitmaps via JNI , while also providing some protection against OOM using the native Java environment on Android.

Features:

  • store/restore bitmaps to/from JNI.
  • rotate CW/CCW 90, 180, 270 degrees.
  • crop image
  • scale image using either "Nearest-Neighbor" algorithm or "Bilinear-Interpolation" algorithm.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes