This file contains 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
#!/usr/bin/env node | |
/* eslint-disable import/no-commonjs */ | |
const request = require('request') | |
const Promise = require('bluebird') | |
const FISHEYE_BASE_URL = 'FILL_IN_URL' | |
const userName = (process.argv[2]).toString() | |
const password = (process.argv[3]).toString() | |
let token |
This file contains 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 { render } from 'react-dom'; | |
const block = () => { | |
let state = {} | |
const clearState = () => { | |
state = {} | |
} | |
class RenderBlock extends React.Component { |
This file contains 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
function seqPromise(){ | |
function* generator() { | |
let func = () => Promise.resolve() | |
while(true) | |
func = yield func() | |
} | |
const gen = generator() | |
return function genPush(list, fn) { | |
function fnWrap(fn, item) { | |
return () => fn(item) |
This file contains 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 makeRequest = async function ({ | |
url, | |
body = {}, | |
method = 'GET', | |
headers = {}, | |
}) { | |
const bodyString = JSON.stringify(body) | |
let json | |
const response = await fetch(url, { |
This file contains 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
// ./custom_types/performanceEntry' | |
declare global { | |
export interface PerformanceEntry { | |
transferSize: number, | |
encodedBodySize: number, | |
decodedBodySize: number, | |
responseStart: number, | |
responseEnd: number, | |
requestStart: number, | |
attribution: Array<any>, |
This file contains 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
while test $# -gt 0; do | |
case "$1" in | |
-h|--help) | |
echo "[options] test_file test_file is name of individual test file you want to run" | |
echo " " | |
echo "options:" | |
echo "-h, --help show brief help" | |
echo "--headless=BOOLEAN for running tests in your chrome browser, only run one test at a time" | |
exit 0 | |
;; |
OlderNewer