Skip to content

Instantly share code, notes, and snippets.

View RadBoris's full-sized avatar

Rad Borislavov RadBoris

View GitHub Profile
@eolant
eolant / Confirm.vue
Last active March 23, 2024 08:48
Vuetify Confirm Dialog component that can be used locally or globally
<template>
<v-dialog v-model="dialog" :max-width="options.width" :style="{ zIndex: options.zIndex }" @keydown.esc="cancel">
<v-card>
<v-toolbar dark :color="options.color" dense flat>
<v-toolbar-title class="white--text">{{ title }}</v-toolbar-title>
</v-toolbar>
<v-card-text v-show="!!message" class="pa-4">{{ message }}</v-card-text>
<v-card-actions class="pt-0">
<v-spacer></v-spacer>
<v-btn color="primary darken-1" text @click.native="agree">Yes</v-btn>
@misterhon
misterhon / ymapi_connect.php
Last active November 25, 2020 03:38
YourMembership API Requests in PHP
<?php
/**
* Authenticate user via the API
*
* Documentation:
* http://www.yourmembership.com/company/api-reference.aspx
*/
define( 'API_ENDPOINT', 'https://api.yourmembership.com' );
define( 'API_VERSION', '2.02' );
@bshyong
bshyong / python_bst.py
Last active March 11, 2021 23:09
Python BST implementation
class BSTnode(object):
"""
Representation of a node in a binary search tree.
Has a left child, right child, and key value, and stores its subtree size.
"""
def __init__(self, parent, t):
"""Create a new leaf with key t."""
self.key = t
self.parent = parent
self.left = None