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
public class CalculandoGridFlexivel { | |
public static final DecimalFormat df = new DecimalFormat("#.####"); | |
public static void main(String[] args) { | |
float width = 1080; | |
float espacamento = 10; | |
float qtdTotaisDeColunas = 8; | |
float tamanhoDaMenorColuna = (width / qtdTotaisDeColunas) - (espacamento * 2); | |
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
var arr = [], hexa; | |
for (i = 0; i < 255; i += 51) { | |
hexa = "#ff" + Number(i).toString(16) + "00"; | |
console.log(hexa); | |
arr.push(hexa); | |
} | |
for (i = 255; i > 0; i -= 51) { | |
hexa = "#" + Number(i).toString(16) + "ff00"; | |
console.log(hexa); |
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
CDS pra pegar depois. | |
http://pt.wikipedia.org/wiki/Anexo:Lista_dos_100_maiores_discos_da_m%C3%BAsica_brasileira_pela_Rolling_Stone_Brasil | |
http://pt.wikipedia.org/wiki/L%C3%B3ki%3F | |
http://pt.wikipedia.org/wiki/Arnaldo_Baptista |
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
CDS pra pegar depois. | |
http://pt.wikipedia.org/wiki/Anexo:Lista_dos_100_maiores_discos_da_m%C3%BAsica_brasileira_pela_Rolling_Stone_Brasil | |
http://pt.wikipedia.org/wiki/L%C3%B3ki%3F | |
http://pt.wikipedia.org/wiki/Arnaldo_Baptista | |
https://pt.wikipedia.org/wiki/Tropicalia_ou_Panis_et_Circencis |
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
exiftool '-FileName<DateTimeOriginal' -d "%Y-%m-%d %H.%M.%S%%-c.%%e" dir/*.jpg # jpg | |
exiftool '-FileName<CreateDate' -d "%Y-%m-%d %H.%M.%S%%-c.%%e" ./*.mp4 # mp4 | |
for f in *; do mv "$f" "`echo $f | tr "[:upper:]" "[:lower:]"`"; done #rename files to lowercase | |
youtube-dl https://www.youtube.com/playlist?list=ListID --output './%(autonumber)s-%(title)s.%(ext)s' | |
# Download all images from a page | |
wget http://whatever.com/ -p -A .jpg,.jpeg,.png -H -nd |
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
# Solução rápida. | |
(1..100).each do |counter| | |
nama_team = "#{'Nama' if counter % 5 == 0 } #{'Team' if counter % 7 == 0 }".strip | |
nama_team = counter if nama_team.empty? | |
puts nama_team | |
end | |
# Solução mais elegante | |
# Explicação: caso um novo multiplo precise ser adicionado, tanto para 'Nama' quanto para 'Team', | |
# será necessário apenas adicionar o novo multiplo ao Array correspondente. |
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
# Commands are executed with your phone in download mode | |
$ heimdall detect | |
$ heimdall print-pit | |
$ heimdall download-pit --output mypit.pit --verbose --stdout-errors --usb-log-level debug --no-reboot | |
# Dentro de uma pasta | |
# CSC_XENJV5.tar & PDA_XWJW1_Sbl.tar & PHONE_XXJVT.tar extraídos | |
arthur ~/xxjvt |
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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "ctrl+alt+cmd+down", | |
"command": "scrollPageDown", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "cmd+pagedown", | |
"command": "-scrollPageDown", |
OlderNewer