A4988 Drivers
Vref set to ~90% of stepper rated current
Rs = 0.1ohm
X = 0,58v (0,725A)
Y = 0,58v (0,725A)
Z = 0,58v (0,725A)
This file contains hidden or 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
| const IGNORE = [ | |
| 'constructor', | |
| 'componentDidMount', | |
| 'componentDidUpdate', | |
| 'componentWillReceiveProps', | |
| 'componentWillMount', | |
| 'componentWillUpdate', | |
| 'componentWillUnmount', | |
| 'getChildContext', | |
| 'getDefaultProps', |
This file contains hidden or 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
| # Copyright (c) 2017 Ultimaker B.V. | |
| # Cura is released under the terms of the LGPLv3 or higher. | |
| import UM.Settings.Models.SettingVisibilityHandler | |
| class MaterialSettingsVisibilityHandler(UM.Settings.Models.SettingVisibilityHandler.SettingVisibilityHandler): | |
| def __init__(self, parent=None, *args, **kwargs): | |
| super().__init__(parent=parent, *args, **kwargs) |
This file contains hidden or 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
| # https://tutorials-raspberrypi.de/lcd-touch-display-teil-2-anpassungen/ | |
| # http://projectable.me/raspberry-pi-touchscreen-octoprint-controller/ | |
| sudo apt-get install xserver-xorg-video-fbturbo | |
| git clone https://github.com/goodtft/LCD-show.git | |
| LCD-show/LCD35-show 180 | |
| # fix framebuffer |
This file contains hidden or 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
| /etc/X11/Xwrapper.config -> allowed_users=anybody | |
| /usr/share/X11/xorg.conf.d/99-fbdev.conf | |
| Section "Device" | |
| Identifier "touchscreen" | |
| Driver "fbdev" | |
| Option "fbdev" "/dev/fb1" | |
| EndSection |
This file contains hidden or 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
| // Installation: | |
| // yarn add -D @codemod/cli @babel/plugin-syntax-jsx @babel/generator | |
| import jsx from "@babel/plugin-syntax-jsx" | |
| import generate from "@babel/generator" | |
| const COLOR_MAP = { | |
| "white": "white", | |
| "near-white": "gray-100", | |
| "light-gray": "gray-200", |
This file contains hidden or 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
| export default (file, api) => { | |
| const j = api.jscodeshift | |
| const root = j(file.source) | |
| if (root.find(j.ExportDefaultDeclaration).get().value.declaration.decorators.map(n => n.expression.name).indexOf("autobind") >= 0) { return null } | |
| root.get().value.program.body.splice(1, 0, j.importDeclaration([j.importSpecifier(j.identifier('autobind'))], j.literal('core-decorators'))) | |
| root.find(j.ExportDefaultDeclaration).get().value.declaration.decorators.push(j.decorator(j.identifier('autobind'))) | |
| return root.toSource() | |
| } |
This file contains hidden or 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
| module FiltrableModel | |
| def filter_class=(klass) | |
| @filter_class = klass | |
| end | |
| def filter(params = {}) | |
| @filter_class or raise "No filter model specified" | |
| @filter_class.new(self).apply(params) | |
| end | |
| end |
This file contains hidden or 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
| #!/usr/bin/env bash -e | |
| set -euo pipefail | |
| shopt -s globstar | |
| shopt -s extglob | |
| export RUBY_HEAP_MIN_SLOTS=2000000 | |
| export RUBY_HEAP_FREE_MIN=20000 | |
| export RUBY_GC_MALLOC_LIMIT=100000000 |
This file contains hidden or 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
| #!/bin/bash | |
| # http://winstonyw.com/2014/10/24/setting_up_ruby_on_rails_on_digital_ocean/ | |
| # https://github.com/mattdbridges/capistrano-recipes/blob/master/postgresql.rb | |
| set -euo pipefail | |
| LOCALE="en_US.utf8" | |
| TIMEZONE="Europe/Madrid" | |
| ADMIN_USER="admin" |