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 path = require('path'); | |
// Used to create a local server | |
const BrowserSyncPlugin = require('browser-sync-webpack-plugin'); | |
// Use to minify JS | |
const UglifyJSPlugin = require('uglifyjs-webpack-plugin'); | |
// Used to compile Sass into CSS | |
const MiniCssExtractPlugin = require("mini-css-extract-plugin"); |
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 ); |
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
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
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
<?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", |
NewerOlder