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/bin/env bash | |
# | |
# Total Video Runtime | |
# Gets the recursive total duration of all the audio and video files in a directory | |
# | |
# Requires ffmpeg and bash 4.0 | |
# | |
# Usage: | |
# ./total-video-runtime ~/my_dir/ |
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
\definecolor{delim}{RGB}{20,105,176} | |
\definecolor{numb}{RGB}{106, 109, 32} | |
\definecolor{string}{rgb}{0.64,0.08,0.08} | |
\lstdefinelanguage{json}{ | |
numbers=left, | |
numberstyle=\small, | |
frame=single, | |
rulecolor=\color{black}, | |
showspaces=false, |
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> | |
<style> | |
body { | |
background: #f0f0f0; | |
margin: 0; | |
} | |
#vcenter { |
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> | |
<script type="text/javascript" src='http://code.jquery.com/jquery-latest.min.js'> | |
</script> | |
<script> | |
// Original code by @griffpatch ( https://scratch.mit.edu/users/griffpatch/ ) | |
var username = "chooper100"; // Replace with your username | |
var page = 1; | |
function load(e) { |
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
#Scratch Animated Thumbnail Hacker, by @novice27b ( https://scratch.mit.edu/users/novice27b/ ) | |
require "socket" | |
require "openssl" | |
file = File.binread('FILE PATH TO ANIMATED GIF GOES HERE - MUST BE UNDER 1MB') | |
id = 'PROJECT ID GOES HERE (THE END PART OF YOUR PROJECT URL)' | |
sessid = 'SCRATCH SESSION ID GOES HERE - CHECK YOUR BROWSER COOKIES TO GET THIS VALUE' | |
socket = TCPSocket.open("scratch.mit.edu", 443) |