Skip to content

Instantly share code, notes, and snippets.

View ruffner's full-sized avatar

Matt Ruffner ruffner

  • Kentucky
View GitHub Profile
@Zebartin
Zebartin / extract_7z.py
Last active September 25, 2024 12:33
Python: extract files using 7z
import shutil
import subprocess
from pathlib import Path
def extract_file(file_path: Path, target_path: Path, password=None, remove_original=False):
if isinstance(password, str):
password = [password]
for pwd in password:
cmd = [shutil.which('7z'), 'x',
@gsluthra
gsluthra / tree_html5.html
Created August 20, 2012 07:10
Fractal Tree Generation using HTML5 Canvas and Random Numbers
<html>
<head>
<script type="text/javascript">
window.onload = draw;
function draw(){