A Pen by Paul Scarrone on CodePen.
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
var Elixir = require('laravel-elixir'); | |
var config = Elixir.config; | |
var TestingTask = require('laravel-elixir/tasks/shared/Tests'); | |
/* | |
|---------------------------------------------------------------- | |
| Jest Testing | |
|---------------------------------------------------------------- | |
| | |
*/ |
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
<?php | |
namespace App\Console\Commands; | |
use Exception; | |
use Illuminate\Console\Command; | |
use Symfony\Component\Process\ProcessUtils; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\Process\PhpExecutableFinder; |
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
/*eslint-disable no-undef */ | |
var path = require('path') | |
var webpack = require('webpack') | |
module.exports = { | |
context: __dirname + '/src', | |
entry: './app.js', | |
output: { | |
filename: 'app.js', | |
path: __dirname + '/dist' |
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
#include <iostream> | |
int main() { | |
const int SIZE = 10; | |
int unsorted[SIZE] = {5,3,8,4,1,2,9,6,0,7}; | |
for (int i = 0 ; i < ( SIZE - 1 ); i++) { | |
for (int j = 0 ; j < SIZE - i - 1; j++) { | |
std::cout << unsorted[i] << " " << unsorted[j] << std::endl; | |
if (unsorted[j] > unsorted[j+1]){ |
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
#include <iostream> | |
int main() { | |
int x = 5; | |
int y = 10; | |
std::cout << "Orig: x = " << x << std::endl | |
<< " y = " << y << std::endl; | |
x = x + y; |
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
#include <iostream> | |
int main() { | |
const int SIZE = 10; | |
int unsorted[SIZE] = {5,3,1,6,8,2,9,0,4,7}; | |
for(int i = 0; i < SIZE - 1; i++){ | |
int current_pos = i; | |
for(int j = i + 1; j < SIZE; j++){ | |
if(unsorted[j] < unsorted[current_pos]){ |
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
#include <iostream> | |
int main(int argc, char* argv[]) { | |
const int SIZE = 12; | |
std::string* months = new std::string[SIZE]; | |
int* max_days = new int[SIZE]; | |
months[0] = "january"; | |
max_days[0] = 31; |
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
// If we are initializing the file | |
argv = ["C:/config.exe", "init"] | |
// If we are editing first_name | |
argv = ["C:/config.exe", "edit", "cypher"] | |
BEGIN | |
if argv[1] == "init" | |
string first_name = "" | |
open file "./config" for writing | |
do | |
output "Enter first name" |
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
//eonasdan-bootstrap-datetimepicker | |
jQuery('#datetimepickerStart').datetimepicker({ | |
sideBySide: true | |
}); | |
jQuery('#datetimepickerStop').datetimepicker({ | |
sideBySide: true, | |
useCurrent: false //Important! See issue #1075 | |
}); | |
jQuery('#datetimepickerStart').on('dp.change', function (e) { |