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 flask import Flask,redirect | |
from youtube_dl import YoutubeDL | |
ydl = YoutubeDL() | |
app = Flask(__name__) | |
@app.route('/<ytid>') | |
def hello(ytid): | |
ytid = os.path.splitext(ytid)[0] |
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
mkdir backup | |
cd backup | |
cat ../YourProject.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved | jq '.object.pins[] | .repositoryURL' | xargs -n1 git clone --mirror |
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
// Corona Ampel Berlin Widget | |
// | |
// Copyright (C) 2020 by map <[email protected]> | |
// | |
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. | |
// | |
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL | |
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | |
// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER | |
// IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE |
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
// Scrapes a twitch streamers schedule and generates an ics | |
const icalToolkit = require('ical-toolkit'); | |
const axios = require('axios'); | |
const fs = require('fs'); | |
var builder = icalToolkit.createIcsFileBuilder(); | |
builder.spacers = true; //Add space in ICS file, better human reading. Default: true | |
builder.NEWLINE_CHAR = '\n'; //Newline char to use. | |
builder.throwError = false; //If true throws errors, else returns error when you do .toString() to generate the file contents. |
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
#!/usr/local/bin/python3 | |
from pydub import AudioSegment | |
from pyAudioAnalysis import audioBasicIO as aIO | |
from pyAudioAnalysis import audioSegmentation as aS | |
import sys | |
import numpy | |
from scipy.io import wavfile | |
from scipy.signal import fftconvolve | |
def usage(): |
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 pysubs2 | |
import re | |
import sys | |
from xml.sax.saxutils import escape | |
print (sys.argv[1]) | |
subs = pysubs2.load(sys.argv[1], encoding="utf-8") | |
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
AVTPersonalAnimoji *memoji =[ASPersonalAnimoji personalAnimoji]; | |
[memoji setPreset:[AVTPreset presetWithCategory:5 identifier:@"rectangle"] forCategory:2]; | |
[memoji setPreset:[AVTPreset presetWithCategory:2 identifier:@"horseshoe_ducktail"] forCategory:2]; | |
[memoji setPreset:[AVTPreset presetWithCategory:1 identifier:@"straight_short_back"] forCategory:1]; | |
self.avatarInstance = (AVTAvatarInstance *)memoji; | |
/* | |
Categories: | |
1: Hair |
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
function Twitter_RSS() { | |
return; | |
} | |
function doGet(e) { | |
var widgetID = e.queryString? e.queryString : "ERROR_NO_ID_FOUND"; | |
var cache = CacheService.getPublicCache(); | |
var id = "Twitter" + widgetID; | |
var rss = cache.get(id); |
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
function Twitter_RSS() { | |
return; | |
} | |
function doGet(e) { | |
var widgetID = e.queryString? e.queryString : "ERROR_NO_ID_FOUND"; | |
var cache = CacheService.getPublicCache(); | |
var id = "Twitter" + widgetID; | |
var rss = cache.get(id); |
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 | |
NAME=$1 | |
PWD=`pwd` | |
ffmpeg -f concat -i <(find . -type f -name "${NAME}*.flv" | cut -c 2- | awk "{print \"file '\" \"${PWD}\" \$0 \"'\"}") -c copy "$NAME.m4v" |
NewerOlder