Skip to content

Instantly share code, notes, and snippets.

@CrossVR
CrossVR / crunchyRes.user.js
Last active August 3, 2019 13:41 — forked from subnomo/crunchyRes.user.js
Edited Zren's Crunchyroll Userscript to better display each resolution
// ==UserScript==
// @name Crunchyroll: Resize Player To Window Size
// @description Moves the video to the top of the website and resizes it to the screen size.
// @author Chris H (Zren / Shade)
// @icon https://crunchyroll.com/favicons/favicon-16x16.png
// @homepageURL http://userscripts.org/scripts/show/157272
// @downloadURL http://userscripts.org/scripts/source/157272.user.js
// @updateURL http://userscripts.org/scripts/source/157272.meta.js
// @namespace http://xshade.ca
// @version 1.1.1
// ==UserScript==
// @name NY Pizza Coupon
// @version 1
// @require https://code.jquery.com/jquery-3.3.1.min.js
// @match https://www.newyorkpizza.nl/secure/checkout
// @grant none
// ==/UserScript==
var results = [];
var originalOrder = [];
Prepare game data started...
Prepare game data finished
Detected folowing folders in DLC path:
DLC_CON_END
DLC_CON_MP1
DLC_CON_MP2
DLC_CON_MP3
DLC_CON_MP4
DLC_CON_MP5
@CrossVR
CrossVR / compile.py
Last active March 15, 2017 13:44
R2 shader compilation
import os
import subprocess
import re
from multiprocessing.pool import ThreadPool
# Set the path to the fxc compiler
fxc = 'C:\\Program Files (x86)\\Microsoft DirectX SDK (June 2010)\\Utilities\\bin\\x86\\fxc.exe'
featureLevel = '3_0'
workers = 8
float ps_sun_direction = 0.0f;
class CCC_SunDirection : public CCC_Float
{
public:
CCC_SunDirection(LPCSTR N, float* V) : CCC_Float(N, V, 0.0f, 360.0f) {}
virtual void Execute(LPCSTR args)
{
CCC_Float::Execute(args);
g_pGamePersistent->Environment().m_sun_azimuth = ps_sun_direction * (PI / 180.0f);
}
MacBook-Armada:build Armada$ make VERBOSE=1
/usr/local/Cellar/cmake/3.7.0/bin/cmake -H/Users/Armada/Source/openmw -B/Users/Armada/Source/openmw/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/Cellar/cmake/3.7.0/bin/cmake -E cmake_progress_start /Users/Armada/Source/openmw/build/CMakeFiles /Users/Armada/Source/openmw/build/CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f extern/osg-ffmpeg-videoplayer/CMakeFiles/osg-ffmpeg-videoplayer.dir/build.make extern/osg-ffmpeg-videoplayer/CMakeFiles/osg-ffmpeg-videoplayer.dir/depend
cd /Users/Armada/Source/openmw/build && /usr/local/Cellar/cmake/3.7.0/bin/cmake -E cmake_depends "Unix Makefiles" /Users/Armada/Source/openmw /Users/Armada/Source/openmw/extern/osg-ffmpeg-videoplayer /Users/Armada/Source/openmw/build /Users/Armada/Source/openmw/build/extern/osg-ffmpeg-videoplayer /Users/Armada/Source/openmw/build/extern/osg-ffmpeg-videoplay
MacBook-Armada:build Armada$ make
[ 0%] Built target osg-ffmpeg-videoplayer
[ 0%] Built target local_tinyxml
[ 1%] Built target oics
[ 2%] Built target osgQt
-- OpenMW version 0.40.0
[ 2%] Built target git-version
[ 24%] Built target components
[ 24%] Linking CXX executable ../../OpenMW.app/Contents/MacOS/openmw
Undefined symbols for architecture x86_64:
@CrossVR
CrossVR / gist:bab3e023b5b813e18cb7
Last active August 29, 2015 14:20
Dolphin Depth Buffer Test
// adapted from the original acube demo by tkcne.
// enjoy
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <math.h>
#include <gccore.h>

Some dialogue changes based on whether the game was registered with a mobile phone:

CeruleanPokeCenter1F

Before registering: "For battles, I'd much rather use POKéMON I've been raising, even if they're weaker than some newly caught POKéMON."

After registering: "Do you battle by mobile phone? If time runs out during a battle, waiting to see who won is really nerve wracking."

SaffronPokeCenter1F

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "extras/pokemontools/crystal.py", line 4858, in __init__
self.parse()
File "extras/pokemontools/crystal.py", line 4871, in parse
self.second_map_header = SecondMapHeader(self.second_map_header_address, map_group=self.map_group, map_id=self.map_id, debug=self.debug)
File "extras/pokemontools/crystal.py", line 4945, in __init__
self.parse()
File "extras/pokemontools/crystal.py", line 4979, in parse
self.event_header = MapEventHeader(self.event_header_address, map_group=self.map_group, map_id=self.map_id, debug=self.debug)