Two views of artefacts:
- [Artefacts in groups?]
- Artefacts as the prolongation of cognitive systems.
module LocalizeHelper | |
# Wraps I18n.localize to add support for Numbers l12n. | |
# | |
# @param value [Numeric|DateTime|Time|Date] The value to localize. | |
# @return [String] The localized value. | |
# @see <https://github.com/svenfuchs/i18n/issues/135> | |
def localize(value) | |
if value.is_a?(Numeric) | |
number_with_delimiter(value, locale: I18n.locale) |
<html> | |
<head> | |
<title>Async demo</title> | |
<style> | |
body { | |
width: 100%; | |
min-height: 8em; | |
border: 1px solid red; | |
} | |
</style> |
#!/bin/bash | |
# Partially upgrades Watai tests from v0.5 syntax to v0.6 | |
# Removes enclosing curly braces from Feature and Widget files | |
IFS=$(echo -en "\n\b") | |
for file in $(find -E "$1" -regex ".*(Feature|Widget)\.js$" -type f) | |
do | |
mv "$file" "$file~" | |
grep -v '^[{}]$' "$file~" | sed 's:^ ::g' > "$file" |
@-webkit-keyframes popAndBounce { | |
0%, 40% { | |
-webkit-transform: scale(1); | |
} | |
5% { | |
-webkit-transform: scale(0.9); | |
opacity: 0.7; | |
} | |
10%, 15%, 28%, 35% { | |
-webkit-transform: scale(1.2) translateX(0); |
/** Wraps a substring with the given prefix and suffix in a string. | |
* | |
*@param {String} hay The string in which the replacement is to occur. | |
*@param {String} needle The string to look for. Will be wrapped without case sensitivity, but will respect the case of the original string. | |
@param {String} prefix The string to insert before `needle`. | |
@param {String} suffix The string to insert after `needle`. | |
*/ | |
function wrap(hay, needle, prefix, suffix) { | |
var lowHay = hay.toLowerCase(), | |
lowNeedle = needle.toLowerCase(), |
/** Returns a string that looks like a function arguments list definition. | |
* | |
*@param {Number} count How many arguments should be generated. | |
*@returns {String} An arguments declaration list usable in a Function constructor. | |
*@private | |
*/ | |
function declareArguments(count) { | |
return new Array(count).join('arg,') + 'arg'; | |
} |