php artisan make:model Status -a
php artisan nova:card provider/nova-clock
php artisan nova:value NewCommits
<?php | |
/** | |
* This will hide the Divi "Project" post type. | |
* Thanks to georgiee (https://gist.github.com/EngageWP/062edef103469b1177bc#gistcomment-1801080) for his improved solution. | |
*/ | |
add_filter( 'et_project_posttype_args', 'mytheme_et_project_posttype_args', 10, 1 ); | |
function mytheme_et_project_posttype_args( $args ) { | |
return array_merge( $args, array( | |
'public' => false, | |
'exclude_from_search' => false, |
{ | |
"Actions": "Ações", | |
"Details": "Detalhes", | |
"If you did not request a password reset, no further action is required.": "Se não pediu uma reposição da palavra-passe, nenhuma ação é necessária.", | |
"Reset Password": "Reposição da palavra-passe", | |
"Sorry! You are not authorized to perform this action.": "Desculpe! Não tem autorização para fazer esta ação.", | |
"You are receiving this email because we received a password reset request for your account.": "Está a receber este email porque recebemos um pedido de reposição de palavra-passe para a sua conta.", | |
"Confirm Password": "Confirmar palavra-passe", | |
"Dashboard": "Painel", | |
"Email Address": "Endereço de Email", |
Change 600 to whatever size needed
hdiutil create -size 600g -type SPARSEBUNDLE -fs "HFS+J" TimeMachine.sparsebundle
sudo tmutil setdestination /Volumes/TimeMachine
Support for:
<?php | |
function jquery_mumbo_jumbo() { | |
wp_dequeue_script( 'jquery' ); | |
wp_dequeue_script( 'jquery-core' ); | |
wp_dequeue_script( 'jquery-migrate' ); | |
wp_enqueue_script( 'jquery', false, array(), false, true ); | |
wp_enqueue_script( 'jquery-core', false, array(), false, true ); | |
wp_enqueue_script( 'jquery-migrate', false, array(), false, true ); | |
} | |
add_action( 'wp_enqueue_scripts', 'jquery_mumbo_jumbo' ); |
var divToPrint = document.getElementById('toPrint') | |
var newWin = window.open('', 'Print-Window') | |
var allCSS = [].slice.call(document.styleSheets) | |
.reduce(function (prev, styleSheet) { | |
if (styleSheet.cssRules) { | |
return prev + | |
[].slice.call(styleSheet.cssRules) | |
.reduce(function (prev, cssRule) { | |
return prev + cssRule.cssText | |
}, '') |
<?php | |
function change_titles_text( $title ) { | |
$screen = get_current_screen(); | |
if ( 'expert' == $screen->post_type ) { | |
$title = 'Enter expert name'; | |
} | |
if ( 'slide' == $screen->post_type ) { | |
$title = 'Enter slide name / tag'; |
{ | |
table: { | |
widths: ['*', '*'], | |
body: [ | |
[{ style: 'ptable', bold: true, text: 'Name' }, { style: 'ptable', text: institution.individual[0].name }] | |
] | |
}, | |
layout: { | |
hLineColor: function (i, node) { return '#555555' }, | |
hLineWidth: function (i, node) { return 0.1 }, |
/* | |
kudos: | |
https://github.com/ymkins/html2pdfmake/blob/master/html2pdfmake.js | |
https://github.com/bpampuch/pdfmake/pull/1055 | |
https://github.com/bpampuch/pdfmake/pull/1054 | |
*/ | |
var pdfMake = require('pdfmake/build/pdfmake.js') | |
var pdfFonts = require('pdfmake/build/vfs_fonts.js') | |
pdfMake.vfs = pdfFonts.pdfMake.vfs |