Skip to content

Instantly share code, notes, and snippets.

View zocoi's full-sized avatar

Hưng Đào zocoi

View GitHub Profile

Keybase proof

I hereby claim:

  • I am zocoi on github.
  • I am hung (https://keybase.io/hung) on keybase.
  • I have a public key ASDueqSo6VsatOPoNASQlLmQI0bBCwQ4-G45r4L6DxGxTgo

To claim this, I am signing this object:

<a href="http://redirect.hoodline.com/xcy8" target="_blank">click me!</a>
import time
import board
# For Trinket M0, Gemma M0, ItsyBitsy M0 Express and ItsyBitsy M4 Express
import adafruit_dotstar
led = adafruit_dotstar.DotStar(board.APA102_SCK, board.APA102_MOSI, 1)
def wheel(pos):
# Input a value 0 to 255 to get a color value.
@zocoi
zocoi / led2.py
Last active February 8, 2019 00:31
import time
import board
import touchio
import random
import adafruit_dotstar
import digitalio
touch_A3 = touchio.TouchIn(board.A3)
touch_A4 = touchio.TouchIn(board.A4)
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 8 columns, instead of 1. in line 5.
14d4d46b-7d92-4be6-acdb-6b7a598858bf,Downtown,58d8e9b7-100d-4ee5-b9e8-ae5e2b07be31,District of Columbia,f00fcec0-1b14-4413-80a0-393fa1c0b7e8,Downtown,78e480cb-1f67-4bc9-9f7f-0d02ce827249,Washington
fc28044f-82b1-406f-a6d8-e5518fefaf96,Hawthorne,58d8e9b7-100d-4ee5-b9e8-ae5e2b07be31,District of Columbia,c5455675-4e2a-4d5f-a756-6ff4f25d1470,Hawthorne,78e480cb-1f67-4bc9-9f7f-0d02ce827249,Washington
9cc44d46-9a5e-41c5-8a7e-214795134e68,Woodland,58d8e9b7-100d-4ee5-b9e8-ae5e2b07be31,District of Columbia,800fc687-0fac-4254-a9b0-5ff37c009c50,Woodland,78e480cb-1f67-4bc9-9f7f-0d02ce827249,Washington
5041ca92-d895-478d-b5a8-f4cdc0f08e67,Edgewood,58d8e9b7-100d-4ee5-b9e8-ae5e2b07be31,District of Columbia,793b8a11-1cce-40b7-ae45-1fb4c97f36df,Edgewood,78e480cb-1f67-4bc9-9f7f-0d02ce827249,Washington
0140c041-0c12-41cf-bfca-c5a30c2919e6,Capitol View,58d8e9b7-100d-4ee5-b9e8-ae5e2b07be31,District of Columbia,a153cb36-0ad3-4021-8755-3f8fdc5fe9ef,Capitol View,78e480cb-1f67-4bc9-9f7f-0d02ce827249,Washington
32bae49c-d934-4e77-9c98-
a67908de-2cc5-40ff-9708-17c6bbb3476a Reid Park bae05c60-cba0-46b5-8e94-d39594263aaa Charlotte f8126ee5-dca8-43e7-9477-b2ecbcd06fb2 Reid Park dd5c51c6-90b0-4e44-a699-ba5026efcd8d Charlotte
97dc40ca-ab77-4a4f-ba39-7277d30639c6 Eagle Lake bae05c60-cba0-46b5-8e94-d39594263aaa Charlotte f4d9faac-abb6-4a1e-87dd-caddc3ba7863 Eagle Lake dd5c51c6-90b0-4e44-a699-ba5026efcd8d Charlotte
677941b1-7b4d-40cd-ad94-17b0b32e5e24 Charlotte Douglas International Airport bae05c60-cba0-46b5-8e94-d39594263aaa Charlotte 33736940-b4fa-4794-8923-9c7f9a344242 Charlotte Douglas International Airport dd5c51c6-90b0-4e44-a699-ba5026efcd8d Charlotte
160d8e98-e5e7-457f-95e3-454ecc883530 Druid Hills North bae05c60-cba0-46b5-8e94-d39594263aaa Charlotte 75b96c4c-639c-4c51-9154-f37d93964dbe Druid Hills North dd5c51c6-90b0-4e44-a699-ba5026efcd8d Charlotte
e8e20126-7c23-4391-9008-43930dcbd51c Providence Park bae05c60-cba0-46b5-8e94-d39594263aaa Charlotte f660741b-6bc6-40d8-8452-867c4353bf48 Providence Park dd5c51c6-90b0-4e44-a699-ba5026efcd8d Char
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 8 columns, instead of 1. in line 5.
8985f5cd-be5b-4ec2-9c4a-340f430aa386,Oakland Airport,03cc25ae-3887-464d-bbd1-ab9c6bf54aa2,California,3a9ed09c-60ef-4b6a-af55-7718292d7faa,Oakland Airport,704180fb-1db7-43ab-9058-c5e1a0a667c0,Oakland
9e5d8814-51cb-4858-9904-4a7adab85312,Willow Glen,03cc25ae-3887-464d-bbd1-ab9c6bf54aa2,California,4aed4d4f-e712-492d-be41-be9eed6da571,Willow Glen,0bcfc982-33a9-4d56-a3d1-088602a8de76,San Jose
709b012f-042a-4ff1-88d2-bc47f214a2be,Sepulveda Boulevard,03cc25ae-3887-464d-bbd1-ab9c6bf54aa2,California,ca1059e9-f6a7-42aa-bd97-1322ea97f993,Sepulveda Boulevard,2b4a12e8-ff36-481d-854f-b24044131202,El Segundo
fea392c8-6357-4cee-a6d7-3da98230bda6,Little India,03cc25ae-3887-464d-bbd1-ab9c6bf54aa2,California,08170664-e5d1-4c4c-bd48-61cd06e44bef,Little India,454018a1-03bb-4dce-b46c-87a60e0415e9,Cerritos
92da8179-b377-49f4-85ff-5fe3485f0792,Yerba Buena,03cc25ae-3887-464d-bbd1-ab9c6bf54aa2,California,0d436325-1c8e-481f-bd5f-c6a959ea4df8,Yerba Buena,47245daa-8d79-43f7-a7a4-02d69cd59970,San Francisco
aafeb2c0-81b1-4ef7-99ac-bafe8cb3
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 8 columns, instead of 7. in line 4.
6ceea4a1-2c2d-4890-b8f0-1b640758f4ee,Hunters Point,179b4dfd-73be-48e3-850c-d9be350bd8af,Queens,c556f6fd-2ff4-4180-9338-bf2253eaa9ec,Hunters Point,6f17c6a4-a745-450e-aeea-9ffca09e2566,New York City
4cda50b6-0f09-42e8-b2c6-282170b267ab,Astoria,179b4dfd-73be-48e3-850c-d9be350bd8af,Queens,7af704ec-0254-42e6-83b3-15353f4be526,Astoria,6f17c6a4-a745-450e-aeea-9ffca09e2566,New York City
0d9c6dcf-fa60-4e97-8ec5-6e17da701bd8,John F. Kennedy International Airport,179b4dfd-73be-48e3-850c-d9be350bd8af,Queens,0696ee76-a90e-43cb-b0b3-3545b26b5760,John F. Kennedy International Airport,6f17c6a4-a745-450e-aeea-9ffca09e2566,New York City
5ba84c2e-8cdc-408c-a84d-32ed6dedb53e,Kew Gardens,179b4dfd-73be-48e3-850c-d9be350bd8af,Queens,f1c59fe9-0050-4593-a2a4-de8e6473c10c,Kew Gardens,6f17c6a4-a745-450e-aeea-9ffca09e2566,New York City
4eaf5202-1677-43f7-9e3a-71ad0ff984a0,Flushing Meadows Corona Park,179b4dfd-73be-48e3-850c-d9be350bd8af,Queens,9b470fde-95f5-41fd-8de8-897c1b2d30fa,Flushing Meadows Corona Park,6f17c6a4-a745-450e-aeea-9ffc
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 8 columns, instead of 3. in line 5.
d4115ade-17f0-4724-9b2c-9765fe10b35c,Hillside,33edddd3-1d3e-40bd-80b6-9107f668e60d,New York,e73ece55-4996-4124-bac7-8d2cbbcd91a2,Hillside,3f32256b-556d-4844-9133-af0142d8bbba,Kingston
4bac176c-ff1f-404e-a72d-e49f3f1140ce,SoHo,33edddd3-1d3e-40bd-80b6-9107f668e60d,New York,40d4314c-97b2-4329-bfec-b68d8711a29d,SoHo,6f17c6a4-a745-450e-aeea-9ffca09e2566,New York City
02084e80-62d6-46b5-9610-bddf76db2c89,Middle Village,33edddd3-1d3e-40bd-80b6-9107f668e60d,New York,71d02d40-2d93-4d34-a751-62ede2276566,Middle Village,6f17c6a4-a745-450e-aeea-9ffca09e2566,New York City
90242001-3e85-4876-a49e-a211f1cfb6b5,Columbus Circle,33edddd3-1d3e-40bd-80b6-9107f668e60d,New York,be557304-8a72-4bd2-b33a-65751b8296ff,Columbus Circle,6f17c6a4-a745-450e-aeea-9ffca09e2566,New York City
d5efa607-8a22-4580-a180-a4fd09079760,Ireland Corners,33edddd3-1d3e-40bd-80b6-9107f668e60d,New York,58d88906-084a-4f66-8e90-62b03d4131d0,Ireland Corners,17529c3f-393a-423b-a64c-417b5ac99597,Gardiner
9cc85769-1835-4758-8b26-5cde51b25849,Downtown,33edddd3-1d
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 8 columns, instead of 4. in line 5.
e37e0104-a811-43f0-9ae4-0a71438523dd,Bridgeport,146b80c6-6efd-4dc5-912c-8e289cebeb70,Illinoi,3847340e-076c-4187-831b-ddd6bfc154f7,Bridgeport,62770a92-121e-4cf3-ac68-c8f3ab7e0533,Chicago
192b1237-ea9b-4bc0-90e7-66f769a61edb,Downtown,146b80c6-6efd-4dc5-912c-8e289cebeb70,Illinoi,892ab820-ab21-439e-bfd8-f710ae339008,Downtown,6d1ef274-5164-4864-a6a0-bf7425437cb7,Naperville
b169d7a4-5e04-4163-86ee-92123fde80e3,Streeterville,146b80c6-6efd-4dc5-912c-8e289cebeb70,Illinoi,ea1a57db-5612-454d-bcea-6620039bb5e0,Streeterville,62770a92-121e-4cf3-ac68-c8f3ab7e0533,Chicago
80e34fdc-7c85-422e-aa01-d635565131d7,West Side,146b80c6-6efd-4dc5-912c-8e289cebeb70,Illinoi,b3454485-755d-4979-bbe6-b2e5a1d50312,West Side,cae7f967-1c09-47d4-8b37-2fcb9515949d,Evanston
437311b0-df75-4cb6-8f4a-6faa4aeade94,Albany Park,146b80c6-6efd-4dc5-912c-8e289cebeb70,Illinoi,e944ba30-05ce-4b07-9f53-e42916b4fd42,Albany Park,62770a92-121e-4cf3-ac68-c8f3ab7e0533,Chicago
e740cd38-9ba8-4556-998e-2bdea9282b81,South Shore,146b80c6-6efd-4dc5-912c-8e289cebeb70,Il