Skip to content

Instantly share code, notes, and snippets.

@joscha
joscha / Canva CLA.md
Created November 18, 2021 06:26
Canva CLA
View Canva CLA.md

Contributor Licence Agreement

Thank you for making contributions to this Project. In order to clarify certain things in relation to the Project, including the ownership of intellectual property rights, Canva Pty Ltd (ACN 158 929 938) ("Canva") requires that you accept this Contributor Licence Agreement ("Agreement").

1. DEFINITIONS

Canva Authorised Persons means the licensees, contractors, assignees and successors of Canva, and their licensees and any other person authorised by any of them.

Code means the computer software code, whether in human-readable or machine-executable form, that is Submitted by You to Canva under this Agreement.

@joscha
joscha / terraform.log
Created August 14, 2017 07:29
terraform log for lifecycle_rule w/ count
View terraform.log
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"
@joscha
joscha / index.ts
Created April 21, 2017 00:58
tslint 5.1 example for no-unused-variable regression
View index.ts
import * as React from "react";
type Props = {
foo: string,
};
export class X extends React.Component<Props, void> {}
@joscha
joscha / package.json
Created April 19, 2017 07:39
frozen lockfile regression
View package.json
{
"name": "frozen",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"test": "^0.6.0"
}
}
@joscha
joscha / keybase.md
Created March 8, 2017 13:39
keybase.md
View keybase.md

Keybase proof

I 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:

@joscha
joscha / README.md
Created February 1, 2017 14:31
Lerna folder example
View README.md

Run:

cd project
npm install
`npm bin`/lerna bootstrap
View babel-preset-es2015-nostrict.js
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;
@joscha
joscha / README.md
Last active September 18, 2016 12:25
SodaqOne PlatformIO config
View README.md
@joscha
joscha / MonitoredStory.js
Last active May 2, 2019 21:23
React Storybook example for stats.js integration
View MonitoredStory.js
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
}
View lora_sd_breakout.ino
#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