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
{ | |
"estados": [ | |
{ | |
"sigla": "AC", | |
"nome": "Acre", | |
"cidades": [ | |
"Acrelândia", | |
"Assis Brasil", | |
"Brasiléia", | |
"Bujari", |
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
# case insensitive complete | |
autoload -Uz compinit && compinit | |
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' | |
# nvm | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | |
# prompt | |
custom_prompt() { |
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
# easily create the file with this gist content using the following curl command | |
# curl https://gist.githubusercontent.com/hesenger/78683b600cc90687ab0a953ccbd7d934/raw > Makefile | |
help: | |
@cat Makefile | |
build: | |
@dotnet build | |
run: |
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
-- Additional Plugins | |
lvim.plugins = { | |
{"folke/tokyonight.nvim"}, | |
{ | |
"folke/trouble.nvim", | |
cmd = "TroubleToggle", | |
}, | |
{ "sbdchd/neoformat" }, | |
{ "github/copilot.vim" }, | |
{ "f-person/git-blame.nvim" }, |
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
# This is a sample build configuration for JavaScript. | |
# Check our guides at https://confluence.atlassian.com/x/14UWN for more examples. | |
# Only use spaces to indent your .yml configuration. | |
# ----- | |
# You can specify a custom docker image from Docker Hub as your build environment. | |
image: node:10.15.3 | |
pipelines: | |
branches: | |
test: #name of your test branch |
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
package br.com.loumar.vendas.utils; | |
import android.content.Context; | |
import android.util.Log; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.ArrayAdapter; | |
import android.widget.TextView; |
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
package br.com.vendas; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.Button; | |
import android.widget.EditText; | |
import android.widget.TextView; | |
import androidx.appcompat.app.AppCompatActivity; |
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
public class AutoPersist<T> : IEnumerable<T> | |
{ | |
private readonly object _lock = new object(); | |
private readonly List<T> _list; | |
private readonly string _path; | |
public AutoPersist() | |
{ | |
_path = FormatPath(); |
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
public class OnlyRootContractResolver : CamelCasePropertyNamesContractResolver | |
{ | |
protected Type _root; | |
protected List<string> _included; | |
public OnlyRootContractResolver(Type root, IEnumerable<string> included) | |
{ | |
_root = root; | |
_included = new List<string>(included ?? new string[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
(function () { | |
var trunc = function (vl) { | |
return Math.trunc(vl * 100) / 100; | |
}; | |
var func = function (valor, parcelas) { | |
if (parcelas === 1) | |
return [valor]; | |
var integ = Math.trunc(valor * 100); |
NewerOlder