I hereby claim:
- I am michaelbaudino on github.
- I am michaelbaudino (https://keybase.io/michaelbaudino) on keybase.
- I have a public key whose fingerprint is 8AD2 5BE0 7CC5 861E E6DF 222C B447 ACD3 845B D9F5
To claim this, I am signing this object:
<!-- | |
This configuration will tell Kodi to cache: | |
* without size limit | |
* 40 times more data than the minimum required | |
* on disk (rather than in RAM) | |
* even for local filesystems (so NFS, any FUSE-based filesystems are covered) | |
Copy this file in ~/.kodi/userdata/advancedsettings.xml (or merge it with the existing one) | |
--> |
function numberFormat(number, decimals, decPoint, thousandsSep) { // Shamelessly copied from http://locutus.io/php/number_format/ | |
number = (number + '').replace(/[^0-9+\-Ee.]/g, ''); | |
var n = !isFinite(+number) ? 0 : +number; | |
var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals); | |
var sep = (typeof thousandsSep === 'undefined') ? ',' : thousandsSep; | |
var dec = (typeof decPoint === 'undefined') ? '.' : decPoint; | |
var s = ''; | |
function toFixedFix(n, prec) { | |
var k = Math.pow(10, prec); |
#!/bin/bash | |
DOCKER_SYNC_LOGFILE="/tmp/docker-sync.log" | |
DOCKER_SYNC_SCREEN_NAME="docker-sync" | |
function start_docker_sync_screen_session { | |
# We start `docker-sync start` twice because it often updates some images on first run and when it does, | |
# it exits successfully but asking for a `docker-sync clean` and then another `docker-sync start` run ¯\_(ツ)_/¯ | |
local cmd="docker-sync clean && docker-sync start && docker-sync clean && docker-sync start" | |
screen -d -m -S ${DOCKER_SYNC_SCREEN_NAME} script -F ${DOCKER_SYNC_LOGFILE} bash -c "${cmd}" |
I hereby claim:
To claim this, I am signing this object:
def rails_version_matches?(requirement) | |
Gem::Requirement.new(requirement).satisfied_by? Gem::Version.new(::Rails::VERSION::STRING) | |
end | |
def rails_version_matches_any?(*requirements) | |
requirements.map{ |r| rails_version_matches?(r) }.reduce(:|) | |
end | |
def rails_version_matches_all?(*requirements) | |
requirements.map{ |r| rails_version_matches?(r) }.reduce(:&) |
This file is just to have a nicely named Gist. Do not care about it. |
fr: | |
errors: | |
messages: | |
invalid_date: "n'est pas un objet Date valide" | |
invalid_time: "n'est pas un objet Time valide" | |
invalid_datetime: "n'est pas un objet DateTime valide" | |
is_at: "doit être %{restriction}" | |
before: "doit être avant %{restriction}" | |
on_or_before: "doit être le ou avant le %{restriction}" | |
after: "doit être après %{restriction}" |
//// | |
//// Foundation Variables | |
//// | |
//// The default font-size is set to 100% of the browser style sheet (usually 16px) | |
//// for compatibility with brower-based text zoom or user-set defaults. | |
$base-font-size: 100% !default | |
//// $base-line-height is 24px while $base-font-size is 16px | |
// $base-line-height: 150% |