Skip to content

Instantly share code, notes, and snippets.

@zuhra031
zuhra031 / K Factor Test PETG.gcode
Created October 17, 2020 22:54 — forked from luisdelarosa/K Factor Test PETG.gcode
Linear advance K Factor Test for use with PETG filament
;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 December 13, 2018 02:04 — forked from ianchen06/end.gcode
Anet A8 start 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 October 6, 2018 21:43 — forked from jlengstorf/README.md
Adds responsive embedding to WordPress oEmbed content.

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.

@zuhra031
zuhra031 / new_gist_file
Created February 23, 2018 00:15 — forked from mommaroodles/new_gist_file
Custom Functions
<?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
Created February 4, 2017 16:20 — forked from manospsyx/woocommerce-composites-append-component-options.php
Use this snippet to display a “Load More” button for appending additional component options, instead of using pagination.
<?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
*