Skip to content

Instantly share code, notes, and snippets.

View manuman94's full-sized avatar
😍
Codingggggg

manuman94

😍
Codingggggg
View GitHub Profile
@manuman94
manuman94 / end.gcode
Created February 22, 2023 21:44
Ender 3 Pro Start/End G-Codes
G91 ;Relative positioning
G1 E-2 F2700 ;Retract a bit
G1 E-2 Z0.2 F2400 ;Retract and raise Z
G1 X5 Y5 F3000 ;Wipe out
G1 Z10 ;Raise Z more
G90 ;Absolute positioning
G1 X0 Y{machine_depth} ;Present print
M106 S0 ;Turn-off fan
M104 S0 ;Turn-off hotend
@manuman94
manuman94 / prestashop-lib.php
Created February 22, 2019 10:47 — forked from matchaxnb/prestashop-lib.php
Library to manipulate Prestashop from scripts
<?php
/**
prestashop-lib — © 2015 Chloé Tigre Rouge <[email protected]>
This is licensed under the same terms as Prestashop.
PrestaShop library to create products, categories and all sorts of things
programmatically by passing arrays around
It needs a bootstrapped PrestaShop framework (you can get one by defining
_PS_ROOT_DIR_ and by a
require_once(_PS_ROOT_DIR_.'config/config.inc.php');
@manuman94
manuman94 / gist:6da06a843f5aa5107f5470ba6da05578
Created January 8, 2018 07:51
Codeigniter, PHP: Generate date of birth drop downs with sessions in case of errors
// THIS FILE IS A CUSTOM CODEIGNITER CLASS FOR GENERATING DROPDOWNS INCLUDED FROM THE LIBRARIES FOLDER
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Dob_dropdown{
public function buildDayDropdown($name='',$id='',$value='')
{
$days='';
cropper = new ytCropper("#playerWrapper", { idvid:"ZMJ2UJI4onI", width:'640', height:'390', maxRange: 60, minRange: 5}, {controls: 0, showinfo : 0, modestbranding: 1, wmode: "transparent"});