You can find the platform definition here: https://github.com/joscha/platform-sodaqsamd
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
| #include "application.h" | |
| #include "DS1307.h" | |
| const uint8_t daysInMonth[13] = { | |
| 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 | |
| }; | |
| // number of days since 2000/01/01, valid for 2001..2099 | |
| static uint16_t date2days(uint16_t y, uint8_t m, uint8_t d) { | |
| if (y >= 2000) |
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
| #include <lmic.h> | |
| #include <hal/hal.h> | |
| #include <SPI.h> | |
| // LoRaWAN NwkSKey, network session key | |
| // This is the default Semtech key, which is used by the prototype TTN | |
| // network initially. | |
| static const PROGMEM u1_t NWKSKEY[16] = { 0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C }; | |
| // LoRaWAN AppSKey, application session key |
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 React from 'react'; | |
| import Stats from 'stats.js'; | |
| const { requestAnimationFrame, cancelAnimationFrame } = window; | |
| class MonitoredStory extends React.Component { | |
| constructor(...args) { | |
| super(...args); | |
| this.rafFn = () => null; // noop | |
| } |
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
| const es2015preset = require('babel-preset-es2015'); | |
| const commonjsPlugin = require('babel-plugin-transform-es2015-modules-commonjs'); | |
| es2015preset.plugins.forEach(function(plugin) { | |
| if (plugin.length && plugin[0] === commonjsPlugin) { | |
| plugin[1].strict = false; | |
| } | |
| }); | |
| module.exports = es2015preset; |
Run:
cd project
npm install
`npm bin`/lerna bootstrapI hereby claim:
- I am joscha on github.
- I am joschafeth (https://keybase.io/joschafeth) on keybase.
- I have a public key ASBr-R6CvnZZEb1ct1FnwTONSz_cvGN5N5VRQxazxktrSwo
To claim this, I am signing this object:
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
| { | |
| "name": "frozen", | |
| "version": "1.0.0", | |
| "main": "index.js", | |
| "license": "MIT", | |
| "dependencies": { | |
| "test": "^0.6.0" | |
| } | |
| } |
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 * as React from "react"; | |
| type Props = { | |
| foo: string, | |
| }; | |
| export class X extends React.Component<Props, void> {} |
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
| TF_LOG=DEBUG terraform plan | |
| 2017/08/14 17:28:36 [INFO] Terraform version: 0.10.0 | |
| 2017/08/14 17:28:36 [INFO] Go runtime version: go1.8.3 | |
| 2017/08/14 17:28:36 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.10.0/bin/terraform", "plan"} | |
| 2017/08/14 17:28:36 [DEBUG] Attempting to open CLI config file: /Users/joscha/.terraformrc | |
| 2017/08/14 17:28:36 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
| 2017/08/14 17:28:36 [INFO] CLI command args: []string{"plan"} | |
| 2017/08/14 17:28:36 [INFO] command: empty terraform config, returning nil | |
| 2017/08/14 17:28:36 [DEBUG] command: no data state file found for backend config | |
| 2017/08/14 17:28:36 [DEBUG] New state was assigned lineage "4d127981-8199-48d4-98ad-277c91eb0aeb" |