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 g() { | |
let a='Noel'; | |
let b='Yuletide'; | |
let c='Santa Claus'; | |
let d='Rudolph'; | |
let e='Snowflake'; | |
let f='Occasion'; | |
let g='North Pole'; | |
let h='Christmas Tree'; | |
let i='Joy'; |
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, fireEvent } from "@testing-library/react"; | |
import { AddMethod } from "components/request/method"; | |
describe("Adding Requests", () => { | |
it("should call addRequest with GET when the plus button is clicked", () => { | |
const addRequestMock = jest.fn(); | |
const { getByTitle } = render(<AddMethod addRequest={addRequestMock} />); |
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 readings = [ | |
{ | |
id: 1, | |
conversation: ['A long paragraph for someone to read...', 'Another line'], | |
question: [ | |
{ | |
question: 'What was this thing about?', | |
answer: [ | |
{ text: 'The moon', correct: false }, | |
{ text: The stars', correct: true }, |
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
<template> | |
<div> | |
<md-table v-model="players" :table-header-color="tableHeaderColor"> | |
<md-table-row slot="md-table-row" slot-scope="{ item }"> | |
<md-table-cell md-label="Name">{{ item.player }}</md-table-cell> | |
<md-table-cell md-label="Completed">{{ | |
item.mCompleted | |
}}</md-table-cell> | |
<md-table-cell md-label="Records">{{ item.mRecords }}</md-table-cell> | |
<md-table-cell md-label="Points">{{ item.points }}</md-table-cell> |
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 express = require("express"); | |
const app = express(); | |
const bodyparser = require("body-parser"); | |
const conversations = [ | |
{ | |
id: "1e14ace4-7807-42a0-b542-9b99798526d2", | |
conversation: ["Hey man", "Hey whats up?", "Nothing much", "Oh thats cool"], | |
questions: [ | |
{ |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Conversations</title> | |
<meta name="description" content="" /> | |
<meta name="author" content="" /> | |
<script src="https://unpkg.com/axios/dist/axios.min.js"></script> | |
<script | |
crossorigin |
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
"use strict"; | |
let websocket = require("websocket"); | |
let url = "ws://localhost:8080"; | |
let wsBitMex = new websocket.client(); | |
let retries = 0; | |
function retryConnection() { | |
if (retries < 3) { | |
setTimeout(() => { |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>MathJS</title> | |
<meta name="description" content="MathJS" /> | |
<meta name="author" content="jenskarlsen" /> | |
<script src="./js/decimal.js"></script> | |
<script> | |
Decimal.set({ precision: 30 }); |
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
/* this function process and object x of the pair in parameters, and add this data to the existing data of the current 0 to 30sec interval. | |
after the 30 sec pass, a timeout will get the bmBuffer[pair].data and send it elsewhere, there as a constant. perhaps, but bmBuffer is a global let */ | |
let bmBuffer = {}; | |
function bmProcessPayload(x, pair) { | |
if (bmCfg.consoled.trade) { | |
consoled("trade", bmAutobotPayload(x, pair)); | |
} | |
bmBuffer[pair].data.timestamp = new Date(x.timestamp); |
OlderNewer