This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |