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
| import android.annotation.SuppressLint; | |
| import android.content.ContentUris; | |
| import android.content.Context; | |
| import android.content.CursorLoader; | |
| import android.database.Cursor; | |
| import android.net.Uri; | |
| import android.os.Build; | |
| import android.os.Environment; | |
| import android.provider.DocumentsContract; | |
| import android.provider.MediaStore; |
Bootstrap 4 tabs (or pills) rendered underline.
- SASS:
_pills_underline_varibles.scss - edit styles using variables
$nav-pills-underline-link-active-color: $link-color !default;
$nav-pills-underline-link-hover-color: $link-hover-color !default;
$nav-pills-underline-bg: transparent !default;
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
| import socket | |
| import sys | |
| def main(): | |
| soc = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| host = "127.0.0.1" | |
| port = 8888 | |
| try: | |
| soc.connect((host, port)) |
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
| import android.content.Context; | |
| import android.text.Layout.Alignment; | |
| import android.text.StaticLayout; | |
| import android.text.TextPaint; | |
| import android.util.AttributeSet; | |
| import android.util.TypedValue; | |
| import android.widget.TextView; | |
| /** | |
| * Text view that auto adjusts text size to fit within the view. |
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
| # ----------------------------------------------- | |
| # Algorithms for solving string matching problems | |
| # ----------------------------------------------- | |
| def automaton(p, abc): | |
| """Builds DFA using pattern p and alphabet abc.""" | |
| m = len(p) | |
| d = {} | |
| for q in range(m+1): | |
| for a in abc: |
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
| // -------------------------------------- | |
| // i2c_scanner | |
| // | |
| // Version 1 | |
| // This program (or code that looks like it) | |
| // can be found in many places. | |
| // For example on the Arduino.cc forum. | |
| // The original author is not known. | |
| // Version 2, Juni 2012, Using Arduino 1.0.1 | |
| // Adapted to be as simple as possible by Arduino.cc user Krodal |