Skip to content

Instantly share code, notes, and snippets.

View danielgynn's full-sized avatar

Daniel Gynn danielgynn

View GitHub Profile
@danielgynn
danielgynn / euroSweepstakes.js
Last active June 8, 2021 08:32
Euro 2020 Sweepstakes Generator
const countries = [
'🇦🇹 Austria', '🇧🇪 Belgium', '🇭🇷 Croatia', '🇨🇿 Czech Republic', '🇩🇰 Denmark',
'🏴󠁧󠁢󠁥󠁮󠁧󠁿 England', '🇫🇮 Finland', '🇫🇷 France', '🇩🇪 Germany', '🇭🇺 Hungary',
'🇮🇹 Italy', '🇳🇱 Netherlands', '🇲🇰 North Macedonia', '🇵🇱 Poland',
'🇵🇹 Portugal', '🇷🇺 Russia', '🏴󠁧󠁢󠁳󠁣󠁴󠁿 Scotland', '🇸🇰 Slovakia', '🇪🇸 Spain',
'🇸🇪 Sweden', '🇨🇭 Switzerland', '🇹🇷 Turkey', '🇺🇦 Ukraine', '🏴󠁧󠁢󠁷󠁬󠁳󠁿 Wales'
];
const runSweepstake = () => {
const contenders = process.argv.slice(2);
<% include partials/head %>
<body>
<div class="col-sm-10 col-sm-offset-1">
<div class="text-center">
<h1><%= error.status %>: <%= message %></h1>
<pre><%= error.stack %></pre>
<a href="/" class="btn btn-default"><span class="fa fa-home"></span> Home</a>
</div>
</div>
<% include partials/head %>
<body>
<div class="col-sm-8 col-sm-offset-2">
<div class="text-center">
<h1 class=" fa fa-user"> Profile</h1><br>
<span><strong>user id</strong>: <%= user._id ? user._id : '' %></span><br>
<span class="fa fa-sign-out"><a href="/"> Sign out</a></span>
<hr>
<div class="jumbotron">
<% include partials/head %>
<body>
<div class="col-sm-8 col-sm-offset-2">
<div class="jumbotron text-center">
<h1><span class="fa fa-sign-in"></span> Signup</h1>
<% if (message != null) { %>
<div class="alert-danger"><%= message %></div>
<% } %>
<% include partials/head %>
<body>
<div class="col-sm-8 col-sm-offset-2">
<div class="jumbotron text-center">
<h1><span class="fa fa-sign-in"></span> Login</h1>
<% if (message != null) { %>
<div class="alert-danger"><%= message %></div>
<% } %>
@danielgynn
danielgynn / gulpfile.js
Last active August 16, 2022 09:06
Example gulpfile from the 'Automating your build tasks easily with Gulp.js' article.
var gulp = require('gulp'); // Require gulp
// Sass dependencies
var sass = require('gulp-sass'); // Compile Sass into CSS
var minifyCSS = require('gulp-minify-css'); // Minify the CSS
// Minification dependencies
var minifyHTML = require('gulp-minify-html'); // Minify HTML
var concat = require('gulp-concat'); // Join all JS files together to save space
var stripDebug = require('gulp-strip-debug'); // Remove debugging stuffs