Skip to content

Instantly share code, notes, and snippets.

View jazzsequence's full-sized avatar
🚀
Hacking, probably.

Chris Reynolds jazzsequence

🚀
Hacking, probably.
View GitHub Profile
@jazzsequence
jazzsequence / batch_unzip.sh
Last active July 21, 2022 20:47 — forked from ncimino/zip_content.sh
Bash loop through zip files & extract
ls *.zip > filelist
for FILENAME in `cat filelist`
do
unzip $FILENAME
rm $FILENAME
done
rm filelist
@jazzsequence
jazzsequence / end.gcode
Last active March 24, 2025 16:17
Start and End G-code for Ender 5 on Cura
; Ender 5 Custom End G-code
G4 ; Wait
M220 S100 ; Reset Speed factor override percentage to default (100%)
M221 S100 ; Reset Extrude factor override percentage to default (100%)
G91 ; Set coordinates to relative
G1 F1800 E-3 ; Retract filament 3 mm to prevent oozing
G1 F3000 Z20 ; Move Z Axis up 20 mm to allow filament ooze freely
G90 ; Set coordinates to absolute
G1 X0 Y220 F1000 ; Move Heat Bed to the front for easy print removal
M106 S0 ; Turn off cooling fan
@jazzsequence
jazzsequence / wds-javascript-style.js
Last active August 29, 2016 18:42 — forked from gregrickaby/wdsjQuery.js
WDS Javascript Style
/**
* Foo Script.
*/
window.Foo_Object = {};
( function( window, $, plugin ) {
// Private variable.
var fooVariable = 'foo';
// Constructor.
@jazzsequence
jazzsequence / remove_default_taxonomies.php
Last active November 18, 2015 17:51 — forked from mattboon/gist:2953889
WordPress - Remove / unregister taxonomies
<?php
/**
* Unregister taxonomies.
* @param array $taxonomies Optional. An array of taxonomies. If none are given, defaults to post tags and categories.
* @return void
*/
function wds_unregister_taxonomies( $taxonomies = array() ) {
global $wp_taxonomies;
// Allow an array of taxonomies to be passed. Default to tags and categories if nothing was passed.
<?php
/**
* Time a callable function/method
*
* Returns an array containing the response of the callback in the first index,
* and the total time for execution in the second key.
*
* @param mixed $callback A callable function/method (i.e. `get_posts` or `array( $my_obj, 'my_method' )`)
* @return mixed Array with func value response, and execution time
*/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
array(
"AF" => "Afghanistan (‫افغانستان‬‎)",
"AX" => "Åland Islands (Åland)",
"AL" => "Albania (Shqipëri)",
"DZ" => "Algeria (‫الجزائر‬‎)",
"AS" => "American Samoa",
"AD" => "Andorra",
"AO" => "Angola",
"AI" => "Anguilla",
"AQ" => "Antarctica",