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
# | |
# | |
# | |
cat /etc/apt/sources.list | perl -ne '$H{$_}++ or print' > /tmp/sources.list && sudo mv /tmp/sources.list /etc/apt/sources.list |
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
wget https://release.gitkraken.com/linux/gitkraken-amd64.deb | |
sudo dpkg -i gitkraken-amd64.deb |
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
curl -L -sS https://getcomposer.org/composer.phar -o composer.phar |
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 | |
/** | |
* | |
* @author Marco Bunge <mjls@web.de> | |
* @copyright 2015 Marco Bunge | |
* @license http://opensource.org/licenses/MIT | |
* | |
* For the full copyright and license information, please view the LICENSE.txt | |
* file that was distributed with this source code. |
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
/** | |
* Created by Marco Bunge on 18.08.2015. | |
* Inspired by http://ryanalberts.com/797/parsley-validation-with-angularjs/ | |
*/ | |
(function (angular, jq, window, document) { | |
'use strict'; | |
//var ngParsley = angular.module('parsley', []) | |
//ngParsley.constant('parsleyConfig', {}); | |
var ngParsleyJs = angular.module('parsley', []); |
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
/** | |
* @author Marco Bunge <marco_bunge@web.de> | |
* @copyright 2015 Marco Bunge http://marco-bunge.de | |
* @licence MIT http://opensource.org/licenses/MIT | |
* | |
* Get in touch and follow me at twitter http://twitter.com/makk_eightbit! Thank you! | |
* | |
* Adjust element to an aspect ratio based on height or width. | |
* Default aspect ratio is 16:9 (tv) | |
* Usage: |
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
/** | |
* @author Marco Bunge <marco_bunge@web.de> | |
* @copyright 2015 Marco Bunge http://marco-bunge.de | |
* @licence MIT http://opensource.org/licenses/MIT | |
* | |
* Get in touch and follow me at twitter http://twitter.com/makk_eightbit! Thank you! | |
* | |
* Inversion of control for dom elements. | |
* Allows you to bind custom logic, plugins, etc. to a dom element. | |
* The binding is referencing passed data attributes. |
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 | |
/** | |
* @author Marco Bunge <marco_bunge@web.de> | |
* @copyright 2015 Marco Bunge | |
* Get in touch and follow at twitter http://twitter.com/makk_eightbit! Thank you! | |
*/ | |
/** | |
* Class Input | |
*/ |
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
//Plain method | |
var numberFormat = function (number, decPlaces, decSeparator, thouSeparator) { | |
decPlaces = isNaN(decPlaces = Math.abs(decPlaces)) ? 2 : decPlaces; | |
decSeparator = decSeparator == undefined ? "." : decSeparator; | |
thouSeparator = thouSeparator == undefined ? "," : thouSeparator; | |
var roundAndReduceDecimals = function (num, length) { | |
return Math.round(num * Math.pow(10, length)) / Math.pow(10, length); | |
}; |
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
var gulp = require('gulp'); | |
var sys = require('sys'); | |
var gutil = require('gulp-util'); | |
var exec = require('gulp-exec'); | |
gulp.task('phpunit', function() { | |
gulp.src('./tests').pipe( | |
exec('phpunit --bootstrap tests/bootstrap.php -c tests/phpunit.xml tests/', function(error, stdout){ | |
sys.puts(stdout); | |
return false; |
NewerOlder