Skip to content

Instantly share code, notes, and snippets.

View goshdarnheck's full-sized avatar
🎃
spooky

Matthew Rapati goshdarnheck

🎃
spooky
  • Toronto, Canada
View GitHub Profile

Twitter abuses all media file uploads, each type in its own way. If we want to upload a good looking animation loop from some low-color, high-detail generative art, we have to game their system's mechanisms.

  • don't upload a video file, they will re-encode it into absolute 💩

  • create a GIF, which they will auto-convert into a video file 😱

  • The frames of the GIF will be resized to an even-sized width using an extremely naive algorithm. Your GIF should be an even size (1000, 2000,

@KiloSwiss
KiloSwiss / Autoexec.cfg
Last active October 13, 2023 20:57
Counter-Strike Global Offensive Configs
// CS:GO autoexec.cfg by KiloSwiss - Last Update: July/31/2020
// Download from Github: https://gist.github.com/KiloSwiss/a015b0620284ce74b5ed849ec599e51e
// This config is not meant to be used "out of the box", but to look up commands, ConVars and binds and to help you create your own personalized config.
// If you look for an easier way to create your own config or want to copy pro players settings, check out this Map by crashz' and MisterIO:
// https://steamcommunity.com/workshop/filedetails/?id=1325659427
// Feel free to edit this file, share the link with your friends, copy parts of it into your own config or even make your own config based on it.
// I recommend that you use a text editor like "Notepad++" or "Sublime" to edit this file.
// https://notepad-plus-plus.org/
// https://www.sublimetext.com/
@nolanlawson
nolanlawson / protips.js
Last active February 4, 2024 18:06
Promise protips - stuff I wish I had known when I started with Promises
// Promise.all is good for executing many promises at once
Promise.all([
promise1,
promise2
]);
// Promise.resolve is good for wrapping synchronous code
Promise.resolve().then(function () {
if (somethingIsNotRight()) {
throw new Error("I will be rejected asynchronously!");
@danharper
danharper / gulpfile.js
Last active April 11, 2024 08:31
New ES6 project with Babel, Browserify & Gulp
var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var browserify = require('browserify');
var watchify = require('watchify');
var babel = require('babelify');
function compile(watch) {
var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel));
@moonmilk
moonmilk / dreamhostpython.md
Last active August 12, 2022 16:15
trying to figure out useful info for running python on dreamhost shared hosting - intended for twitter bot makers

python for botmakers, on dreamhost shared hosting

On a shared hosting service like dreamhost, how do you get your twitter bot up and running? Problems:

  • where should I put my script?
  • you can't install python modules like tweepy (for twitter access) because you don't have root permission
  • once you get that solved, how do you run your script? cron?

I'm still figuring this stuff out myself, so nothing is clear as it should be. Hope this page will be a resource that will improve over time.

@chrisvfritz
chrisvfritz / index.html
Created November 18, 2014 19:22
Simplest possible HTML template
<!doctype html>
<html>
<head>
<title>This is the title of the webpage!</title>
</head>
<body>
<p>This is an example paragraph. Anything in the <strong>body</strong> tag will appear on the page, just like this <strong>p</strong> tag and its contents.</p>
</body>
</html>