Simple demonstration of expanding cards for tasks using Bootstrap and jQuery.
A Pen by Dione Domingo on CodePen.
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |
<script src="http://static-cdn1.ustream.tv/js/libs/ustream-embedapi.js"></script> | |
<script type="text/javascript"> |
find /var/www/example.com/files/cachefiles/ -mtime +90 -type f -delete |
### Keybase proof | |
I hereby claim: | |
* I am dionedomingo on github. | |
* I am dione (https://keybase.io/dione) on keybase. | |
* I have a public key ASB5wcrCWT970XucrnO7U89YOABjpW_HEwyAB-Yg40fcewo | |
To claim this, I am signing this object: |
<?php | |
// The drupal_set_message() function is being deprecated! | |
// @see https://api.drupal.org/api/drupal/core%21includes%21bootstrap.inc/function/drupal_set_message/8.5.x | |
// > Deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. | |
// > Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead. | |
// In some custom code. | |
\Drupal::messenger()->addMessage('Say something else'); | |
// When trying to print out a simple var. | |
\Drupal::messenger()->addMessage(print_r($stuff, TRUE)); | |
// In a Drupal 8 Form's submitForm() handler: |
Simple demonstration of expanding cards for tasks using Bootstrap and jQuery.
A Pen by Dione Domingo on CodePen.
wget https://github.com/dionedomingo/iposen-vagrant/archive/master.zip -O /tmp/iposen-setup.zip | |
unzip file.zip -d vagrant |
HTTPAUTH_USER='root' | |
HTTPAUTH_PASS='root' | |
HTTPD_DUMP_URL= | |
wget --user={$HTTPAUTH_USER} --password={$HTTPAUTH_PASS} -O /tmp/dump.sql.gz {$HTTPD_DUMP_URL}/latest.sql.gz | |
mysql -uroot -proot --silent --skip-column-names -e "SHOW TABLES" staging | xargs -L1 -I% echo 'DROP TABLE `%`;' | sudo mysql -uroot -proot -v staging | |
gunzip /tmp/dump.sql.gz | |
sudo mysql -u root staging < /tmp/dump.sql -v | |
sudo rm /tmp/dump.sql | |
# sudo rm /tmp/dump.sql.gz |
<?php | |
$number1 = 20; | |
$number2 = 15; | |
$subtractResult = Calculator::subtract( (string) $number1, (string) $number2); | |
$sum_result = Calculator::add( (string) $number1, (string) $number2); | |
$product_result = Calculator::multiply( (string) $number1, (string) $number2); | |
$quotient = Calculator::divide( (string) $number1, (string) $number2); |