Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
xcd1mxuh65y8aa9ewddcg0gcz3spm99u3pmwrwsqjvlvl4y797ryqvvsys4lmj
@petrklus
petrklus / listGoogleDriveSharedDocuments.js
Created April 19, 2021 11:57 — forked from JavierCane/listGoogleDriveSharedDocuments.js
Google Spreadsheet script that lists all the shared documents inside a specified folder and all its subfolders recursively. Skips out the documents shared internally (with specified email addresses)
function start() {
const sheet = SpreadsheetApp.getActiveSheet();
sheet.appendRow(["Name", "Sharing Access", "Sharing Permission", "Get Editors", "Get Viewers", "Date", "Size", "URL", "Download", "Description", "Type"]);
const folder = DriveApp.getRootFolder();
recursiveListSharedFiles(folder, sheet);
}
function recursiveListSharedFiles(folder, sheet) {
@petrklus
petrklus / sort_and_resize.py
Created October 7, 2016 18:36
Downsize all JPEG photos and sort according to portrait/landscape orientation
from PIL import Image
import glob
import os
files = glob.glob("source_folder/*.jpg")
output_size = 2048, 2048
for filename in files:
@petrklus
petrklus / rgb_to_kelvin.py
Last active October 21, 2024 06:05
Kelvin to RGB in python
"""
Based on: http://www.tannerhelland.com/4435/convert-temperature-rgb-algorithm-code/
Comments resceived: https://gist.github.com/petrklus/b1f427accdf7438606a6
Original pseudo code:
Set Temperature = Temperature \ 100
Calculate Red:
If Temperature <= 66 Then