Skip to content

Instantly share code, notes, and snippets.

Roger Pence rogerpence

Block or report user

Report or block rogerpence

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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>
View gist:189c2af069225bd8907e52551edb627c
Replaces lines 119 through 125
applyCrierAttributes(crierElement, crierInfo, options) {
crierElement.style.position = 'static';
crierElement.style.height = `${crierInfo.height}px`;
crierElement.setAttribute('data-height', `${crierInfo.height}px`);
@rogerpence
rogerpence / index.html
Last active Feb 15, 2019
Notifier skeleton
View index.html
<div class='container'>
<a id="clicker" href="#">Add a note</a>
</div>
<div class="notes-container">
<div class="note n1">Note 1</div>
<div class="note n2">Note 2</div>
<div class="note n3">Note 3
<a id="n3-click" href="#">Click</a>
</div>
You can’t perform that action at this time.