Skip to content

Instantly share code, notes, and snippets.

@jkroepke
jkroepke / README.md
Last active August 10, 2019 21:04
Minecraft 1.12.2 VersionManifest for custom launchers to fix MacOS issues.

Customized versionManifest for Minecraft 1.12.2 to resolve problems on macOS.

Caused by: java.lang.ClassNotFoundException: ca.weblite.objc.NSObject
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 19 more
@dominicthomas
dominicthomas / ffmpeg wav -> mp3
Created October 7, 2014 09:30
Convert a wav to a 320k mp3 using ffmpeg.
ffmpeg -i inputfile.wav -ab 320k outputfile.mp3
@cahorton
cahorton / slideshow.js
Created September 11, 2014 04:24
Slideshow Class for JanusVR v1
/**
* Slideshow Class for JanusVR
*
* (c) cahorton 2014-09-09
*
* Cycles through a set of images
* Each image must exist in the HTML as an AssetImage
*
* The Slideshow object takes an optional loop boolean and a default duration in ms for the images.
* Slideshow-wide position, scale, and fwd can be set, but over-ridden by image-specific values
@crapier
crapier / Kissanime_cleaner.md
Last active May 3, 2022 18:39
Userscript for removing bloat from KissAnime site, also adds random features.

KissAnime Cleaner

You guys may have noticed but I've not been updating this for a while and a few pieces are broken. Feel free to update this on your own if you want to or to use Juici's Fork, which he has kindly been keeping more up to date.

This userscript for KissAnime was made for my personal use to remove large chunks of the site that I do not use, including any options to login or use features only for members. Along the way I ended up adding some other small features listed below.

Features

  • Removes any link, tabs, buttons, pages, etc. that I will never use.
  • Also removes ads on any pages that still remain
@zanetu
zanetu / mal_api.js
Created May 3, 2014 09:59
API for myanimelist.net
// ==UserScript==
// @name MAL API
// @namespace http://userscripts.org/users/92143
// @version 0.0.1
// @description API for myanimelist.net
// @include /^http\:\/\/myanimelist\.net(\/.*)?$/
// @author zanetu
// @license GPL version 2 or any later version; http://www.gnu.org/licenses/gpl-2.0.txt
// @grant GM_xmlhttpRequest
// ==/UserScript==
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active May 7, 2024 09:29
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@a1phanumeric
a1phanumeric / gist:3033803
Created July 2, 2012 15:30
Calculate luminosity of an image.
NSArray* dayArray = [NSArray arrayWithObjects:@"Image One",@"Image Two",@"Image Three",nil];
for(NSString* day in dayArray)
{
for(int i=1;i<=2;i++)
{
UIImage* image = [UIImage imageNamed:[NSString stringWithFormat:@"%@%d.png",day,i]];
unsigned char* pixels = [image rgbaPixels];
double totalLuminance = 0.0;
for(int p=0;p<image.size.width*image.size.height*4;p+=4)
{