Skip to content

Instantly share code, notes, and snippets.

View X-Raym's full-sized avatar

Raymond Radet X-Raym

View GitHub Profile
@X-Raym
X-Raym / memberpress-corporate-all-sub-accounts.php
Last active July 9, 2020 16:24 — forked from cartpauj/memberpress-corporate-all-sub-accounts.php
Get all sub-accounts for a parent user in MemberPress Corporate Accounts
<?php
/**
* Plugin Name: MemberPress Corporate Sub Account Shortcode
* Plugin URI: https://gist.github.com/X-Raym/a2c5a2eb05b9be3c04ee9972876aa2df/edit
* Description: AMemberPress Corporate Sub Account Shortcode
* Author: X-Raym
* Author URI: https://www.extremraym.com/
* License: GNU AGPLv3
* License URI: http://www.gnu.org/licenses/agpl-3.0.html
@X-Raym
X-Raym / wavfile.py
Last active November 6, 2020 15:04 — forked from josephernest/wavfile.py
wavfile.py (enhanced): now moved to https://github.com/X-Raym/wavfile.py !!
# wavfile.py (Enhanced)
# Date: 20180430_2335 Joseph Basquin
#
# Mod by X-Raym
# Date: 20180706_1558
# * add log parameter for read function
# * return 'success' at end of write
# * renamed variables to avoid conflict with python native functions
# * correct bytes error
# * correct write function
@X-Raym
X-Raym / bach_parse_example.py
Created September 28, 2017 20:46 — forked from kastnerkyle/bach_parse_example.py
Example of getting Bach from MusicXML using music21
"""
Example of iterating Bach Chorales and getting individual voice parts
In this case, want specifically 4 voice pieces only
Also transpose to key of C (major or minor depending on piece)
Also shows how to write out all the xml as midi
"""
# Author: Kyle Kastner
# License: BSD 3-Clause
# Based on StackOverflow answer
# http://stackoverflow.com/questions/36647054/music21-getting-all-notes-with-durations
@X-Raym
X-Raym / Highcharts Cheat Sheet.js
Created June 8, 2017 11:06 — forked from mulhoon/Highcharts Cheat Sheet
Highcharts Cheat Sheet
$('#container').highcharts({
chart: {
alignTicks: true, // When using multiple axis, the ticks of two or more opposite axes will automatically be aligned by adding ticks to the axis or axes with the least ticks.
animation: true, // Set the overall animation for all chart updating. Animation can be disabled throughout the chart by setting it to false here.
backgroundColor: '#FFF', // The background color or gradient for the outer chart area.
borderColor: '#4572A7', // The color of the outer chart border.
borderRadius: 5, // The corner radius of the outer chart border. In export, the radius defaults to 0. Defaults to 5.
borderWidth: 0, // The pixel width of the outer chart border.
className: null, // A CSS class name to apply to the charts container div, allowing unique CSS styling for each chart.
defaultSeriesType: 'line', // Alias of type.
@X-Raym
X-Raym / horizontal_wiimote_to_vJoy.py
Last active March 1, 2016 22:12 — forked from AVapps/horizontal_wiimote_to_vJoy.py
FreePIE script to use up tu 4 wiimotes and nunchucks with vJoy. Configure your virtual joysticks with x and y axis, 1 "4 directions" POV and 9 buttons.
"""
Horizontal Wiimote to vJoy FreePIE script
Maps up to 4 wiimotes to 4 virtual joysticks using vJoy.
Before running this script define 4 virtual joysticks with x and y axis, 13 buttons (or keep your wiimote + nunchuck virtual joysticks configuration).
version: 1.1
author: Jahdrien
mod: X-Raym
gist: https://gist.github.com/X-Raym/caada7ebc4b76fb01dcd