Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| package examples; | |
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| /** | |
| * This class counts the number of source code lines by excluding comments, in a Java file | |
| * The pseudocode is as below | |
| * | |
| * Initial: Set count = 0, commentBegan = false |
| #!/bin/bash | |
| echo "=== List of available, **shared** Schemes ===" | |
| set -x | |
| # if you use a Workspace (.xcworkspace) file | |
| xcodebuild -workspace $BITRISE_PROJECT_PATH -list | |
| # or if you use a Project file (.xcodeproj) instead | |
| xcodebuild -project $BITRISE_PROJECT_PATH -list | |
| set +x | |
| echo "=============================================" |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| public class App extends Application { | |
| @Override | |
| public void onCreate() { | |
| super.onCreate(); | |
| Timber.plant(BuildConfig.DEBUG | |
| ? new Timber.DebugTree() | |
| : new CrashReportingTree()); |
| git branch | grep -v "master\|develop" | xargs git branch -D |
| <?xml version="1.0" encoding="utf-8"?> | |
| <!-- | |
| Copyright 2018 Google Inc. | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 |
| class Morse | |
| def posibilities(signals) | |
| signals.include?('?') ? check_wildcard(signals) : morses["#{signals}"] | |
| end | |
| def check_wildcard(signals) | |
| length = signals.split('').length | |
| values = [] | |
| if length.eql?(1) | |
| values = ["E", "T"] |
| static String timeAgoSinceDate(String dateString, {bool numericDates = true}) { | |
| DateTime date = DateTime.parse(dateString); | |
| final date2 = DateTime.now(); | |
| final difference = date2.difference(date); | |
| if ((difference.inDays / 365).floor() >= 2) { | |
| return '${(difference.inDays / 365).floor()} years ago'; | |
| } else if ((difference.inDays / 365).floor() >= 1) { | |
| return (numericDates) ? '1 year ago' : 'Last year'; | |
| } else if ((difference.inDays / 30).floor() >= 2) { |
| import android.content.Context | |
| import android.graphics.Canvas | |
| import android.graphics.Color | |
| import android.graphics.Paint | |
| import android.util.AttributeSet | |
| import android.view.View | |
| private const val N = 16 | |
| private const val PERIOD1 = -10000.0 | |
| private const val PERIOD2 = -500.0 |