Skip to content

Instantly share code, notes, and snippets.

View WaylonWalker's full-sized avatar
💌
waylonwalker.com/newsletter

Waylon Walker WaylonWalker

💌
waylonwalker.com/newsletter
View GitHub Profile
/*-----------------------------------------------------------------------------
| Copyright (c) Jupyter Development Team.
| Distributed under the terms of the Modified BSD License.
|----------------------------------------------------------------------------*/
/*
The following CSS variables define the main, public API for styling JupyterLab.
These variables should be used by all plugins wherever possible. In other
words, plugins should not define custom colors, sizes, etc unless absolutely
necessary. This enables users to change the visual theme of JupyterLab
by changing these variables.
@WaylonWalker
WaylonWalker / index.css
Last active December 20, 2019 19:07
gistpad-test
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
background: rgb(77,31,77);
background: linear-gradient(153deg, rgba(77,31,77,1) 0%, rgba(255,79,245,1) 100%);
color: #e1e3be;
font-size: 3rem;
"""
I love using colorama to enhance my python print statements, but sometimes want it dependency free.
This module is an easy to copy clone of the best parts of colorama. I still use colorama most of
time, but on those occasions where I want no dependencies or cannot install it, I go for this.
"""
from types import SimpleNamespace
fore_colors = {
'BLACK': '\x1b[30m',
script.
document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] +
':35729/livereload.js?snipver=1"></' + 'script>')
script(src='https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js')
link(rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/atom-one-dark.min.css')
script.
hljs.initHighlightingOnLoad();
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@WaylonWalker
WaylonWalker / wsw_npm_global.sh
Last active January 6, 2018 20:34
My global npm installs for gulp
npm i -g gulp gulp-watch gulp-pug gulp-browserify gulp-sass browser-sync child_process pug
<link href='https://cdnjs.cloudflare.com/ajax/libs/c3/0.4.10/c3.min.css'
rel='stylesheet'
type='text/css'/>
<script src='https://d3js.org/d3.v3.min.js' charset='utf-8'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/c3/0.4.10/c3.min.js'></script>
<!-- https://rawgit.com/WaylonWalker/61c7588e6033f03fa3481f84107d5cac/raw/3756ca5982aaeb598663322ec49ccbe82da5f078/MakeoverMonday_1.html -->
<!-- Essential META Tags -->
<meta property="og:title" content="Makeover Monday 1-1-2018">
<meta property="og:description" content="Poultry Consumption Overtakes Red Meat">
<meta property="og:image" content="https://pbs.twimg.com/media/DSj5YQxX4AATurl.jpg">
@WaylonWalker
WaylonWalker / wsw_gulpfile.js
Created December 21, 2017 12:33
This is my base gulpfile that does everything I need. Not every project will need every component.
var gulp = require('gulp')
watch = require('gulp-watch')
pug = require('gulp-pug')
browserify = require('gulp-browserify')
sass = require('gulp-sass')
sourcemaps =
browserSync = require('browser-sync').create()
py_files = '**/*.py'
pug_files = 'templates/**/*.pug'
js_files = 'static/js/dev/**/*.js'