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
def remix(project_id, bearer_token): | |
url = f"https://api.lovable.dev/projects/{project_id}/remix" | |
payload = { | |
"include_history": "false", | |
} | |
headers = { | |
"Authorization": f"Bearer {bearer_token}", | |
"Content-Type": "application/json" | |
} | |
return requests.post(url, json=payload, headers=headers) |
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
// Updated by AmCan Tech: https://medium.com/avi-parshan-studios/you-will-no-longer-be-able-to-download-ebooks-from-amazon-c3a81deb6928 | |
// 0. Optional - have chrome save all your downloads to a specific folder without asking you each time (via chrome settings) | |
// 1. Log in to your Amazon account | |
// 2. Go to your Content Library > Books - https://www.amazon.com/hz/mycd/digital-console/contentlist/booksAll/dateDsc/ | |
// 3. Go to page 1 | |
// 4. Run the script in the dev console and wait a few seconds for it to start | |
(async function () { | |
// Close the notification if it appears | |
function closeNotification() { | |
const notifClose = document.querySelector("span#notification-close"); |
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
// 1. Log in to your Amazon account | |
// 2. Go to your Content Library > Books - https://www.amazon.com/hz/mycd/digital-console/contentlist/booksAll/dateDsc/ | |
// 3. Open your browser's Javascript console | |
// 4. For each page of books, paste this script into the console | |
(async function () { | |
// Close the notification if it appears | |
function closeNotification() { | |
const notifClose = document.querySelector("span#notification-close"); | |
if (notifClose) { |
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 itertools | |
import string | |
import sys | |
import textwrap | |
""" | |
Run this script in a shell with the ciphertext to decode on STDIN | |
""" | |
#################################################################################################### |
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
# script to ask user for the txt file name and then clean the URLS and save in new txt file | |
def main(): | |
# ask user for the txt file name | |
file_name = input("Enter the txt file name: ") | |
parse_file(file_name) | |
def parse_file(file_name): | |
with open(file_name, "r") as file: | |
# read the file |
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 | |
# turn on LED | |
echo 1 | sudo tee /sys/class/leds/ACT/brightness | |
# turn off LED | |
echo 0 | sudo tee /sys/class/leds/ACT/brightness | |
# heatbeat blink | |
echo heartbeat | sudo tee /sys/class/leds/ACT/trigger |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 os | |
from PyPDF2 import PdfReader, PdfWriter | |
def main(): | |
mark_it_up("watermark.pdf", "/source/", "/output/") | |
def mark_it_up(watermark_file, pdf_folder, output_folder): | |
""" |
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
% tail length | |
len([],A,A). %base | |
len([_|T],A,R) :- | |
A1 is A + 1, | |
len(T, A1, R). | |
% params to send | |
len(L,Res):- len(L,0, Res). |
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
0 | |
00 | |
01 | |
02 | |
03 | |
04 | |
05 | |
06 | |
07 | |
08 |
NewerOlder