Skip to content

Instantly share code, notes, and snippets.

View cartoonclouds's full-sized avatar

Chris Tudhope cartoonclouds

View GitHub Profile
@cartoonclouds
cartoonclouds / Response.php
Created November 23, 2020 03:50 — forked from jeffochoa/Response.php
Laravel HTTP status code
<?php
// This can be found in the Symfony\Component\HttpFoundation\Response class
const HTTP_CONTINUE = 100;
const HTTP_SWITCHING_PROTOCOLS = 101;
const HTTP_PROCESSING = 102; // RFC2518
const HTTP_OK = 200;
const HTTP_CREATED = 201;
const HTTP_ACCEPTED = 202;
@cartoonclouds
cartoonclouds / To_MP3_Windows.bat
Created April 12, 2022 16:39 — forked from chuckleplant/To_MP3_Windows.bat
Converts files to MP3 using FFMPEG, on Windows. Note that you can change m4a to almost any other audio format and ffmpeg will still convert.
@echo off
FOR /F "tokens=*" %%G IN ('dir /b *.m4a') DO ffmpeg -i "%%G" -acodec libmp3lame -ab 128k "%%G.mp3"
@cartoonclouds
cartoonclouds / MouseControl.h
Created April 12, 2022 16:39 — forked from chuckleplant/MouseControl.h
Mouse control for Windows in C++. Dependencies: User32 Windows library.
#ifndef _WIN32_WINNT
# define _WIN32_WINNT 0x500
#endif
#include "Winuser.h"
class ofxMouse
{
public:
static enum MouseEventFlags
{