This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Ratings Stars | |
(with as little code as possible) | |
*/ | |
.rating { | |
unicode-bidi: bidi-override; | |
direction: rtl; | |
text-align: center; | |
} | |
.rating > span { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 3D cube | |
*/ | |
body { | |
perspective: 600px; | |
perspective-origin: 300px -90px; | |
} | |
.cube, .cube:before, .cube:after, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Animation on hover (right way) | |
*/ | |
div { | |
width: 9em; | |
padding: .6em 1em; | |
margin: 2em auto; | |
background: yellowgreen; | |
animation: spin 1s linear infinite; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Image slider with pure CSS | |
* Original version in http://demosthenes.info/blog/css | |
*/ | |
.image-slider { | |
position:relative; | |
display: inline-block; | |
line-height: 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 3 responsive columns */ | |
@media all and (min-width: 1080px) { | |
.box { | |
float: left; | |
} | |
.box:nth-child(-n+2) { | |
margin-right: 1em; | |
} | |
.box-container { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: white; | |
background: linear-gradient(45deg, orange, purple); | |
min-height: 100%; |
OlderNewer