Skip to content

Instantly share code, notes, and snippets.

@Gerst20051
Gerst20051 / dabblet.css
Created November 29, 2013 03:25 — 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 {
@Gerst20051
Gerst20051 / dabblet.css
Created November 29, 2013 03:36 — forked from anonymous/dabblet.css
Untitled
.wrapper:hover label{
background-position:left bottom;
}
label{
background:url('http://img833.imageshack.us/img833/5959/stard.png') no-repeat left bottom;
float:right;
line-height:20px;
padding-left:20px;
height:15px;
}
@Gerst20051
Gerst20051 / dabblet.css
Created November 29, 2013 03:37 — forked from anonymous/dabblet.css
Ratings Stars
/*
Ratings Stars
(with as little code as possible)
- Modified by @mprogano -
*/
.rating {
unicode-bidi: bidi-override;
direction: rtl;
text-align: center;
@Gerst20051
Gerst20051 / dabblet.css
Created November 29, 2013 03:37
Ratings Stars
/*
Ratings Stars
(with as little code as possible)
- Modified by @mprogano -
*/
.rating {
unicode-bidi: bidi-override;
direction: rtl;
text-align: center;
@Gerst20051
Gerst20051 / git.css
Last active December 11, 2016 02:33 — forked from neilgee/git.css
/*
* Set up your Git configuration
*/
git config --global user.email "you@yourdomain.com"
git config --global user.name "Your Name"
git config --global core.editor "nano"
@Gerst20051
Gerst20051 / .jshintrc
Last active August 29, 2015 14:11 — forked from artanisdesign/.jshintrc
Titanium .jshintrc
{
"bitwise": true,
"camelcase": true,
"eqeqeq": true,
"newcap": true,
"indent": 4,
"unused": true,
"onevar": true,
"undef": true,
"trailing": true,
@Gerst20051
Gerst20051 / ruleset.xml
Created January 16, 2015 20:35
PHP CodeSniffer Ruleset
<?xml version="1.0"?>
<ruleset name="AG">
<description>The Coding Standard.</description>
<arg name="tab-width" value="4"/>
<!-- PSR2 -->
<rule ref="PSR2.Classes.PropertyDeclaration"/>
<rule ref="PSR2.ControlStructures.ElseIfDeclaration"/>
<rule ref="PSR2.Files.EndFileNewline"/>
<rule ref="PSR2.Methods.FunctionCallSignature.SpaceAfterCloseBracket">
@Gerst20051
Gerst20051 / Swift Strings In JavaScript.js
Last active August 29, 2015 14:18
Swift Strings Interpolation In JavaScript
// http://jsfiddle.net/gerst20051/zhzuwoqe/
var language = 'swift';
var how_awesome = 'very awesome!!';
var string = 'hey i\'m a \\(language) string in disguise. \\(how_awesome)';
function parseString(data) {
var re = /\\\((.*?)\)/g;
return data.replace(re, function(match) {
return eval(match.replace(/\\/g, '').replace(/\(/g, '').replace(/\)/g, ''));