This file contains 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
m(x) = x^8 + x^4 + x^3 + x + 1 | |
a = 06 => x^2 + x | |
b = 2E => x^5 + x^3 + x^2 + x | |
a + b = x^5 + x^3 + 2x^2 + 2x | |
= x^5 + x^3 | |
a * b = x^7 + x^6 + x^5 + 2x^4 + 2x^3 + x^2 | |
= x^7 + x^6 + x^5 + x^2 | |
This file contains 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/bash | |
for f in `cat $1`; do | |
ping -c 1 -W 500 $f > /dev/null | |
rc=$? | |
if [[ rc -eq 2 ]]; then | |
echo $f; | |
fi; | |
done; |
This file contains 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/bash | |
# place this into your development directory (usually ~/Sites) | |
dir=$(cd `dirname $0` && pwd) | |
directories=(vendor node_modules temp log) | |
for dirname in "${directories[@]}" | |
do |
This file contains 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
for f in `find ckeditor/plugins/**/lang -type f`; do | |
grep -q "lang/[^(cs|en)].js" $f; | |
if [ $? -eq 1 ]; then | |
rm $f; | |
fi; | |
done |
This file contains 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/bash | |
for image in "$@" | |
do | |
NAME=`basename $image .webp` | |
echo $NAME | |
dwebp $image -o ~/Desktop/$NAME.png | |
done |
This file contains 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
const attrs = [ | |
['r', 'g', 'b'], | |
['l', 'm', 's'], | |
['cyan', 'magenta'], | |
['ano', 'ne'], | |
]; | |
let variants = []; |
This file contains 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
const Product = { | |
"attributes": [ | |
{ | |
"name": "Color", | |
"value": "red", // whatever | |
}, | |
{ | |
"name": "Size", | |
"value": 'M', |
This file contains 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
# install: composer require symplify/easy-coding-standard --dev | |
# dry-run: vendor/bin/ecs check src | |
# run: vendor/bin/ecs check src --fix | |
# ----------------------------- Step 1 ----------------------------- | |
services: | |
# use ::class | |
Symplify\CodingStandard\Fixer\Php\ClassStringToClassConstantFixer: ~ |
This file contains 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
# install: composer require symplify/easy-coding-standard --dev | |
# dry-run: vendor/bin/ecs check src | |
# run: vendor/bin/ecs check src --fix | |
# ----------------------------- Step 1 ----------------------------- | |
services: | |
# use ::class | |
Symplify\CodingStandard\Fixer\Php\ClassStringToClassConstantFixer: ~ |
This file contains 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
# install: composer require symplify/easy-coding-standard --dev | |
# dry-run: vendor/bin/ecs check src | |
# run: vendor/bin/ecs check src --fix | |
# ----------------------------- Step 1 ----------------------------- | |
services: | |
# use ::class | |
Symplify\CodingStandard\Fixer\Php\ClassStringToClassConstantFixer: ~ |
OlderNewer