Turn this cute YouTube cat video into a briefer-but-still-cute GIF:
- youtube-dl is a command-line tool for quickly downloading video files from a given YouTube URL
'use strict'; | |
const puppeteer = require('puppeteer'); | |
const createCsvWriter = require('csv-writer').createObjectCsvWriter; | |
async function main() { | |
var entries=[];//store all the food pantry data; | |
//headless so i can see what this badboy is doing | |
const browser = await puppeteer.launch({ |
perl -wnE'say /<add a regex here>/g' | |
example: docker inspect --format='{{index .RepoDigests 0}}' superCoolTag | perl -wnE'say /sha256.*/g' | |
this would output only the sha256 of the image. |
Turn this cute YouTube cat video into a briefer-but-still-cute GIF:
alias youtube='vlc -I rc --vout none --quiet' | |
#example usage | |
# youtube https://www.youtube.com/watch?v=Rl4RFIPLrew |
//this uses node version 16.15.0 | |
import { WebClient } from '@slack/web-api'; | |
// An access token (from your Slack app or custom integration - xoxp, xoxb) | |
const token = "SuperSecretToken"; | |
const web = new WebClient(token); | |
// This argument can be a channel ID, a DM ID, a MPDM ID, or a group ID |
var allowPaste = function(e){ | |
e.stopImmediatePropagation(); | |
return true; | |
}; | |
document.addEventListener('paste', allowPaste, true); |
import sys | |
import base64 | |
import requests | |
from bs4 import BeautifulSoup | |
def convert_images_to_base64(input_file, output_file): | |
with open(input_file, 'r', encoding='utf-8') as f: | |
html_content = f.read() | |
soup = BeautifulSoup(html_content, 'html.parser') |
const fs = require('fs'); | |
const request = require('request'); | |
const { JSDOM } = require('jsdom'); | |
const $ = require('jquery'); | |
const pretty = require('pretty'); | |
function convertImagesToBase64(inputFile, outputFile) { | |
fs.readFile(inputFile, 'utf8', (err, htmlContent) => { | |
if (err) throw err; |
GitHub Actions makes it easy to automate all your software workflows, now with world-class CI/CD. Build, test, and deploy your code right from GitHub. Make code reviews, branch management, and issue triaging work the way you want.
With all this feature, it's still missing some feature like making a request before a the workflow is created.
import discord | |
from discord.ext import commands | |
# Set up the bot prefix | |
prefix = "!" | |
# Create a bot instance with intents | |
intents = discord.Intents.all() | |
intents.typing = False # Disable typing event (optional) | |
intents.presences = False # Disable presence event (optional) |