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
#!/usr/bin/env bash | |
# Replace the text PATH_TO_YOUR_DROPBOX_FOLDER with the path to your Dropbox folder (e.g. /home/user/Dropbox) | |
DROPBOX_FOLDER="PATH_TO_YOUR_DROPBOX_FOLDER" | |
# DO NOT CHANGE ANYTHING BELOW THIS LINE | |
# ====================================== | |
PDF_MERGE_WORK_FOLDER="$HOME/pdfmerge" |
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
const hexToRgb = (hex) => { | |
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex) | |
return result ? { | |
r: parseInt(result[1], 16), | |
g: parseInt(result[2], 16), | |
b: parseInt(result[3], 16) | |
} : null; | |
} | |
module.exports.hexToRgb = hexToRgb; |
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 instance symbol should be defined in the scope | |
* in which you want the singleton to exist. This does | |
* not necessarily mean globally. Just within your | |
* execution context. | |
*/ | |
let instance | |
const Singleton = (() => { | |
const createInstance = () => { |
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 | |
yum update -y | |
yum install httpd php php-mysql -y | |
cd /var/www/html | |
echo "healthy" > healthy.html | |
wget https://wordpress.org/wordpress-latest.tar.gz | |
tar -xzf wordpress-latest.tar.gz | |
cp -r wordpress/* /var/www/html/ | |
rm -rf wordpress | |
rm -rf wordpress-*.tar.gz |
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
app: aws-pdf-merge | |
org: iconify | |
service: pdf-workflow | |
custom: ${file(./yml/custom.yml)} | |
# ================================================================================================ | |
# PROVIDER | |
# ================================================================================================ | |
provider: |
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 instance symbol should be defined in the scope | |
* in which you want the singleton to exist. This does | |
* not necessarily mean globally. Just within your | |
* outermost execution context. | |
*/ | |
let instance; | |
const Singleton = (() => { | |
const createInstance = () => { |
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
/** | |
* Usage : resizeSelectedItems(getUserInput()) | |
* | |
* ========= | |
* CAUTION : This script will scale all selected items. It cannot determine if an object is simple or compound. | |
* ========= It is best to group compound objects made up of multiple PageItems. | |
* | |
* `getUserInput` is separated so you can easily use the main function, `resizeSelectedItems`, | |
* in your code. Make sure the input to `resizeSelectedItems` is a string indicating the | |
* new size. The options are: |
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
/* | |
* Usage: | |
* | |
* You can load this class either via html <script/> tag: | |
* <script src="path/to/jsx-console.js"></script> | |
* | |
* Or Using require: | |
* const jsxConsole = require('/path/to/jsx-console/jsx-console.js'); | |
* | |
* Then, in your JSX code, use the console object the same as you would the browser console class. |