Skip to content

Instantly share code, notes, and snippets.

🎧
Hmmmmm...

Tomasz Drozdowski marffinn

🎧
Hmmmmm...
Block or report user

Report or block marffinn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@marffinn
marffinn / JavaScript - [ checks if DOM element on screen ]
Last active Oct 12, 2015
JavaScript function to check if an DOM element is on screen
View JavaScript - [ checks if DOM element on screen ]
$.fn.isOnScreen = function(){
var element = this.get(0);
var bounds = element.getBoundingClientRect();
return bounds.top < window.innerHeight && bounds.bottom > 0;
}
@marffinn
marffinn / custom-nav-walker-usage.php
Created Jun 12, 2018 — forked from kosinix/custom-nav-walker-usage.php
WordPress: Using a custom nav walker to create navigation menus in plain <a> tags. That is the <ul> and <li> tags are not present. Very useful if you want to create simple links that can be centered with a simple text-align:center on the containing element.
View custom-nav-walker-usage.php
<?php
// In your template files like footer.php
// The items_wrap value ('%3$s') removes the wrapping <ul>, while the custom walker (Nav_Footer_Walker) removes the <li>'s.
wp_nav_menu(array('items_wrap'=> '%3$s', 'walker' => new Nav_Footer_Walker(), 'container'=>false, 'menu_class' => '', 'theme_location'=>'footer', 'fallback_cb'=>false ));
?>
View linki plotter
https://www.instructables.com/id/Arduino-Mini-CNC-Plotter-Machine-from-dvd-drives/
https://www.instructables.com/id/How-to-Make-GRBL-CNC-V3-Shield-Based-Mini-CNC-Mach-1/
http://electricdiylab.com/enable-z-axis-servo-functionality-for-grbl-mi-inkscape-extension/
http://www.mediafire.com/file/9x1m60w1x6tdhaw/MI+Inkscape+Extension.zip
https://ncviewer.com/
3D Printer:
http://ramps3dprinter.blogspot.com/2013/08/connections-of-ramps-14.html
https://www.hta3d.com/image/catalog/Impresoras/P3Steel/Esquemas/RAMPS%201.4%20EN-sinsensor-alt.jpg
View gist:6aea47070492e7d26422d04d1c263bab
http://stm32duino.com/viewtopic.php?t=1054
https://www.onetransistor.eu/2017/12/program-stm32-bluepill-hal-eclipse.html
View linki.txt
https://threejsfundamentals.org/threejs/lessons/threejs-post-processing.html
View there You go.js
// this is basically the function i've written not long ago - yours may differ
// from mine but the most important thing is to set the name for the component that is imported/loaded
// Note that instead of name there are values like position, scale material name, color hex code and basically everything
// that the imported objects' array contains
var load_consecutive = function(objectFetch, nameFetch, scaleFetch, positionFetch, materialFetch) {
loader.load(objectFetch, function(object) {
object = new THREE.Mesh(object, materialFetch);
object.material.needsUpdate = true;
You can’t perform that action at this time.