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 zipfile | |
import os | |
import tempfile | |
import re | |
from datetime import datetime | |
import time | |
import argparse | |
def extract_txt_from_zip(zip_file, start_date, end_date): | |
try: |
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
""" | |
ip_qrcode_generator.py | |
This script retrieves the local machine’s IP address and generates a QR code image encoding that address, | |
optionally wrapped with a user-defined prefix and/or suffix (for example, “http://” before or “:8080” after). | |
It saves the resulting QR code as a PNG file (default “ip_qrcode.png”) and attempts to display it. | |
Usage: | |
python ip_qrcode_generator.py [--prefix PREFIX] [--suffix SUFFIX] [--output OUTPUT_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
import subprocess | |
from rich.console import Console | |
from rich.markup import escape | |
from rich.prompt import Prompt | |
# Initialize Rich console | |
console = Console() | |
def run_xrandr_command(command): | |
""" |
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
Flip com os vídeos produzidos: https://flip.com/groups/15122352/topics/38739344/responses | |
Produções no Scratch: | |
✅ https://scratch.mit.edu/projects/913286577 | |
✅ https://scratch.mit.edu/projects/913312591/ | |
✅ https://scratch.mit.edu/projects/913252472/ | |
✅ https://scratch.mit.edu/projects/913249385 | |
✅ https://scratch.mit.edu/projects/913313807 | |
✅ https://scratch.mit.edu/projects/913246079 |
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/sh | |
DIR="tmp_"$$ | |
JAR=`echo $1 | tr '.' ' ' | awk '{ print $1 }'` | |
rm -rf $JAR.jar | |
mkdir $DIR | |
cp $1 $DIR | |
cd $DIR | |
echo "** Compiling java file..." | |
javac -d . -g $1 | |
echo "** Creating temporary jar..." |
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/python | |
# -*- coding: utf-8 -*- | |
from urllib import urlencode | |
import httplib | |
import sys | |
api_url="u.nu" | |
var = urlencode({'url':sys.argv[1]}) | |
args = "/unu-api-simple?%s" % (var) |
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/python | |
import sys | |
import subprocess | |
def usage(): | |
return " \n Misssing config file, you must create a file called ~/.blocklist-dd and insert which device dd should avoid \n\n \ | |
Ex: \n \ | |
$ echo \"/dev/sda\" > ~/.blocklist-dd \n \ | |
$ echo \"/dev/sdb\" >> ~/.blocklist-dd \n \ |
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/sh | |
if [ $# -ne 2 ] | |
then | |
echo "./split.sh <number of files> <filename>" | |
exit | |
fi | |
size=`du $2 | awk '{ print $1 }'` | |
parts=`expr $size \/ $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
## app.R ## | |
server <- function(input, output) { | |
output$distPlot <- renderPlot({ | |
hist(rnorm(input$obs), col = 'darkgray', border = 'white') | |
}) | |
} | |
ui <- fluidPage( | |
sidebarLayout( | |
sidebarPanel( |
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
Votre enfant ne va pas avoir classe [du 26 Octobre au 04 Novembre]. L’ecole va reprendre [le lundi 05 Novembre] | |
Ce sont les conges. Votre enfant doit se reposer et jouer mais egalement faire des exercices pour mieux comprendre ce qu’on a fait en classe | |
La semaine prochaine il y aura composition. Votre enfant doit etudier pour avoir un bon resultat. Encourage le. | |
[Le Jeudi 06 Decembre] votre enfant aura composition. Demandez lui de bien relire ses cours. | |
[Le Mardi 29 Janvier] votre enfant aura composition. Demandez lui de bien relire ses cours. |
NewerOlder