Skip to content

Instantly share code, notes, and snippets.

View dantrevino's full-sized avatar
💭
I may be slow to respond.

Dan Trevino dantrevino

💭
I may be slow to respond.
View GitHub Profile
@dantrevino
dantrevino / btc-collateralization.md
Created December 8, 2023 05:58 — forked from abdelghafour/BTC Collateralization.md
BTC Collateralization Through Flow API

Create the collateral:

const headers = { Authorization: MY_COMPANY_API_KEY };
const data = {
  where: {},
  data: {
    fee: 100,
    borrower: {
      cardinal: {
 amount: 100,
@dantrevino
dantrevino / README.md
Created April 4, 2019 17:35 — forked from fanvyr/README.md
A smooth registration form

Registration Form

Demo registration-demo

Notes

API check
The snippet tries to verify if the mail is okay or bad in general by reaching out to my/a backend.
Therefor the statuscode is important: return a 2xx for okay, and a 4xx with a message for not okay.

@dantrevino
dantrevino / VerticalTabs.vue
Created December 5, 2018 04:32 — forked from jacekkarczmarczyk/VerticalTabs.vue
Vuetify vertical tabs
<template>
<div :style="containerStyle" class="vertical-tabs" :class="{'vertical-tabs--vertical-text': verticalText, 'vertical-tabs--horizontal-text': !verticalText}">
<v-tabs :value="value" @input="$emit('input', $event)" :show-arrows="verticalText" :color="color" :slider-color="sliderColor" :style="tabsStyle">
<v-tab v-for="item in items" :key="item">{{ item }}</v-tab>
</v-tabs>
</div>
</template>
<script>
export default {