Skip to content

Instantly share code, notes, and snippets.

View SeeringPhil's full-sized avatar

Philippe SeeringPhil

View GitHub Profile
@SeeringPhil
SeeringPhil / Youtube-dl commands
Created May 17, 2017 05:26
List of useful youtube-dl commands
.\youtube-dl.exe --extract-audio --audio-format mp3 --batch-file .\fileContainingURLsHere.txt --output "%(autonumber)s.%(title)s.%(ext)s"
Will output all the videos from the urls provided in the file, in the order of appearance. That order will reflect in fileexplorer because
of the "%(autonumber)s used here, which will prepend 0001, 0002, ... to each video, thus allowing one to download in a precise order
.\youtube-dl.exe -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4' --batch-file .\Video.txt --output "%(autonumber)s.%(title)s.%(ext)s
Downloads the videos specified in the file, numbered, with best quality of video and best audio merged into an mp4 file.
(For these ^ to work properly, ffmpeg has to be in the Path variable in windows. (ffmpeg or libav simply has to be installed on linux)
@SeeringPhil
SeeringPhil / Pacman.cs
Last active April 12, 2016 15:45
This is the class we're using for our pacman to be controlled and managed in the game.
using UnityEngine;
using System.Collections;
public class Pacman : MonoBehaviour {
public float defaultSpeed = 0.2f;
public Vector2 direction;
Vector2 next;
@SeeringPhil
SeeringPhil / Player1CtrlRemap.cs
Last active April 26, 2017 22:35
This is the class we're using for being able to modify the first player's controls in game and for the assigned controls to persist across scenes ( thus the keycodes being static.)
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
public class Player1CtrlRemap : MonoBehaviour
{
// Initialisation of player's controls.
public GameObject upBtn, downBtn, lftBtn, rightBtn;
public btnInit bI;