Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<script src="https://miro.com/app/static/sdk.1.1.js"></script>
<style>
body {
text-align: center;
margin-top: 50px;
}

Keybase proof

I hereby claim:

  • I am dashedstripes on github.
  • I am dashedstripes (https://keybase.io/dashedstripes) on keybase.
  • I have a public key ASBm2h9121aN-YjpYeNkUjehsgj0eK7IOoW1gpg39Xskvgo

To claim this, I am signing this object:

interface Auth {
clientId: string;
clientSecret: string;
token: string;
authorize: () => void;
}
interface OutputInterface {
play: (type: string, uri: string) => void;
pause: () => void;
import RentCalculator from "./RentCalculator";
describe('Compute: Lease Comps', () => {
describe('calculateAverageBaseRate', () => {
const data = [
// Free months = 4
[12, 13.50, 3, 'Percent', 'Base', 4.32, 25245, 4, 9],
function averageBaseRate(
leaseTerm: number,
baseRate: number,
escalationValue: number,
opex: number,
sizeSf: number,
numOfFreeMonths: number,
accumulateBaseRate: Function,
) {
@dashedstripes
dashedstripes / konami.js
Created September 26, 2017 12:26
Konami Code - every site should have one of these
let keys = []
let konami = '38,38,40,40,37,39,37,39,66,65'
window.addEventListener('keydown', (e) => {
keys.push(e.keyCode)
if (keys.toString().indexOf(konami) !== -1) {
console.log('Konami code.')
}
})
let fs = require('fs')
let csv = fs.readFileSync('sample.csv', 'utf8')
let ERROR_MESSAGES = ['Invalid CSV', 'Invalid CSV, not enough lines']
function parseCSV(csv) {
let parsed = []
let headers = []
if(isValidCSV(csv)) {
{
"Ansi 0 Color" : {
"Blue Component" : 0,
"Green Component" : 0,
"Red Component" : 0
},
"Tags" : [
],
"Ansi 12 Color" : {
// ==UserScript==
// @name Zendesk Help Center - Live Update
// @namespace http://pateo.co
// @version 0.1
// @description Fetch local CSS file to render on Zendesk help center
// @author Adam Gray
// @match https://*.zendesk.com/hc/en-us*
// @grant none
// ==/UserScript==
@dashedstripes
dashedstripes / query_params.js
Created May 31, 2017 10:52
Create an object from query params on a url
/**
* Returns the query params of a url
* @param {string} url - the url to process
* @return {object} a key value object of the params
*/
function getURLParams(url) {
let params = {};
let rawParams = '';