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
| /** | |
| * Converts spaces to tab on all files within a folder, recursively. | |
| * Rodrigo Dias <rcesar@gmail.com> | |
| * Friday, December 13, 2024. | |
| */ | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const skipDir = ['.git', 'node_modules']; |
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
| # Setting preferences: | |
| # "java.settings.url": "/home/rodrigo/apps/vscode.java.prefs", | |
| # https://github.com/redhat-developer/vscode-java/wiki/Settings-Global-Preferences | |
| # | |
| # General reference: | |
| # https://git.eclipse.org/r/plugins/gitiles/platform/eclipse.platform.debug/+/0b578a4efb6323cc3cdcdea5ef1783eaa717088f/org.eclipse.core.variables/.settings/org.eclipse.jdt.core.prefs | |
| org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=warning | |
| org.eclipse.jdt.core.compiler.problem.unusedLabel=warning | |
| org.eclipse.jdt.core.compiler.problem.unusedLocal=warning |
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
| /** | |
| * Extensões de objetos nativos | |
| * As implementações estão em src/util/func/extends.ts | |
| */ | |
| export {}; | |
| declare global { | |
| interface Array<T> { | |
| /** Checks if indexOf() !== -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
| /* https://addons.mozilla.org/en-US/firefox/addon/windows-10-dimmed/ */ | |
| /* https://www.reddit.com/r/firefox/comments/1ftnlvn/firefox_v1310/lpth76q/ */ | |
| #alltabs-button {display: none !important;} | |
| /* Revert tab throbber - for Nightly 57 as of 9/20/2017 */ | |
| .tab-throbber[busy]::before { | |
| /* https://www.reddit.com/r/FirefoxCSS/comments/1em6fzz/tab_loading_throbber_icons_removed_in_129/ */ | |
| /* Download the PNG and place it in the same folder of useChrome.css */ | |
| background-image: url('loading.png') !important; |
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
| alias l='ls --color=auto' | |
| alias la='l -a' | |
| alias ll='l -lh' | |
| alias lla='l -alh' | |
| export HISTCONTROL=ignoreboth:erasedups # https://askubuntu.com/a/15929 | |
| # https://thucnc.medium.com/how-to-show-current-git-branch-with-colors-in-bash-prompt-380d05a24745 | |
| gitbranch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \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
| # Generates the doc and deploys it to gh-pages branch, | |
| # which must be in the $GHP directory. | |
| # https://gist.github.com/rodrigocfd/3a0f3370817ec5c8c3d2ec6e516ae86b | |
| GHP=../gh-pages-winsafe # target gh-pages repo folder | |
| cargo doc # generate locally | |
| cd $GHP | |
| git rm -r . # remove previous html files |
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
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <style> | |
| .poster { | |
| padding: 2%; /* white border */ | |
| position: relative; | |
| box-sizing: border-box; | |
| display: inline-block; | |
| background-color: #fff; |
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
| type DeepReadonly<T> = | |
| T extends (infer R)[] ? DeepReadonlyArray<R> : | |
| T extends Function ? T : | |
| T extends object ? DeepReadonlyObject<T> : | |
| T; | |
| interface DeepReadonlyArray<T> extends ReadonlyArray<DeepReadonly<T>> { } | |
| type DeepReadonlyObject<T> = { | |
| readonly [P in keyof T]: DeepReadonly<T[P]>; |
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
| 'use strict'; | |
| const fs = require('fs'); | |
| const readline = require('readline'); | |
| function readLines(fileName) { | |
| return new Promise((resolve, reject) => { | |
| if (!fs.existsSync(fileName)) { | |
| return reject('File not found: ' + fileName); | |
| } |
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
| /** | |
| * Save this file and tell VSCode to use it: | |
| * "markdown.styles": ["/home/your_name/.config/Code/User/github-markdown.css"] | |
| */ | |
| body { | |
| font-family: Arial; | |
| font-size: 16px; | |
| margin-top: 18px; | |
| color: #24292e; |
NewerOlder