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
<?php | |
/* | |
* (c) Mark Badolato <mbadolato@gmail.com> | |
* | |
* This content is released under the {@link http://www.opensource.org/licenses/MIT MIT License.} | |
*/ | |
namespace Bado; |
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
module.exports = { | |
name: 'rules-delimiter', | |
syntax: ['scss'], | |
runBefore: 'strip-spaces', | |
setValue: function(value) { | |
if (typeof value === 'number') { | |
value = Array(value + 2).join('\n'); |
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
module.exports = { | |
name: 'group-size', | |
runBefore: 'tab-size', | |
syntax: ['css', 'scss', 'less'], | |
setValue: function(value) { | |
if (typeof value !== 'number') throw new Error('The option accepts only numbers'); | |
return Math.floor(value); |
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 | |
while read oldrev newrev ref | |
do | |
if [[ $ref =~ .*/master$ ]]; | |
then | |
echo "Master ref received. Deploying master branch to production..." | |
git --work-tree=/path/to/production --git-dir=/path/to/git checkout -f | |
else | |
echo "Ref $ref successfully received. Doing nothing: only the master branch may be deployed on this server." | |
fi |
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
diff --git a/additional-providers/hybridauth-odnoklassniki/Providers/Odnoklassniki.php b/additional-providers/hybridauth-odnoklassniki/Providers/Odnoklassniki.php | |
index ee8bc24..1474d91 100644 | |
--- a/additional-providers/hybridauth-odnoklassniki/Providers/Odnoklassniki.php | |
+++ b/additional-providers/hybridauth-odnoklassniki/Providers/Odnoklassniki.php | |
@@ -31,7 +31,7 @@ class Hybrid_Providers_Odnoklassniki extends Hybrid_Provider_Model_OAuth2 | |
Hybrid_Logger::debug( "OAuth2Client::request(). dump request params: ", serialize( $params ) ); | |
if( $type == "GET" ){ | |
- $url = $url . ( strpos( $url, '?' ) ? '&' : '?' ) . http_build_query( $params ); | |
+ $url = $url . ( strpos( $url, '?' ) ? '&' : '?' ) . http_build_query($params, '', '&'); |