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
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>
@rogerpence
rogerpence / gist:41616ea91b1c32db5764a6d7361fa653
Created Feb 7, 2019
System 76 Bonobo NVidia Ubuntu installation problem
View gist:41616ea91b1c32db5764a6d7361fa653
For fresh install
To get to boot menu, press Shift during boot
During get to Ubuntu screen to be able to enter commands with
Add this line to avoid nVidia video card problem
nouveau.modeset=0
https://community.linuxmint.com/tutorial/view/842
After installing Ubuntu 16.04 but before adding System 76-specific stuff and nVidia drives, my mouse worked but the
mouse cursor wasn't visible. If this is the case, use Ctrl/Alt T to bring a terminal window to install the
System 76-specific stuff and the nVidia drivers.
@rogerpence
rogerpence / gist:749dbf915ab45796a47286c9e7a17d07
Created Feb 7, 2019
nVidia video card problem when reinstalling Ubuntu on Bonobo
View gist:749dbf915ab45796a47286c9e7a17d07
For fresh install
To get to boot menu, press Shift during boot
During get to Ubuntu screen to be able to enter commands with
Add this line to avoid nVidia video card problem
nouveau.modeset=0
https://community.linuxmint.com/tutorial/view/842
After installing Ubuntu 16.04 but before adding System 76-specific stuff and nVidia drives, my mouse worked but the
mouse cursor wasn't visible. If this is the case, use Ctrl/Alt T to bring a terminal window to install the
System 76-specific stuff and the nVidia drivers.
You can’t perform that action at this time.