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
# SOURCE: https://unix.stackexchange.com/a/139381/454027 | |
while IFS= read -r -d '' -u 9 | |
do | |
echo "Filename is '$REPLY'" | |
done 9< <( find "PATH" -regex ".*\.EXTENSION" -exec printf '%s\0' {} + ) |
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
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(Exemplo2()); | |
} | |
class Exemplo2 extends StatefulWidget { | |
@override | |
_Exemplo2State createState() => _Exemplo2State(); | |
} |
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
def convert_iso_8859_1_to_utf8_a(text) | |
text.force_encoding('iso-8859-1').encode('utf-8') | |
end | |
def convert_iso_8859_1_to_utf8_b(text) | |
text.encode('utf-8').force_encoding('iso-8859-1') | |
end | |
def convert_iso_8859_1_to_utf8_c(text) | |
text.force_encoding('utf-8').encode('iso-8859-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
#!/usr/bin/env bash | |
jadlog_url="http://jadlog.com/siteInstitucional/tracking_dev.jad?cte=$1" | |
user_agent="Mozilla/5.0 (X11; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0" | |
src=$(curl -A "$user_agent" -s "$jadlog_url") | |
headers=$(echo "$src" | pup 'thead tr th text{}') | |
data=$(echo "$src" | pup 'tbody tr:last-of-type td text{}') | |
IFS=$'\n' read -d "" -ra arr_h <<< "$headers" | |
IFS=$'\n' read -d "" -ra arr_d <<< "$data" |
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
#!/usr/bin/env bash | |
# STARTING POINT: https://gist.github.com/sebble/e5af3d03700bfd31c62054488bfe8d4f | |
## Add username | |
user="USERNAME" | |
starred_url="https://api.github.com/users/$user/starred?per_page=100" | |
# With authentication |
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
#!/usr/bin/env python | |
import os | |
import csv | |
import urllib | |
import wget | |
with open("./textbooks.csv", newline="") as csvfile: | |
textbooks = csv.DictReader(csvfile) |
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
#!/usr/bin/env bash | |
DownloadFlag=false | |
DownloadFromFileFlag=false | |
ListFlag=false | |
ArtDir="./ArtIC" | |
ArtDirPD="$ArtDir/PD" | |
ArtDirNPD="$ArtDir/NPD" | |
ListName="" |