git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
import gc | |
import machine | |
import pyb | |
import time | |
import network | |
# Configure GPIO pins 0 and 2 to be used for | |
# the I²C interface | |
iic = machine.I2C(pyb.Pin(2), pyb.Pin(0)) |
item_numbers = [2, 3, 5] | |
item_definitions = { 1: 'First item', 2: 'Second item', 3: 'Third item', 5: 'Fifth item'} | |
print(80 * '-') | |
print('Plain item names:') | |
items = map(lambda number: item_definitions[number], item_numbers) | |
print(', '.join(items)) | |
print(80 * '-') |
Drag and Drop is undoubtedly one of the most popular and user-friendly interactions in software nowadays. There are plenty awesome libraries for DnD in React realm, covering most of the use cases. We tried them all at productboard, but realized we need something special for complex interfaces we are building. We developed our own solution that satisfied three main requirements we had:
{ | |
"BTTPresetName" : "Default", | |
"BTTPresetUUID" : "CB3027C7-7330-45F9-AFAC-448FAD8856AD", | |
"BTTPresetContent" : [ | |
{ | |
"BTTAppBundleIdentifier" : "com.apple.finder", | |
"BTTAppName" : "Finder", | |
"BTTTriggers" : [ | |
] |