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
#!/bin/bash | |
d=0.5 | |
if [ $# -ge 2 ]; then | |
echo "2parms $1 $2" | |
d=$2 | |
fi | |
rm -f /tmp/pp.gp | |
touch /tmp/pp.gp |
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
01 46°05’58" 5°20’56" E AIN | |
02 49°33’34" 3°33’30" E AISNE | |
03 46°23’37" 3°11’18" E ALLIER | |
04 44°06’22" 6°14’38" E ALPES-DE-HAUTEPROVENCE | |
05 44°39’49" 6°15’47" E HAUTES-ALPES | |
06 43°56’15" 7°06’59" E ALPES-MARITIMES | |
07 44°45’06" 4°25’29" E ARDECHE | |
08 49°36’56" 4°38’27" E ARDENNES | |
09 42°55’15" 1°30’14" E ARIEGE | |
10 48°18’16" 4°09’42" E AUBE |
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
import termuxgui as tg | |
import sys | |
import time | |
import threading | |
import os | |
import datetime | |
import calendar | |
with tg.Connection() as c: | |
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
import sys | |
def getText(l): | |
l=l.replace('\\citep','') | |
l=l.replace('\\cite','') | |
return l | |
with open(sys.argv[1],'rb') as f : ls = f.readlines() | |
empty=False |
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
import mmap | |
import torch | |
import json | |
import os | |
from huggingface_hub import hf_hub_download | |
def load_file(filename, device): | |
with open(filename, mode="r", encoding="utf8") as file_obj: | |
with mmap.mmap(file_obj.fileno(), length=0, access=mmap.ACCESS_READ) as m: |
OlderNewer