Skip to content

Instantly share code, notes, and snippets.

Instructions:

  1. Download this application skeleton.
  2. Convert the app to use AJAX.
  3. Add any files you changed to your gist and submit your code.
@tlrjs
tlrjs / index.html
Last active December 19, 2015 07:19 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>
@tlrjs
tlrjs / zoo.js
Last active December 19, 2015 07:29 — forked from dbc-challenges/zoo.js
//------------------------------------------------------------------------------------------------------------------
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here.
//------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------
// DRIVER CODE: Do **NOT** change anything below this point. Your task is to implement code above to make this work.
//------------------------------------------------------------------------------------------------------------------
@tlrjs
tlrjs / components.my-component.js
Last active May 12, 2016 20:42
Dynamic Component Rendering
import Ember from 'ember';
export default Ember.Component.extend({
componentNameWithAttr: Ember.computed(function() {
return 'sub-component subComponentAttr1="hello"';
}),
componentName: Ember.computed(function() {
return 'sub-component';
})
});
// Remember to bring in three.js and here is the script for the trackball controls as well:
// https://cdn.rawgit.com/mrdoob/three.js/dev/examples/js/controls/TrackballControls.js
//RENDERER
const renderer = new THREE.WebGLRenderer({
canvas: document.getElementById('canvas'),
antialias: true
});
renderer.setClearColor(0x25c8ce);
renderer.setPixelRatio(window.devicePixelRatio);
Payment for 3 additional months of dedicated RPC nodes to Triton [https://rpcpool.com/](https://rpcpool.com/).
More discussion here: [https://forum.mango.markets/t/ongoing-rpc-services/171/6](https://https://forum.mango.markets/t/ongoing-rpc-services/171/6)
async awaitTransactionSignatureConfirmation(
txid: TransactionSignature,
timeout: number,
confirmLevel: TransactionConfirmationStatus,
) {
let done = false;
const confirmLevels: (TransactionConfirmationStatus | null | undefined)[] =
['finalized'];
@tlrjs
tlrjs / gist:d16c17221ea987e07dd891fe9fcab8f6
Created February 11, 2022 18:43
Change base RAY-PERP fees
Change base RAY-PERP fees to -3 bps maker and 4 bps taker. This is to accomodate the new referral links feature.
@tlrjs
tlrjs / gist:f73b240fd52a04d04e4984c3c851898a
Created February 11, 2022 18:56
Change base FTT-PERP fees
Change base FTT-PERP fees to -3 bps maker and 4 bps taker. This is to accomodate the new referral links feature.
@tlrjs
tlrjs / gist:44afb1094baea15a1d9b048f0c76a989
Created February 11, 2022 19:08
Change base BNB-PERP fees
Change base BNB-PERP fees to -3 bps maker and 4 bps taker. This is to accomodate the new referral links feature.