This file contains 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
// CONVERT HTML TO TEXT | |
var returnText = htmlSource; | |
//-- remove BR tags and replace them with line break | |
returnText=returnText.replace(/<br>/gi, "\n"); | |
returnText=returnText.replace(/<br\s\/>/gi, "\n"); | |
returnText=returnText.replace(/<br\/>/gi, "\n"); | |
//-- remove P and A tags but preserve what's inside of them | |
returnText=returnText.replace(/<p.*>/gi, "\n"); | |
returnText=returnText.replace(/<a.*href="(.*?)".*>(.*?)<\/a>/gi, " $2 ($1)"); | |
//-- remove all inside SCRIPT and STYLE tags |
This file contains 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
-- Remove the history from | |
rm -rf .git | |
-- recreate the repos from the current content only | |
git init | |
git add . | |
git commit -m "Initial commit" | |
-- push to the github remote repos ensuring you overwrite history | |
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git |
This file contains 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 fs = require('fs'); | |
const fileName = './package.json'; | |
let file = require(fileName); | |
console.log(file.name); | |
if (file.name == "ask-cli") { | |
file.name="ask-cli-x"; | |
console.log("Changed name ask-cli to name ask-cli-x"); | |
} |
This file contains 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 | |
# Written Originally by @VoiceTechGuy1 - GOLDZULU 2020-06-11 | |
# Update the remote ADC Interaction Model with the locale ones | |
# Need to be located at the root of the alexa skill sdk project | |
# Please modify as needed to customize for your own needs | |
# Do not use it as is! | |
# use the get-skill-id.js file to get the skill id for the current alexa skill project | |
# check the blog at https://dzone.com/articles/syncing-local-alexa-skills-json-files-with-alexa-d |
This file contains 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 fs = require('fs'); | |
const path = require('path'); | |
const CONFIG_FILE = '.ask/ask-states.json'; | |
const CONFIG_FILE_V1 = '.ask/config'; | |
// Break the path into an array of folders and filter out | |
// the empty entry for the leading '/' | |
const folders = process.env.PWD.split('/').filter(Boolean); |
This file contains 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
{ | |
"type": "APL", | |
"version": "1.4", | |
"settings": {}, | |
"theme": "dark", | |
"import": [], | |
"resources": [], | |
"styles": {}, | |
"onMount": [], | |
"graphics": { |
This file contains 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
{ | |
"type": "APL", | |
"version": "1.4", | |
"settings": {}, | |
"theme": "dark", | |
"import": [], | |
"resources": [], | |
"styles": {}, | |
"onMount": [], | |
"graphics": {}, |
This file contains 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
{ | |
"document": { | |
"type": "APL", | |
"version": "1.4", | |
"theme": "dark", | |
"import": [ | |
{ | |
"name": "alexa-layouts", | |
"version": "1.2.0" | |
} |
This file contains 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
{ | |
"type": "APL", | |
"version": "1.4", | |
"settings": {}, | |
"theme": "dark", | |
"import": [], | |
"resources": [], | |
"styles": {}, | |
"onMount": [], | |
"graphics": {}, |
This file contains 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
{ | |
"askcliStatesVersion": "2020-03-31", | |
"profiles": { | |
"ddm": { | |
"skillId": "", | |
"skillInfrastructure": { | |
"@ask-cli/lambda-deployer": { | |
"deployState": {} | |
} | |
} |
OlderNewer