$('#example').dataTable( {
"initComplete": function( settings, json ) {
console.log( "Finished loading" );
}
} );
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
# Local reset: | |
git reset --hard fj5789sufj | |
# Remote reset: | |
git push -f origin fj5789sufj:master |
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
# Checkout a tag | |
git checkout tags/0.0.3 | |
# Checkout a branch | |
git checkout 0.0.3 |
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
# Use http://xdebug.org/wizard.php to generate similar instructions to below for your setup based on your phpinfo() output | |
cd /tmp | |
wget http://xdebug.org/files/xdebug-2.4.0rc3.tgz | |
tar -xvzf xdebug-2.4.0rc3.tgz | |
cd xdebug-2.4.0RC3 | |
phpize | |
./configure | |
make | |
sudo cp modules/xdebug.so /usr/local/php70/lib/php/extensions/no-debug-non-zts-20151012 | |
sudo nano /etc/php7/php.ini |
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
# Ubuntu 14 | |
sudo nano /etc/rc.local | |
mount -t vboxsf share_name_in_virtual_box /var/www/project |
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
cd ~ | |
touch ./.bash_profile | |
# Add the following content to ~/.bash_profile | |
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi | |
# Add some aliases to ~/.bashrc, e.g. | |
alias gfgp='git fetch --all && git pull' |
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
# Trigger xdebug on demand when running codeception | |
php -dxdebug.remote_autostart=1 ./vendor/codeception/codeception/codecept | |
# Example | |
php -dxdebug.remote_autostart=1 ./vendor/codeception/codeception/codecept run acceptance |
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 stylesheetIndex = 0; | |
var action = document.styleSheets[stylesheetIndex].disabled === false ? "Disabled " : "Enabled "; | |
document.styleSheets[stylesheetIndex].disabled = !document.styleSheets[stylesheetIndex].disabled; | |
console.log( action + "stylesheet:" + document.styleSheets[stylesheetIndex].href ); |
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
################## | |
# BASIC SKELETON # | |
################## | |
DELIMITER $$ | |
USE `database-name`$$ | |
DROP PROCEDURE IF EXISTS `database-name`.`procName` $$ | |
CREATE PROCEDURE `database-name`.`procName` (IN varName1 VARCHAR(30), IN varName2 VARCHAR(30), IN varName3 INT) |
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
# Remote branches | |
for k in `git branch -r|awk '{print $1}'`;do echo `git show --pretty=format:"%Cgreen%ci %Cblue%cr %Cred%cn %Creset" $k|head -n 1`\\t$k;done|sort -r |