Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| <!-- | |
| Progressive Disclosure Demo - Updated 15 August, 2012 by Ros | |
| Thank you for taking a look under the hood of our progressive disclosure demo. Please note that this is a work in progress, so it's a tad messy and bound to change. | |
| If you have any questions, feel free to pop a line to support@campaignmonitor.com - we might learn something, too! | |
| Known bugs | |
| ---------- |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| // List all files in a directory in Node.js recursively in a synchronous fashion | |
| var walkSync = function(dir, filelist) { | |
| var fs = fs || require('fs'), | |
| files = fs.readdirSync(dir); | |
| filelist = filelist || []; | |
| files.forEach(function(file) { | |
| if (fs.statSync(dir + file).isDirectory()) { | |
| filelist = walkSync(dir + file + '/', filelist); | |
| } | |
| else { |
| require 'json' | |
| require 'yaml' | |
| VAGRANTFILE_API_VERSION = "2" | |
| confDir = $confDir ||= File.expand_path("~/.homestead") | |
| homesteadYamlPath = confDir + "/Homestead.yaml" | |
| homesteadJsonPath = confDir + "/Homestead.json" | |
| afterScriptPath = confDir + "/after.sh" | |
| aliasesPath = confDir + "/aliases" |
Makes 5 users each with 1 team that has 5 members
Add a team factory to database/factories/ModelFactory.php
$factory->define(App\Team::class, function (Faker\Generator $faker) {
return [
'name' => $faker->sentence,| <?php | |
| namespace App\Events; | |
| use Illuminate\Contracts\Broadcasting\ShouldBroadcast; | |
| use Illuminate\Queue\SerializesModels; | |
| class NewMessage extends Event implements ShouldBroadcast | |
| { | |
| let cssImport = require('postcss-import') | |
| let cssNext = require('postcss-cssnext') | |
| let glob = require('glob-all') | |
| let mix = require('laravel-mix') | |
| let purgeCss = require('purgecss-webpack-plugin') | |
| let tailwind = require('tailwindcss') | |
| mix.js('resources/assets/js/app.js', 'public/js') | |
| .postCss('resources/assets/css/app.css', 'public/css/app.css', [ | |
| cssImport(), |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
| { | |
| "name": "to-be-added", | |
| "version": "0.0.0", | |
| "sideEffects": false, | |
| "exports": { | |
| ".": { | |
| "import": "./dist-esm/bundle.min.mjs", | |
| "require": "./dist-cjs/bundle.min.cjs" | |
| }, | |
| "./server": "./server/index.js" |