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
@ECHO ON | |
:: Save the directory where we are | |
pushd %CD% | |
echo %CD% | |
:: Shift directories to the correct path | |
%~d0 | |
cd %~dp0 |
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
const fs = require('fs'); | |
const axios = require('axios'); | |
const FormData = require('form-data'); | |
// Function to read the image file as a buffer | |
const readImageFile = (filePath) => { | |
return new Promise((resolve, reject) => { | |
fs.readFile(filePath, (err, data) => { | |
if (err) { | |
reject(err); |
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
""" | |
Thread pool extensions to SocketServer. | |
""" | |
import Queue | |
import SocketServer | |
import sys | |
import threading |
http://www.postgresql.org/download/linux/ubuntu/ https://help.ubuntu.com/community/PostgreSQL
sudo echo "deb http://apt.postgresql.org/pub/repos/apt/ wily-pgdg main" > \
/etc/apt/sources.list.d/pgdg.list
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
😀 grinning face | |
😃 grinning face with big eyes | |
😄 grinning face with smiling eyes | |
😁 beaming face with smiling eyes | |
😆 grinning squinting face | |
😅 grinning face with sweat | |
🤣 rolling on the floor laughing | |
😂 face with tears of joy | |
🙂 slightly smiling face | |
🙃 upside-down face |
Head on over to your YouTube live Events page (https://www.youtube.com/my_live_events).
Create a new live event that is unlisted (or private) and of Custom type.
Under Basic ingestion choose 1500 Kbps - 4000 kbps (720p).
Check the Enable 60fps box.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title></title> | |
</head> | |
<body> | |
<h1>Audio</h1> |
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
# all imports | |
from IPython.display import Javascript | |
from google.colab import output | |
from base64 import b64decode | |
from io import BytesIO | |
!pip -q install pydub | |
from pydub import AudioSegment | |
RECORD = """ | |
const sleep = time => new Promise(resolve => setTimeout(resolve, time)) |
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
// let svg = document.querySelector('svg'); | |
function svgToPng(svg) { | |
let svgData = new XMLSerializer().serializeToString(svg); | |
let canvas = document.createElement('canvas'); | |
let ctx = canvas.getContext('2d'); | |
let DOMURL = window.URL || window.webkitURL || window; | |
let img = new Image(); | |
let blog = new Blob([svgData], {type: 'image/svg+xml'}); | |
let url = DOMURL.createObjectURL(blog); |