This file contains 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\] $ " |
This file contains 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
;WITH USER_BY_TAG | |
AS | |
( | |
SELECT | |
ROW_NUMBER() OVER(ORDER BY COUNT(*) DESC) Rank, | |
u.Location, | |
COUNT(*) AS UpVotes | |
FROM Tags t | |
INNER JOIN PostTags pt ON pt.TagId = t.id |
This file contains 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
#!/bin/sh | |
read -p "Have the feature been tested? (y/N):" answer | |
if [[ "$answer" != "y" ]]; then | |
exit 1 | |
fi | |
read -p "Have you updated your Jira? (y/N):" answer | |
if [[ "$answer" != "y" ]]; then | |
exit 1 | |
fi | |
read -p "Have you created a test version? (y/N):" answer |
This file contains 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
#!/bin/sh | |
name_of_branch=$(git branch | grep "*" | sed "s/\* //") | |
if [[ $name_of_branch == "master" ]]; then | |
read -p "Branch successfully merged on master. Please, specify tag version and click enter: " version | |
echo Creating tag with version "$version" | |
git tag -a v$version -m "$version" | |
fi |
This file contains 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
#!/bin/sh | |
echo "Running detekt" | |
./gradlew detektCheck | |
result=$? | |
if [ "$result" = 0 ] ; then | |
echo "Detekt found no problems" | |
exit 0 | |
else |
This file contains 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
#!/bin/sh | |
echo "Running detekt" | |
./gradlew detektCheck | |
result=$? | |
if [ "$result" = 0 ] ; then | |
echo "Detekt found no problems" | |
exit 0 | |
else |
This file contains 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
#!/bin/bash | |
command="./gradlew clean test" | |
echo "Executing tests before commit" | |
$command | |
result=$? | |
if [ "$result" -ne 0 ]; then | |
echo "Failed execution of tests" | |
exit 1 | |
fi | |
exit 0 |
This file contains 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
byte[] keyStart = getSecretKey().getBytes(); |
This file contains 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
Java_com_example_exampleApp_ExampleClass_getSecretKey( JNIEnv* env, | |
jobject thiz ) | |
{ | |
return (*env)->NewStringUTF(env, "mySecretKey"."); | |
} |
This file contains 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
static { | |
System.loadLibrary("library-name"); | |
} | |
public native String getSecretKey(); |