This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parse_firebase_branch() { | |
cat .firebaserc 2>/dev/null | grep default | sed 's/^.\{16\}//' | sed 's/.$//' | |
} | |
export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_firebase_branch)\[\033[00m\] $ " |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<resources> | |
<public name="lib_app_name" type="string"/> | |
</resources> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@file:JvmName("ClassName") | |
package org.file | |
class MyUtils | |
fun getLocale() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
implements ('com.example.android:my-lib:1.0.0@aar'){ | |
transitive=true | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@JvmOverloads | |
fun getStops( | |
latitude: Double, | |
longitude: Double = 0.0, | |
radiusInMeters: Int = 100 | |
) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void getStops(double latitude, double longitude, int radiusInMeters) | |
void getStops(double latitude, double longitude) | |
void getStops(double latitude) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private lateinit var keyPair: KeyPair | |
private fun generateKey() { | |
val startDate = GregorianCalendar() | |
val endDate = GregorianCalendar() | |
endDate.add(Calendar.YEAR, 1) | |
val keyPairGenerator: KeyPairGenerator = KeyPairGenerator.getInstance(KeyProperties.KEY_ALGORITHM_RSA, ANDROID_KEYSTORE) | |
val parameterSpec: KeyGenParameterSpec = KeyGenParameterSpec.Builder(KEY_ALIAS, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function copyPortfolioValue() { | |
var rangeToLog = 'Investment!B71:F71';// this is where the data tocopy is located | |
var sheetToLogTo = 'Value';// this is the name of new sheet we want to copy to | |
var ss = SpreadsheetApp.getActive();// getting th spreadsheetvar | |
valuesToLog = ss.getRange(rangeToLog).getValues();// getting the desired data | |
var logSheet = ss.getSheetByName(sheetToLogTo);// getting the sheet to copy | |
if (!logSheet) {// just in case you didn’t createit | |
logSheet = ss.insertSheet(sheetToLogTo); | |
} | |
var rowToAppend = valuesToLog.reduce(function (a, b) { return a.concat(b); })// format data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# Extract the ticket's id from the branch name and add it | |
# to the commit message. Adapted from: | |
# https://andy-carter.com/blog/automating-git-commit-messages-with-git-hooks | |
# Parameters are explained here: | |
# https://git-scm.com/docs/githooks#_prepare_commit_msg | |
import re | |
import sys |