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
<?php get_header(); ?> | |
<div id="content"> | |
<div id="inner-content" class="row"> | |
<main id="main" class="large-8 medium-8 columns" role="main"> | |
<ul class="accordion" data-accordion role="tablist"> | |
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
// PACKAGE.JSON // | |
{ | |
"name": "JointsWP-Builder", | |
"version": "4.0.0", | |
"description": "Converts Sass version to CSS version.", | |
"repository": { | |
"type": "git", | |
"url": "" | |
}, | |
"author": "Jeremy Englert", |
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
/****************************************************************** | |
Stylesheet: Main Stylesheet | |
Here's where the magic happens. Here is where you import | |
all of your Sass files so they can compile into one | |
CSS file. | |
******************************************************************/ |
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
import asyncio | |
import random | |
import time | |
async def myCoroutine(id): | |
process_time = random.randint(1,5) | |
await asyncio.sleep(process_time) | |
print("Coroutine {}, has finished after {} seconds.".format(id, process_time)) | |
async def main(): |
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
import random | |
import time | |
def myCoroutine(id): | |
process_time = random.randint(1,5) | |
time.sleep(process_time) | |
print("Coroutine {}, has finished after {} seconds.".format(id, process_time)) | |
def main(): | |
start = time.time() |
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
import nltk | |
from nltk.corpus import twitter_samples | |
##### | |
##### SENTIMENENT FUNCTION | |
##### | |
def naiveBayesSentimentCalculator(review): | |
problemInstance = review.split() | |
problemFeatures = extract_features(problemInstance) | |
return trainedNBClassifer.classify(problemFeatures) |
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
inquirer | |
.prompt([ | |
{ | |
type: 'list', | |
name: 'framework', | |
message: 'What framework would you like to install?', | |
choices: ['None', 'Foundation', 'Bootstrap'], | |
} | |
]) | |
.then(answers => { |
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
async function startTheme() { | |
try { | |
const answers = await inquirer.prompt(questions); | |
const themeSetup = await Promise.all ([ | |
downloadFramework(answers.framework), // This task takes some time to run | |
installFramework(answers.framework), | |
changeThemeName(answers.themeName), | |
changeNamespace(answers.themeNamespace), | |
changeLocalUrl(answers.themeLocalUrl) | |
]) |
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
// Sets Beaver Builder as the default editor. | |
function make_beaver_builder_default( $post_ID, $post, $update ) { | |
if ( ! $update ) { | |
update_post_meta( $post_ID, '_fl_builder_enabled', true ); | |
} | |
} | |
add_action( 'wp_insert_post', 'make_beaver_builder_default', 10, 3 ); |
OlderNewer