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
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| // Note that the Halton bases must consist of coprime integers. | |
| // Learn more about the Halton sequence: https://en.wikipedia.org/wiki/Halton_sequence | |
| // Learn more about low discrepancy sequences: https://en.wikipedia.org/wiki/Low-discrepancy_sequence | |
| // Learn more about coprime numbers: https://en.wikipedia.org/wiki/Coprime_integers |
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
| """ | |
| The most atomic way to train and run inference for a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
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
| library(microdatasus) | |
| library(tidyverse) | |
| estados<- c("AC","AL","AM", "AP", "BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB", "PR","PE","PI","RJ","RS","RN","RO","RR","SC","SP","SE","TO") | |
| download.file("ftp://ftp.datasus.gov.br/dissemin/publicos/SIHSUS/200801_/Doc/IT_SIHSUS_1603.pdf", destfile = "documentacao.pdf", mode= "wb", method = "libcurl" ) | |
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
| .vscode/ |
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
| #!/bin/bash | |
| function get_short_log() { | |
| echo "function get_short_log - Number of arguments: $#" | |
| for i in $(seq 1 $#); do | |
| echo "Argument $i: ${!i}" | |
| done | |
| suppress_whitespace_flag="" | |
| if [[ " $* " == *" -w "* ]]; then |
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
| #!/bin/bash | |
| function get_short_log() { | |
| sanitized_commits=$(sed 's/\.\././g' <<< "$1") | |
| commit1=$(echo "$sanitized_commits" | cut -d '.' -f 1) | |
| commit2=$(echo "$sanitized_commits" | cut -d '.' -f 2) | |
| echo -e "==============================" | |
| echo -e "Short log between $commit1 and $commit2:\n" | |
| git shortlog --group=author $commit1..$commit2 |
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
| #!/bin/bash | |
| function get_file_url() { | |
| repourl=$(echo "$(git config --get remote.origin.url)" | sed -e 's/git@/https:\/\//' -e 's/\.git$//') | |
| branch=$(git branch --show-current) | |
| relative_file_path=$(echo $1 | sed -e 's/\\/\//g') | |
| echo $repourl/blob/$branch/$relative_file_path | |
| } |
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
| #!/bin/bash | |
| function get_commit_url() { | |
| echo "$(git config --get remote.origin.url)" | \ | |
| sed -e 's/git@/https:\/\//' -e 's/\.git$//' \ | |
| | awk -v sha="$(git rev-parse $1)" '{print $0"/commit/"sha}' | |
| } |
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
| #!/bin/bash | |
| # A script to inspect the current Git repository status and display relevant information. | |
| file_name="files-in-git" | |
| old_file="${file_name}_old.txt" | |
| new_file="${file_name}.txt" | |
| function generate_git_file_list() { | |
| ls -1 -R .git > $1 | |
| } |
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
| custom_scripts/ | |
| .vscode/ | |
| pyproject.toml | |
| poetry.lock | |
| *.equi | |
| *.cst |
NewerOlder