This is a guide to configure React Native to be built for native and web platforms with Typescript, Vite.js and Storybook support for modelling components.
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
| # Create this file in /etc/udev/rules.d/51-android.rules (root owned, bitmask 0644) | |
| # Reload udev (udevadm control --reload-rules) | |
| # | |
| # It will allow members of the `adbusers` group to access the phone over usb without being root | |
| # You should create a new unprivileged user who is a member of this group, then run `adb` as said user | |
| # | |
| # To add a new device, plug in the device and run `lsusb` to determine its device id then add it in, eg: | |
| # $ lsusb | |
| # Bus 002 Device 063: ID 18d1:4ee7 Google Inc. Nexus/Pixel Device (charging + debug) |
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
| # generated by PrusaSlicer 2.3.0+linux-x64 on 2021-01-29 at 10:18:59 UTC | |
| bed_temperature = 50 | |
| bridge_fan_speed = 100 | |
| compatible_printers = | |
| compatible_printers_condition = nozzle_diameter[0]>0.35 and printer_model!="MK2SMM" and printer_model!="MINI" and num_extruders==1 && ! (printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK3.*/ and single_extruder_multi_material) | |
| compatible_prints = | |
| compatible_prints_condition = | |
| cooling = 1 | |
| disable_fan_first_layers = 5 | |
| end_filament_gcode = "; Filament-specific end gcode" |
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 | |
| TARGET_DIR=~/Downloads/repos/third-parties | |
| TORTOISEHG_VERSION=${5:-stable} | |
| prepare() { | |
| sudo apt-get -y update | |
| sudo apt-get -y install \ | |
| curl \ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| interface ChooseFileSystemEntriesOptionsAccepts { | |
| description?: string; | |
| mimeTypes?: string[]; | |
| extensions?: string[]; | |
| } | |
| interface ChooseFileSystemEntriesOptions { | |
| type?: 'openFile' | 'saveFile' | 'openDirectory'; | |
| multiple?: boolean; | |
| accepts?: ChooseFileSystemEntriesOptionsAccepts[]; |
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 | |
| TARGET_DIR=/opt/repos/third-parties | |
| HG_GIT_VERSION=${1:-default} | |
| HG_RELEASE_VERSION=${2:-5.5.2} | |
| HG_REPO_VERSION=${3:-stable} | |
| TORTOISEHG_VERSION=${4:-stable} | |
| update() { | |
| # Update packages |
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 subprocess | |
| # grab subnet address | |
| ps = subprocess.Popen('ifconfig', stdout=subprocess.PIPE, shell=True) | |
| output = subprocess.check_output(('grep', 'inet'), stdin=ps.stdout) | |
| ps.wait() | |
| elements = output.decode('utf8').split() | |
| broadcast_ip = elements[elements.index('broadcast') + 1] | |
| print('broadcast_ip: {}'.format(broadcast_ip)) | |
| subnet = broadcast_ip[:-4] |
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
| # see rkengler.com for related blog post | |
| # https://www.rkengler.com/how-to-capture-network-traffic-when-scraping-with-selenium-and-python/ | |
| import json | |
| import pprint | |
| from selenium import webdriver | |
| from selenium.webdriver.common.desired_capabilities import DesiredCapabilities | |
| capabilities = DesiredCapabilities.CHROME |