Skip to content

Instantly share code, notes, and snippets.

View biliboss's full-sized avatar

Gabriel Fonseca biliboss

  • DevMagic
  • Praia Grande, São Paulo - Brazil
View GitHub Profile
@biliboss
biliboss / Type ORM Query
Created September 22, 2021 19:22
NestJS Cheatsheet
> repository.find({property: value})
@biliboss
biliboss / dax
Created June 18, 2021 22:08
Power BI | DAX Date Table
_Date =
VAR BaseCalendar = CALENDARAUTO()
RETURN
GENERATE (
BaseCalendar,
VAR BaseDate = [Date]
VAR DayNumber = Right(CONCATENATE("00",DAY ( BaseDate )),2)
VAR YearDate = YEAR ( BaseDate )
VAR MonthNumber = Right(CONCATENATE("00",MONTH ( BaseDate )),2)
VAR JoinDate = CONCATENATE(01,CONCATENATE("/",CONCATENATE(MonthNumber,CONCATENATE("/",2018))))
@biliboss
biliboss / error_log_1.log
Created June 17, 2020 16:44
Mog Snippets
06/17 13:40:32: Launching 'app' on Android 10 - Nexus 5 API 29.
$ adb shell am start -n "com.brainboost.MOG/com.brainboost.brainapp.IntroActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 8058 on device 'Android_10_-_Nexus_5_API_29 [emulator-5554]'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/.brainboost.MO: Not late-enabling -Xcheck:jni (already on)
E/.brainboost.MO: Unknown bits set in runtime_flags: 0x8000
W/.brainboost.MO: Unexpected CPU variant for X86 using defaults: x86
I/.brainboost.MO: The ClassLoaderContext is a special shared library.
D/libEGL: Emulator has host GPU support, qemu.gles is set to 1.
@biliboss
biliboss / chai-should-assert-null
Created January 20, 2018 12:34
NodeJS Tests Snippets
// Use chai should to assert null
const should = chai.should();
should.exist(any);
@biliboss
biliboss / Request.json
Created July 10, 2017 11:15
Contele GE API
https://contele.atlassian.net/browse/HDC-272
@biliboss
biliboss / gist:81a250a6bb803a94bc2a
Last active January 13, 2016 23:13
bitrise-contele
#!/bin/sh
chmod +x gradlew
echo "commit message:" $GIT_CLONE_COMMIT_MESSAGE_BODY > ./release_notes.txt
@biliboss
biliboss / git-merged-remove.sh
Last active November 28, 2016 16:48 — forked from macmladen/git-merged-remove.sh
Remove merged remote branches in repository.
#!/bin/sh
# Taken from and modified
# http://devblog.springest.com/a-script-to-remove-old-git-branches/
echo "The following remote branches are fully merged into master and will be removed:"
git branch -r --merged master | sed 's/ *origin\///' | grep -v 'master$'
read -p "Continue (y/n)?"
if [ "$REPLY" == "y" ] ; then # Remove remote fully merged branches
git branch -r --merged master | sed 's/ *origin\///' | grep -v 'master$' | xargs -I % git push origin --delete %
@biliboss
biliboss / devtools.md
Last active August 29, 2015 14:17
Dev Tools
@biliboss
biliboss / android-starting-libs.md
Last active August 29, 2015 14:16
Android Starting Lib
@biliboss
biliboss / requisitos_android_na_pratca.md
Last active August 29, 2015 14:15
Requisitos Android na Pratica