Skip to content

Instantly share code, notes, and snippets.

View zhephree's full-sized avatar

Geoff Gauchet zhephree

View GitHub Profile
@zhephree
zhephree / restore_twitter_link_titles.user.css
Created October 13, 2023 18:13
UserScript: Restore Link Titles on Twitter Website
@zhephree
zhephree / .bash_profile
Last active June 19, 2023 18:49
This is my very personalized bash profile.
export NODE_PATH="/usr/local/lib/node_modules"
# custom prompt with git branch info, and custom colors
# looks like 🐊 😎 USERNAME:CURRENT_WORKING_DIRECTORY (CURRENT GIT BRANCH IF IN A REPO)$
source ~/.git-prompt.sh
export PS1="🐊 😎 \[\033[36m\]\u\[\033[m\]:\[\033[33;1m\]\w\[\033[32m\]\$(__git_ps1)\[\033[m\]\$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
#Shortcuts!
alias ll='exa --icons --group-directories-first -l' #better ll via exa. requires `brew install exa` and an icon compatible font from https://www.nerdfonts.com/font-downloads
@zhephree
zhephree / dabblet.css
Created April 30, 2013 14:06
Dashed Circle
/**
* Dashed Circle
*/
a {
height: 20px;
width: 20px;
border-color: #ccc;
border-width: 5px;
border-style: solid;
/****/
.wind {
-webkit-animation-name: light-wind;
-webkit-animation-duration: 1s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-direction: alternate;
color: transparent;
}
@-webkit-keyframes light-wind {
/**
* triangle
*/
body {
background: #f06;
min-height:100%;
}
@zhephree
zhephree / boringshit.js
Created May 14, 2012 21:53
Code Structure
/*
Normal, boring, difficult to read code.
*/
function text(a,b,c){
var foo, bar, zib, zab;
for(var g=0;g<1000;g++){
console.log(g);
}
@zhephree
zhephree / EnyoPlatform.js
Created February 20, 2012 14:41 — forked from ericblade/EnyoPlatform.js
Enyo kind for handling platform specific info
/* Enyo Platform encapsulation. Include this FIRST in your depends.js. The
* first call you make to a function inside it will cause it to perform it's
* detection (in the setup function). If you are running in PhoneGap, and your
* app depends on accurate results in here, make sure that you are not running
* any code that depends on this module until after the "deviceready" PhoneGap
* event is fired.
*
* This prefers direct access to APIs whenever possible - although you CAN run
* webOS and WebWorks apps with PhoneGap, I'm trying to avoid going through any
* extra layers here.
@zhephree
zhephree / framed.html
Created February 17, 2012 19:02
Cross-domain Self-resizing IFRAME
<html>
<head></head>
<body onload="iframeResizePipe()">
<iframe id="helpframe" src='' height='0' width='0' frameborder='0'></iframe>
<script type="text/javascript">
function iframeResizePipe()
{
// What's the page height?
var height = document.body.scrollHeight;
@zhephree
zhephree / dabblet.css
Created January 11, 2012 22:22 — forked from anonymous/dabblet.css
triangle
/**
* triangle
*/
body {
background: #f06;
min-height:100%;
}
@zhephree
zhephree / dabblet.css
Created January 11, 2012 22:20 — forked from anonymous/dabblet.css
triangle
/**
* triangle
*/
body {
background: #f06;
min-height:100%;
}