Skip to content

Instantly share code, notes, and snippets.

Avatar
🦊
I may be slow to respond.

Sam Beckham samdbeckham

🦊
I may be slow to respond.
View GitHub Profile
View Contract Killer 3.md

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

View Directory Structure
.tmp/
dev/
- index.html
includes/
- content.html
Gruntfile.js
package.json
View masks.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View sublime-settings.json
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"font_options":
[
"gray_antialias",
"subpixel_antialias"
],
"font_size": 14,
View getUniqueKeys.js
/**
* Generates an array of unique keys from an array of objects
* @param {Object[]} data The array to parse
* @returns {string[]} The unique keys
*/
const getUniqueKeys = data => Array.from(
new Set(
data.reduce((allKeys, entry) => [...allKeys, ...Object.keys(entry)], [])
)
);
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>array madness</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>array madness #jsbench #jsperf</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
You can’t perform that action at this time.