Skip to content

Instantly share code, notes, and snippets.

View benbr-personal's full-sized avatar
🐙

Ben benbr-personal

🐙
  • Kraken
View GitHub Profile
@benbr-personal
benbr-personal / tech-test.md
Last active March 20, 2018 11:36
Front-end Tech Test

CryptoFacilities Front-end Tech Test

We'd like you to build a very small 'App' that takes a stream of historical trades and displays them to the user, data will be provided from a public websocket endpoint and the UI should update in real-time as new state is received from the websocket and a message should be displayed to users if the list is empty (e.g. state yet received from endpoint).

The websocket endpoint is wss://www.cryptofacilities.com/ws/v1 and once connected you need to send the messasge {"event":"subscribe","feed":"trade","product_ids":["FI_XBTUSD_180615"]} to retrieve the list of trades. This will return an initial trade_snapshot object which contains an array of trade objects, please display the product_id, qty and price props of these objects to the user, sorted by the time prop in descending order.

@benbr-personal
benbr-personal / gulpfile.babel.js
Last active March 8, 2019 10:12
Build Scripts using Webpack or Gulp.js
// ES5 + Angular 1.5.X
import gulp from 'gulp';
import concat from 'gulp-concat';
import wrap from 'gulp-wrap';
import uglify from 'gulp-uglify';
import htmlmin from 'gulp-htmlmin';
import gulpif from 'gulp-if';
import sass from 'gulp-sass';
import ngAnnotate from 'gulp-ng-annotate';
@benbr-personal
benbr-personal / progress-bar.html
Created April 13, 2016 21:47
Simple and lightweight scroll progress bar
<div class="scroll-progress">
<span class="scroll-progress--scrolled"></span>
</div>
@benbr-personal
benbr-personal / material-button.html
Last active February 23, 2016 14:21
Simple Material Design-ish hover effect button
<div class="button primary">
<a href="#">button text</a>
</div>