This file contains hidden or 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
Sample gist 001. File 001. Line 001. |
This file contains hidden or 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
Sample gist 002. File 001. Line 001. |
This file contains hidden or 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
-bash-4.1$ /qa/tools/opt/git-1.6.5/bin/git status | |
/qa/tools/opt/git-1.6.5/bin/git: error while loading shared libraries: libcrypto.so.4: cannot open shared object file: No such file or directory | |
-bash-4.1$ git status | |
git: error while loading shared libraries: libcrypto.so.4: cannot open shared object file: No such file or directory |
This file contains hidden or 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/sh -eu | |
usage () { printf "%s file [time-in-minutes]\n" ${0##*/} >&2 ; } | |
test $# -eq 0 && { usage ; exit 2 ; } | |
WHAT=$1 | |
test -e $WHAT || { echo "$WHAT not found" >&2 ; exit 2 ; } | |
MINUTES=${2:-30} | |
case ${0##*/} in | |
older*) | |
test $(($(date +%s)-$(stat --printf "%Y\n" "$WHAT"))) -gt $(($MINUTES*60)) |
This file contains hidden or 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
13822 | |
17471 | |
15871 | |
18655 | |
18219 | |
18574 | |
14647 | |
13800 | |
17967 | |
15620 |
This file contains hidden or 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
def positive_number(value): | |
if value <= 0.0: | |
raise ValidationError('%s is not greater than 0' % value) |
This file contains hidden or 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
.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); |
This file contains hidden or 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
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 |
This file contains hidden or 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
<!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"}'> |
This file contains hidden or 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
/* window.addEventListener( "resize", mmListener); | |
mmListener();*/ | |
if (window.addEventListener) { | |
window.addEventListener("resize", mmListener); | |
} else if (window.attachEvent) { | |
window.attachEvent("resize", mmListener); | |
} | |
mmListener(); |
OlderNewer