Skip to content

Instantly share code, notes, and snippets.

View basic index.html for testing Tailwind
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Test Tailwind</title>
<link rel="stylesheet" href="/dist/css/tailwind.css">
</head>
@rogerpence
rogerpence / postcss.config.js
Created Jul 12, 2020
Basic postcss config file for Tailwind
View postcss.config.js
const autoprefixer = require('autoprefixer');
const tailwindcss = require('tailwindcss')
module.exports = {
plugins: [
tailwindcss,
autoprefixer,
],
};
View tailwind.main.css
/*! purgecss start ignore */
@import "tailwindcss/base";
@import "./tailwind.base.css";
@import "tailwindcss/components";
@import "./tailwind.components.css";
/*! purgecss end ignore */
/*
Tailwindcss/utilities comprises more than 99% of Tailwind's raw output.
@rogerpence
rogerpence / main.py
Created Mar 5, 2020
Custom main.py for Pycco with my changes for AVR code
View main.py
#!/usr/bin/env python
"""
"**Pycco**" is a Python port of [Docco](http://jashkenas.github.com/docco/):
the original quick-and-dirty, hundred-line-long, literate-programming-style
documentation generator. It produces HTML that displays your comments alongside
your code. Comments are passed through [Markdown][markdown] and
[SmartyPants][smartypants][^extensions], while code is passed through
[Pygments](http://pygments.org/) for syntax highlighting.
[markdown]: http://daringfireball.net/projects/markdown/syntax
@rogerpence
rogerpence / .gitignore
Last active Apr 23, 2020
.gitignore for Python/Django/Node
View .gitignore
######################
# Python #
######################
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
core/settings_*.py
View gist:0bf4db96bc84d44b044617387334d709
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC22FESRx8JziP9G5QLOoFVr7dkpFllSu9MHIUtT7ZQ3N29HS14padubovrJ8WAR4m2cR9dK3eCAG+gkHQkvPCjyapIPE+l2l31znKd2QTlfx8QXYm4UtGBFsLLdZ8qbvo7vPpKoiTwCTXdqMRkwt74i0NaP1tTMLVYu9MFGIUbzuF7Do0LiBmmznv9d/yytl9GZ6kNhpBAMEk+HEKdrMOsivMBuT0zRpEEuYbG4VmElWBsHd/MrcTPD8Lu2yXHMIUL5dHfg+7PKrOVUPhWp9rUNy08GX8xcMPNjbRvzc3VH+0z47V/K5De/1TDME5KHvFObnD98gVWqGWKpuQKUSAt8l3ZP/IAsXQBShp09KvL+dRRQRagr5+lIzCs16AacnCj9ql06SbIhhd3RLLItmyIlqtUQbKrVIm2611PJC5cIU1y7l196msqHfsDT3bfAuttkpNVF6DQyaZM6oKxCzWFZBhvSuD4zxnlcgroMSFzE4W4Dx56eumDLXEzsVYNXopXqD60e6tG2rk1WZ/KIm/RV5a5dr1dVDxypdD4vDI2Mv08fy2X6KklZTAmbob6G5TFObsM2bLRBBnHa0kKuZYqLG3rQmjvA4k1AEprh+JZ8YI4DTc4IGnrBLARaVIAAnVnolAfFQZd3TXimGRD0QbT16zvEt31GBjqF2kcyvhRsQ== roger.pence@gmail.comCURL
@rogerpence
rogerpence / yReveal.js
Created May 27, 2019
yReveal - this didn't work but I wanted to save the code.
View yReveal.js
var rp = rp || {};
rp.YReveal = function(actionElemSelector, contentElemSelector, screenBreakpoint=0) {
const clicker = document.querySelector(actionElemSelector);
const elem = document.querySelector(contentElemSelector);
if (!clicker) {
throw('No action element to toggle show/hide found.');
}
View gist:69254d6f6f65e1d102341776ed4c86ed
// Place your key bindings in this file to overwrite the defaults
[{
"key": "alt+1",
"command": "-workbench.action.openEditorAtIndex1"
},
{
"key": "alt+1",
"command": "workbench.action.toggleSidebarVisibility"
},
{
View .gitconfig
[user]
name=Roger Pence
email=roger.pence@gmail.com
[credential]
helper = wincred
[http]
postBuffer = 524288000
[alias]
undocommit = git reset --hard HEAD^
cm = !git add -A && git commit -m
View gist:8236f98619ec0cba1e46c85391cb3aa6
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="index.css">
</head>
<body>
You can’t perform that action at this time.