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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Untitled Document</title> | |
</head> | |
<body> | |
<?php | |
echo date("M-d-Y", mktime(0, 0, 0, 12, 32, 1997))."<br/>"; |
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 | |
if ( have_rows( 'repeater_field', $order_id ) ) : | |
while ( have_rows( 'repeater_field', $order_id ) ) : the_row(); | |
$type = get_sub_field( 'type', $order_id ); | |
if( $type === 'tekst' ): ?> | |
<div id="customerMessageTxt"> | |
<?php the_sub_field($type, $order_id); ?> | |
</div> | |
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 | |
$terms = get_terms('focus15', array( | |
'exclude' => array(16, 20, 22, 25, 27, 28, 30, 4, 33 ), //* Enter ID's of parent categories to exclude from list | |
'hide_empty' => 0 ) ); | |
if($terms) | |
{ | |
echo '<ul>'; | |
foreach($terms as $term) | |
{ |
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
ps xmo rss=,pmem=,comm= | while read rss pmem comm; ((n++<5)); do | |
size="$[rss/1024]"; | |
short=$[4-${#size}]; | |
size="(${size}M)"; | |
i=0; | |
while ((i++ < short)); do size=" $size"; done; | |
pmem="${pmem%%.*}" | |
if (($pmem >= 20)); then color=$'\e[31m'; |
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 | |
/** | |
* Display all errors when APPLICATION_ENV is development. | |
*/ | |
if ($_SERVER['APPLICATION_ENV'] == 'development') { error_reporting(E_ALL); ini_set("display_errors", 1); | |
/** | |
* This makes our life easier when dealing with paths. Everything is relative | |
* to the application root now. | |
*/ | |
chdir(dirname(__DIR__)); |
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 | |
/* | |
*Template Name: Specials and Events | |
*/ | |
get_header(); | |
?> | |
<div class="blog-list"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-9"> |
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
#include<iostream> | |
using namespace std; | |
int main(void) | |
{ | |
cout << "A multiplication table:" << endl | |
<< " 1\t2\t3\t4\t5\t6\t7\t8\t9" << endl | |
<< "" << endl; | |
for(int c = 1; c < 10; c++) | |
{ |
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
// XML feeds table | |
if($('#feed-list-table').length) { | |
var pfDataTableDefaults = $.extend({}, pfDataTableDefaults, { | |
"columns": [ | |
{"data": "id"}, | |
{"data": "broker_name"}, | |
{"data": "last_check"}, | |
{"data": "last_change"}, | |
{"data": "feed_url"}, | |
{"data": "validation"}, |
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
/* | |
* Special grid for ten columns, | |
* using its own scope | |
* so it does not interfere with the rest of the code | |
* | |
* Just update the path for variables.less and mixons.less files and compile the less file | |
*/ | |
& { | |
@import (multiple) "../../vendor/bootstrap/less/variables.less"; |
OlderNewer