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
ls *.zip > filelist | |
for FILENAME in `cat filelist` | |
do | |
unzip $FILENAME | |
rm $FILENAME | |
done | |
rm filelist |
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
; 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 |
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
/** | |
* Foo Script. | |
*/ | |
window.Foo_Object = {}; | |
( function( window, $, plugin ) { | |
// Private variable. | |
var fooVariable = 'foo'; | |
// Constructor. |
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
<?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. |
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
<?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
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", |