Download parrott.sh and put it somewhere on your computer. eg Desktop.
In terminal, run:
sh parrott.sh folderA folderB
<i class="icon icon--play-1"></i> | |
<i class="icon icon--repeat-1"></i> | |
<i class="icon icon--x-1"></i> | |
<i class="icon icon--up-1"></i> | |
<i class="icon icon--right-1"></i> | |
<i class="icon icon--down-1"></i> | |
<i class="icon icon--left-1"></i> | |
<i class="icon icon--up-2"></i> | |
<i class="icon icon--right-2"></i> | |
<i class="icon icon--down-2"></i> |
{ | |
"name": "adrian/installer-test", | |
"license": "proprietary", | |
"type": "project", | |
"autoload": { | |
"psr-0": { | |
"": "src/", | |
"SymfonyStandard": "app/" | |
} | |
}, |
#!/bin/sh | |
CMD="make php-cs" | |
# Check if we actually have commits to push | |
commits=`git log @{u}..` | |
if [ -z "$commits" ]; then | |
exit 0 | |
fi |
#!/bin/bash | |
# Example usage | |
# -- | |
# | |
# ./db-backup.sh -u username -p password -t /target/ | |
while getopts u:p:t: option | |
do | |
case "${option}" |
<?php | |
$less = file_get_contents(__DIR__ . '/app.less'); | |
preg_match_all('/#([a-fA-F0-9]){3}(([a-fA-F0-9]){3})?\b/', $less, $matches); | |
$colors = array_values($matches[0]); | |
$colors = array_map(function($color){ return strtolower($color); }, $colors); | |
$colors = array_unique($colors); | |
sort($colors); |
SF.channel_selector = { | |
init: function($channel_selector) { | |
var self = this; | |
if ($channel_selector.length > 0) { | |
self.channel_selector = $channel_selector.addClass('selector'); | |
self.channel_tabs = self.channel_selector.find('.channel-tabs a'); | |
self.channel_strip = self.channel_selector.find('.channel-strip'); | |
self.channel_strip.css('width', (self.channel_tabs.length * 100) + '%' ); |
/\[accordion\]([^\[]+)\[\/accordion\]/ |
<table><?php | |
$css_file = 'foo/bar.css'; | |
$css = file_get_contents($css_file); | |
preg_match_all('/([a-zA-Z-]+)\:(.+)\;/', $css, $matches); | |
$totals = array(); | |
foreach ($matches[0] as $match) | |
{ |