Skip to content

Instantly share code, notes, and snippets.

View ryanpcmcquen's full-sized avatar

Ryan McQuen ryanpcmcquen

View GitHub Profile
@ryanpcmcquen
ryanpcmcquen / .bash_profile
Last active July 30, 2023 22:31
.bash_profile for mac os
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
# Useful shortcut to push to all remotes:
gpa() {
git remote | xargs -L1 git push --all
}
# Master update function:
#!/bin/bash
#set -o verbose
#set -x
#set -v
#sed -e :a -e '$!N;s/ \n/,/;ta'
#start the file over and erase contents
echo '' > details.csv
#write the column headings
@ryanpcmcquen
ryanpcmcquen / ricerocks.py
Last active August 29, 2015 14:00 — forked from csaez/ricerocks.py
ricerocks
# Mini-project #8 - "RiceRocks" (Asteroids)
#
# 'Introduction to Interactive Programming in Python' Course
# RICE University - coursera.org
# by Joe Warren, John Greiner, Stephen Wong, Scott Rixner
import simplegui
import math
import random
@ryanpcmcquen
ryanpcmcquen / gist:860b6cf5f82ea26dcebd
Created August 30, 2014 23:48
Xorg.0.log (nvidia gtx860m slackware)
[ 232.817]
X.Org X Server 1.15.2
Release Date: 2014-06-27
[ 232.817] X Protocol Version 11, Revision 0
[ 232.817] Build Operating System: Slackware 14.2 Slackware Linux Project
[ 232.817] Current Operating System: Linux slack64-w230ss 3.14.17 #1 SMP Mon Aug 25 14:09:09 CDT 2014 x86_64
[ 232.817] Kernel command line: auto BOOT_IMAGE=3.14.17 ro root=801 vt.default_utf8=1 nomodeset
[ 232.818] Build Date: 24 August 2014 03:44:51PM
[ 232.818]
[ 232.818] Current version of pixman: 0.32.6
@ryanpcmcquen
ryanpcmcquen / dabblet.css
Created September 5, 2014 16:23 — forked from chriscoyier/dabblet.css
Ratings Stars
/*
Ratings Stars
(with as little code as possible)
*/
.rating {
unicode-bidi: bidi-override;
direction: rtl;
text-align: center;
}
.rating > span {
@ryanpcmcquen
ryanpcmcquen / dabblet.css
Created September 6, 2014 02:50 — forked from LeaVerou/dabblet.css
3D cube
/**
* 3D cube
*/
body {
perspective: 600px;
perspective-origin: 300px -90px;
}
.cube, .cube:before, .cube:after,
@ryanpcmcquen
ryanpcmcquen / dabblet.css
Created September 6, 2014 02:51 — forked from LeaVerou/dabblet.css
Animation on hover (right way)
/**
* Animation on hover (right way)
*/
div {
width: 9em;
padding: .6em 1em;
margin: 2em auto;
background: yellowgreen;
animation: spin 1s linear infinite;
@ryanpcmcquen
ryanpcmcquen / dabblet.css
Created September 6, 2014 02:51 — forked from LeaVerou/dabblet.css
Image slider with pure CSS
/**
* Image slider with pure CSS
* Original version in http://demosthenes.info/blog/css
*/
.image-slider {
position:relative;
display: inline-block;
line-height: 0;
}
@ryanpcmcquen
ryanpcmcquen / dabblet.css
Created September 6, 2014 03:53
3 responsive columns
/* 3 responsive columns */
@media all and (min-width: 1080px) {
.box {
float: left;
}
.box:nth-child(-n+2) {
margin-right: 1em;
}
.box-container {
@ryanpcmcquen
ryanpcmcquen / dabblet.css
Created September 8, 2014 22:54
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: white;
background: linear-gradient(45deg, orange, purple);
min-height: 100%;