View build.gradle
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
release { | |
debuggable false | |
minifyEnabled false | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
applicationVariants.all { variant -> | |
variant.outputs.each { output -> | |
output.outputFile = new File(output.outputFile.parent, output.outputFile.name. | |
replace("app-dev-release.apk", "App-" + versionName + "-develop.apk")) | |
output.outputFile = new File(output.outputFile.parent, output.outputFile.name. | |
replace("app-prod-release.apk", "App-" + versionName + ".apk")) |
View find_process_linux_kill.txt
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
ps -A | grep firefox | |
kill PID |
View git commands
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
https://stackoverflow.com/a/42903805 | |
Delete the most recent commit, keeping the work you've done: | |
git reset --soft HEAD~1 | |
Delete the most recent commit, destroying the work you've done: | |
git reset --hard HEAD~1 |
View netbeans.conf
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
netbeans_default_userdir="${DEFAULT_USERDIR_ROOT}/8.0.2" | |
netbeans_default_cachedir="${DEFAULT_CACHEDIR_ROOT}/8.0.2" | |
netbeans_default_options="-J-client -J-Xverify:none -J-Xss2m -J-Xms256m -J-Xmx1024m -J-XX:PermSize=128m -J-XX:MaxPermSize=1000m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true -J-Dnetbeans.logger.console=true -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:CompileThreshold=100 -J-Djava.net.preferIPv4Stack=true -J-DsvnClientAdapterFactory=commandline -J-Duser.language=en -J-Duser.region=US -J-DpreferGradle=true -J-Dplugin.manager.check.updates=false -J-Dnetbeans.extbrowser.manual_chrome_plugin_install=yes" | |
netbeans_jdkhome="C:\Java\jdk1.8.0_101" |
View Creating docker machine
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
#Powershell with admin mode | |
#https://docs.docker.com/machine/get-started/ | |
To create a new docker machine you should have a virtual switch on Hyperv Manager | |
This post helps me: https://github.com/docker/machine/issues/4328 | |
Then you can create | |
docker-machine create -d hyperv --hyperv-virtual-switch <NAME VIRTUAL SWICHT> <NEW MACHINE NAME> | |
& "C:\Program Files\Docker\Docker\Resources\bin\docker-machine.exe" env default | Invoke-Expression | |
View 07032019
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
#Introdução | |
- Dados | |
- Tipos de Informação | |
- Raster | |
- Resolução | |
- Profundidade de cor | |
- Vetorial | |
- Dimensão da informação | |
- 1D, 2D, 3D, 4D, 5D | |
- Sistema referência |
View NetworkOnlyBoundResource.kt
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
import android.content.Context | |
import io.reactivex.Flowable | |
import io.reactivex.android.schedulers.AndroidSchedulers | |
import io.reactivex.exceptions.Exceptions | |
import io.reactivex.schedulers.Schedulers | |
import retrofit2.HttpException | |
import retrofit2.Response | |
import timber.log.Timber | |
import java.io.IOException |
View build.gradle
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
buildscript { | |
ext.versionMajor = 1 | |
ext.versionMinor = 0 | |
ext.versionPatch = 0 | |
ext.generateVersionCode = { | |
return ext.minSdkVersion * 10000000 + ext.versionMajor * 10000 + ext.versionMinor * 100 + ext.versionPatch | |
} | |
ext.generateVersionName = { |
View TimeInput.js
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
import React from 'react'; | |
import { Input } from 'semantic-ui-react'; | |
class TimeInput extends React.Component { | |
state = { | |
time: '', | |
} | |
handleChange = (event, { name, value }) => { | |
value = value.replace(":", "") |
View PermissionHelper.kt
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
import android.app.Activity | |
import android.content.Context | |
import android.content.Intent | |
import android.content.pm.PackageManager | |
import android.net.Uri | |
import android.provider.Settings | |
import androidx.core.app.ActivityCompat | |
import androidx.core.content.ContextCompat | |
OlderNewer