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
SELECT `oc_option_value`.`option_value_id` | |
, `oc_product_option_value`.`product_option_value_id` | |
, `oc_option_description`.`name` | |
FROM | |
`oc_product_option_value` | |
LEFT JOIN `oc_option_value` | |
ON | |
`oc_option_value`.`option_value_id` = `oc_product_option_value`.`option_value_id` | |
LEFT JOIN `oc_option` | |
ON |
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
import os | |
import subprocess | |
import StringIO | |
import csv | |
def taskKill(imageName): | |
return runCmd(['taskkill', '/im', imageName]) | |
def taskList(imageName): | |
(exitcode, stdout, stderr) = runCmd(['tasklist', '/nh', '/fo', 'csv', '/fi', "IMAGENAME eq %s" % imageName]) |
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
DROP TABLE IF EXISTS `groups`; | |
-- | |
-- Table structure for table 'groups' | |
-- | |
CREATE TABLE `groups` ( | |
`id` integer NOT NULL, | |
`name` varchar(20) NOT NULL, | |
`description` varchar(100) NOT NULL, |
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 | |
/** | |
* CsvRow class | |
* | |
* @copyright Angelo Galleja | |
* @license public domain | |
* | |
* | |
* TODO: make exception messages more clear :-O |
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 | |
# tl_gsa_structure.php | |
$GLOBALS['TL_DCA']['tl_gsa_structure']['config']['onload_callback'][] = array('tl_gsa_structure_zzzcustom', 'fixPalette'); | |
class tl_gsa_structure_zzzcustom extends Backend { | |
public function fixPalette($dc) { | |
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
<div class="layout_fullsize block<?php echo $this->class; ?>"> | |
<div class="cover"> | |
<div class="image_container"> | |
<img src="<?php echo $this->src; ?>"<?php echo $this->imgSize; ?> alt="<?php echo $this->alt; ?>"> | |
</div> | |
</div> | |
<div class="gallery_info"> | |
<h2><?php echo $this->title; ?></h2> | |
<div class="description"> |
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 | |
/** | |
* returns dark or light primary color provided the background | |
*/ | |
function cc($backgroundColor, $dark='black', $light='white') { | |
return (hexdec($backgroundColor) > 0xffffff/2) ? $dark : $light; | |
} | |
echo cc('008000')."\n"; | |
echo cc('FFC0CB')."\n"; |
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
@font-face { | |
font-family: 'fontello'; | |
src: url('../font/fontello.eot?74991048'); | |
src: url('../font/fontello.eot?74991048#iefix') format('embedded-opentype'), | |
url('../font/fontello.svg?74991048#fontello') format('svg'); | |
font-weight: normal; | |
font-style: normal; | |
} | |
@font-face { | |
font-family: 'fontello'; |
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
syntax: glob | |
vendor/** | |
system/themes/** | |
web/assets/** | |
system/tmp/** | |
var/cache/** | |
var/logs/** | |
assets/css/** | |
assets/js/** | |
files/mediasite/scss/.sass-cache/** |
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 | |
namespace Contao; | |
if ($GLOBALS['TL_CONFIG']['useRTE']): | |
?> | |
<script>window.tinymce || document.write('<script src="<?= $this->asset('js/tinymce.min.js', 'contao-components/tinymce4') ?>">\x3C/script>')</script> | |
<script> | |
setTimeout(function() { |
OlderNewer