If you experience some problems with version 0.5.0, please update to 0.6.0 clicking the link below.
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
| defmodule CountDownCounter do | |
| @behaviour :gen_statem | |
| @name :countdown_counter | |
| @initial_time 6 | |
| @doc ~S""" | |
| ## Client API | |
| ### Usage: |
Classic game made with HTML Canvas + JS. Use arrows or A, W, D to move and SPACE to shoot.
Try it on full page: http://codepen.io/bungu/full/rawvJe
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
| /* | |
| WriteMultipleFields | |
| Description: Writes values to fields 1,2,3,4 and status in a single ThingSpeak update every 20 seconds. | |
| Hardware: ESP32 based boards | |
| !!! IMPORTANT - Modify the secrets.h file for this project with your network connection and ThingSpeak channel details. !!! | |
| Note: |
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 { css } from '@emotion/react' | |
| const dataTitle = () => css` | |
| &[data-title]:hover:after { | |
| opacity: 1; | |
| transition: all 0.1s ease 0.5s; | |
| visibility: visible; | |
| } | |
| &[data-title]:after { | |
| content: attr(data-title); |
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
| /* | |
| * The Arduino iot-api JavaScript client has some instructions which seem a little bit outdated. | |
| * https://github.com/arduino/iot-client-js/blob/master/README.md | |
| * | |
| * E.g. in the example the now deprecated `request-promise` is used to retrive the OAuth token. | |
| * | |
| * This gist shows how I was able to retrieve the token using `fetch` and async/await, | |
| * using JSON instead of urlencoded form. | |
| * | |
| */ |
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
| // from phind.com | |
| const img = new Image(); | |
| img.src = 'path-to-your-image.jpg'; | |
| img.onload = function() { | |
| const canvas = document.createElement('canvas'); | |
| canvas.width = img.width; | |
| canvas.height = img.height; | |
| const ctx = canvas.getContext('2d'); | |
| ctx.drawImage(img, 0, 0, img.width, img.height); | |
| }; |
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
| /* | |
| Sketch generated by the Arduino IoT Cloud Thing "Untitled" | |
| Arduino IoT Cloud Variables description | |
| The following variables are automatically generated and updated when changes are made to the Thing | |
| float gyroscope_X; | |
| float gyroscope_Y; | |
| float gyroscope_Z; |
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 { Buffer } from 'buffer' | |
| // HEX is a Uint8Array with the compiled code | |
| import { HEX } from './hex'; | |
| import { sleep } from './sleep'; | |
| // convert an address padding it with 0 when needed | |
| import { convertAddress } from './convertAddress'; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder