Skip to content

Instantly share code, notes, and snippets.

View lspdv's full-sized avatar
:electron:
Hocus Pocus

Veronička lspdv

:electron:
Hocus Pocus
  • Prague
View GitHub Profile
@LeZuse
LeZuse / Default.bttpreset
Last active March 26, 2019 09:21
Better Touch Tool config
{
"BTTPresetName" : "Default",
"BTTPresetUUID" : "CB3027C7-7330-45F9-AFAC-448FAD8856AD",
"BTTPresetContent" : [
{
"BTTAppBundleIdentifier" : "com.apple.finder",
"BTTAppName" : "Finder",
"BTTTriggers" : [
]
@Aldredcz
Aldredcz / lightning-talk-proposal.md
Last active October 13, 2019 22:48
ReactiveConf - Lightning talk - Delightful Drag and Drop for complex interactive UIs

logo

Vojtech Prikryl (@productboard)

Delightful Drag and Drop for complex interactive UIs

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:

  1. Delightful user experience 🤩
  2. Great performance even for large datasets 🏎
  3. Reusability of already existing code 🔌
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 * '-')
@stlk
stlk / script.md
Last active August 22, 2016 09:07
Update pyladies fork from upstream

Pridat odkaz na puvodni repository

git remote add upstream https://github.com/PyLadiesCZ/pyladies.cz.git

Stahnout zmeny

git fetch upstream

Prepnout se na svuj master

git checkout master

@stestagg
stestagg / starwars.py
Created March 25, 2016 17:41
micropython starwars
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))
@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream