Skip to content

Instantly share code, notes, and snippets.

View gists-app-test's full-sized avatar

gists-app-test

View GitHub Profile
@gists-app-test
gists-app-test / qs.js
Created September 12, 2012 14:31 — forked from nessthehero/qs.js
Get the query string(s)
function qs() {
var vars = [],
grabUrl = window.location.search,
parts,
pieces,
qs = '',
qsVals = [];
if (typeof arguments[0] == 'string') {
@gists-app-test
gists-app-test / ab.rb
Created September 12, 2012 14:31 — forked from andrerigon/ab.rb
ab fixed formula for homebrew in lion
require 'formula'
class Ab < Formula
homepage 'http://httpd.apache.org/docs/trunk/programs/ab.html'
url 'http://www.apache.org/dist/httpd/httpd-2.4.3.tar.bz2'
sha1 '0ef1281bb758add937efe61c345287be2f27f662'
def install
# Mountain Lion requires this to be set, as otherwise libtool complains
# about being "unable to infer tagged configuration"
@import "bootstrap/_mixins";
@mixin ribbon() {
position: absolute;
top: 35px;
right: 0;
background: #9E0800;
color: #fff;
line-height: inherit;
padding: 5px 30px;
@gists-app-test
gists-app-test / gist:3706976
Created September 12, 2012 14:29 — forked from cslroot/gist:3706800
redmine (bitnami) にfarend_fancyテーマを導入した.
git clone git://github.com/farend/redmine_theme_farend_fancy.git /Applications/YOUR_REDMINE_APP_NAME/apps/redmine/htdocs/public/themes/farend_fancy
@gists-app-test
gists-app-test / dabblet.css
Created September 12, 2012 14:29 — forked from kaelig/dabblet.css
Barlesque Reset CSS
/**
* Barlesque Reset CSS
*/
@gists-app-test
gists-app-test / eventListener.js
Created September 12, 2012 14:28 — forked from asimpson/eventListener.js
eventListener IE8 and below
/* window.addEventListener( "resize", mmListener);
mmListener();*/
if (window.addEventListener) {
window.addEventListener("resize", mmListener);
} else if (window.attachEvent) {
window.attachEvent("resize", mmListener);
}
mmListener();
@gists-app-test
gists-app-test / jquery.h5Accordion.a11y.example.html
Created September 12, 2012 14:28
h5Accordion: Accessible accordion script
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>JQuery h5Accordion example</title>
</head>
<body>
<h1>JQuery h5Accordion example</h1>
<div class="accordion" data-accordiontxt='{"open":"Afficher le contenu","close":"Masquer le contenu"}'>
module SpecHelpers
def setup_memory_db
databases_config = YAML.load_file(File.expand_path('../../config/database.yml', __FILE__))
connection = ActiveRecord::Base.establish_connection(databases_config['memory'])
load File.expand_path('../../db/schema.rb', __FILE__)
DatabaseCleaner[:active_record, :connection => connection]
DatabaseCleaner.strategy = :deletion
DatabaseCleaner.clean_with(:truncation)
DatabaseCleaner.start
@gists-app-test
gists-app-test / Cool Text.css
Created September 12, 2012 14:28 — forked from DeadlyBrad42/CoolText.css
Some of the coolest text styles that I've stolen from around the Internet.
.1
{
color: #222222;
text-decoration: none;
text-shadow: 1px 1px 0 #DDDDDD, 2px 2px 0 #BBBBBB;
}
.2.3d
{
color:rgba(0,255,255,0.5);
def positive_number(value):
if value <= 0.0:
raise ValidationError('%s is not greater than 0' % value)