.block | |||||||
.block | .-modifier | ||||||
.block | __element | ||||||
.block | __element | .-modifier | |||||
.block | __element | --variation | |||||
.block | __element | --variation | .-modifier | ||||
.block | --variation | .block | __element | ||||
.block | __element | .-modifier |
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
<div class="class">asd</div> |
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
$es: '__'; | |
$vs: '--'; | |
$mp: '-'; | |
@function containsVariation($selector) { | |
$selector: selectorToString($selector); | |
@if str-index($selector, $vs) { | |
@return true; | |
} |
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
interface Conditional { | |
Boolean implies(Boolean b); | |
} | |
interface BiConditional { | |
Boolean equalTo(Boolean b); | |
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
<?php | |
require_once 'vendor/autoload.php'; | |
require_once 'container.php'; | |
$app = Container::getInstance(); | |
$app->bind('database', function($app) { | |
$database = new Illuminate\Database\Capsule\Manager($app); |
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
{ | |
"require": { | |
"tomzx/php-semver-checker": "^0.11.0" | |
} | |
} |
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
function php_exists() { | |
if ! [ -x "$(command -v php)" ]; then | |
echo 'b'; | |
return 0; | |
fi | |
echo 'a'; | |
return 1; | |
} |
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
curl -s https://api.github.com/users/jobapis/repos?per_page=200 | grep \"clone_url\" | awk '{print $2}' | sed -e 's/"//g' -e 's/,//g' | xargs -n1 git clone |
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/bash | |
# Replace variables $ENV{<environment varname>} | |
# (optional: $ENV{<environment varname>??<default value>} | |
# ---- | |
function ReplaceEnvironmentVariable() { | |
# - Parse environment variable placeholders. | |
# - The format should be $ENV{***} where *** should match |
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
# Remove all non-running containers: | |
`docker rm $(sort <(docker ps -q) <(docker ps -aq) | uniq -u)` |
OlderNewer