Skip to content

Instantly share code, notes, and snippets.

View Randy1Burrell's full-sized avatar

Randy Burrell Randy1Burrell

View GitHub Profile
;;; plantuml_helpers.el --- Provides plantuml helper functions -*- lexical-binding: t -*-
;;; Commentary:
;; plantuml helper functions
;;; Code:
(require 'iimage)
(autoload 'iimage-mode "iimage" "Support Inline image minor mode." t)
(autoload 'turn-on-iimage-mode "iimage" "Turn on Inline image minor mode." t)
(add-to-list 'iimage-mode-image-regex-alist '("@startuml\s+\\(.+\\)" . 1))
;; Rendering plantuml
@Randy1Burrell
Randy1Burrell / Contra
Last active January 5, 2021 23:05
This is a description bugs in the resolvers in https://gist.github.com/danielrearden/8ae1b7d95aac06d41998ae1502674051 and possible fixes.
# Errors in resolvers
1. On line 82 getPayments was invoked with a function that should return a value. However it expects a
function that should return void. I would change the function signature to expect a function that will
return values.
2. On line 90 the return value of getCommentsByPostId is being assigned to post.comments as promises
and not actual comments and not being returned as is expected by Array.map. This will cause the
array values to be undefined and not be promises as required by Promise.all. Fixing this requires making
sure that the promises are returned, then resolving them before assigning the result to post.comments. Lastly
return the posts.
@Randy1Burrell
Randy1Burrell / md
Last active September 28, 2018 19:21
How to creating an iframe used to embed Livepeer tv and allow full screen on the embedded player.
The following steps allows you to create an embeddable iframe from Livepeer tv:
1. Visit the player's web page.
2. Scroll to the bottom of the page.
3. In the bottom right corner of the webpage click on the embed symbol <>.
4. Copy the contents of the pop up that appears.
5. The copied contents from step 4 can be pasted in any html page in order to embed the video.
6. If you would like to enable the option of user being able to make the video go full screen add the word "allowfullscreen" just before the first ">".
For Example
@Randy1Burrell
Randy1Burrell / update-route53.sh
Created November 18, 2017 19:13 — forked from phybros/update-route53.sh
BASH Script to keep Route53 updated with your current external IP address
#!/bin/bash
# (optional) You might need to set your PATH variable at the top here
# depending on how you run this script
# PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# Hosted Zone ID e.g. BJBK35SKMM9OE
ZONEID=(
"ZONEID-0"
"ZONEID-1"
"ZONEID-2"
@Randy1Burrell
Randy1Burrell / README-Template.md
Created August 11, 2017 16:06 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@Randy1Burrell
Randy1Burrell / .editorconfig
Last active August 17, 2020 17:06
My main configuration for tmux I download to new computers when setting them up for personal use with linux
# Set as the root configuration system wide
root = true
# Unix-style newlines with a new line ending every file
[*]
end_of_line = lf
# Remove trailing white spaces for every file type
trim_trailing_whitespace = true
# Matched different files
#Python
import numbers
import types
def arrayFlatten(A = [], b = []):
'''This function take one or two array and recursively
flattens array A'''
#Based case
#Making sure the size of A is greater than 0