Skip to content

Instantly share code, notes, and snippets.

Avatar

GregorB zuhra031

View GitHub Profile
@zuhra031
zuhra031 / K Factor Test PETG.gcode
Created Oct 17, 2020 — forked from luisdelarosa/K Factor Test PETG.gcode
Linear advance K Factor Test for use with PETG filament
View K Factor Test PETG.gcode
;K Line Test created by Sebastianv650
; from https://mattshub.com/2017/10/02/linear-advance/
; updated for PETG temperatures by luisdelarosa (@louielouie)
; hotend 240C
; bed 85C
M107
M83 ; extruder relative mode
M104 S240 ; set extruder temp
M140 S85 ; set bed temp
@zuhra031
zuhra031 / end.gcode
Created Dec 13, 2018 — forked from ianchen06/end.gcode
Anet A8 start end gcode
View end.gcode
;End GCode
M104 S0 ;extruder heater off
M140 S0 ;heated bed heater off (if you have it)
G91 ;relative positioning
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+0.5 E-5 X-20 Y-20 F{travel_speed} ;move Z up a bit and retract filament even more
G28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way
M84 ;steppers off
@zuhra031
zuhra031 / README.md
Created Oct 6, 2018 — forked from jlengstorf/README.md
Adds responsive embedding to WordPress oEmbed content.
View README.md

Responsive Embeds in WordPress

This snippet filters oEmbed output in WordPress (the_content()) to force responsive embeds.

Usage

To use, add the contents of responseive_embeds.less to your site's stylesheet (if you're not using LESS, don't forget to move the iframe,object,embed rule outside of .embed-container and change it to .embed-container iframe,.embed-container object,.embed-container embed).

Then add the responsive_embed() function to your theme's functions.php and insert the add_filter() call in your theme's setup function.

View new_gist_file
<?php
function ww_remove_version() {
return '';
}
add_filter('the_generator', 'ww_remove_version');
// unregister all default WP Widgets
function unregister_default_wp_widgets() {
unregister_widget('WP_Widget_Pages');
@zuhra031
zuhra031 / woocommerce-composites-append-component-options.php Use this snippet to display a “Load More” button for appending additional component options, instead of using pagination.
View woocommerce-composites-append-component-options.php
<?php
/**
* Plugin Name: WooCommerce Composite Products - Append Component Options
* Plugin URI: http://www.woothemes.com/products/composite-products/
* Description: Use this snippet to display a “Load More” button for appending additional component options, instead of using pagination.
* Version: 1.0
* Author: SomewhereWarm
* Author URI: http://www.somewherewarm.net/
* Developer: Manos Psychogyiopoulos
*
You can’t perform that action at this time.