Skip to content

Instantly share code, notes, and snippets.

{
"consumer": {
"name": "ui"
},
"provider": {
"name": "userservice"
},
"interactions": [
{
"description": "a request to POST a person",
const sinon = require('sinon');
const _ = require('lodash');
describe.only('CLI', function() {
beforeEach(function() {
this.originalArgv = _.cloneDeep(process.argv);
this.exitStub = sinon.stub(process, 'exit');
});
> cypress@3.3.1 postinstall C:\Data\CIV_PO\e2e\node_modules\cypress
> node index.js --exec install
2019-06-24T14:48:20.668Z cypress:cli installing Cypress from NPM
2019-06-24T14:48:21.340Z cypress:cli installing with options {}
2019-06-24T14:48:21.341Z cypress:cli version in package.json is 3.3.1
2019-06-24T14:48:21.341Z cypress:cli Using CYPRESS_INSTALL_BINARY from environment variable
2019-06-24T14:48:21.341Z cypress:cli Using CYPRESS_INSTALL_BINARY from environment variable
2019-06-24T14:48:21.341Z cypress:cli using environment variable CYPRESS_INSTALL_BINARY C:/temp/cypress.zip
interface LawConfig {
[config: string]: any;
/**
* Define the severity of the law.
* note: `omit` will always result in the law not being enforced
* @default must
*/
severity?: 'must' | 'should' | 'may' | 'optional' | 'omit';
/**
* Define the behaviour of a failure.
@Lakitna
Lakitna / wordScores.json
Created December 9, 2018 11:19
Words that score exactly 100 when converting all letters to numbers and summing the numbers
{
"abactinally": 100,
"abatements": 100,
"abbreviatable": 100,
"abettors": 100,
"abomasusi": 100,
"abreption": 100,
"abrogative": 100,
"absconders": 100,
"absinthol": 100,
@Lakitna
Lakitna / wordScores.json
Created December 9, 2018 11:13
Words that score >= 100 when converting all letters to numbers and summing the numbers
This file has been truncated, but you can view the full file.
{
"aardwolves": 120,
"aasvogels": 101,
"abactinally": 100,
"abalienation": 103,
"abandonment": 103,
"abandonments": 122,
"abaptiston": 117,
"abaptistum": 122,
"abarthrosis": 130,
@Lakitna
Lakitna / debug_info.py
Last active January 2, 2019 18:57
Script to retrieve debug info for Pytradfri
#!/usr/bin/env python3
"""
This is an example of how the pytradfri-library can be used.
To run the script, do the following:
$ pip3 install pytradfri
$ Download this file (debug_info.py)
$ python3 debug_info.py <IP>
Where <IP> is the address to your IKEA gateway. The first time
@Lakitna
Lakitna / Tradfri network
Last active March 12, 2018 15:03
The raw output of every device type that can be connected to a tradfri network
[
{
"3": {
"0": "IKEA of Sweden",
"1": "TRADFRI bulb E27 CWS opal 600lm",
"2": "",
"3": "1.3.002",
"6": 1
},
"3311": [