Skip to content

Instantly share code, notes, and snippets.

View gist:5951615
if($.pic1FieldImg.image) {
//bivouac.set('pic1', str);
var inline = {
"image.png" : {
"content_type" : "image/png",
data : "...",
}
};
bivouac.set("_attachments", inline);
View gist:5848823
<?php
/**
* mysql-convert-latin1-to-utf8.php
*
* Converts incorrect MySQL latin1 columns to UTF8.
*
* NOTE: Look for 'TODO's for things you may need to configure.
*
* Documentation at:
* http://nicj.net/2011/04/17/mysql-converting-an-incorrect-latin1-column-to-utf8
View gist:5516879
Y Achse:
600mm - 695mm
1x 211 144 2069 Spindel
1x 216 504 0006 Festlager
1x 216 504 0005 Loslager
1x 213 700 0005 Mutter
1x 213 700 9001 Spannblock
X Achse:
View gist:5361904
<form id="CALCFORM" action="<?php echo $this->form->getAction() ?>" method="post">
<?php foreach($this->form->getElements() as $element): ?>
<?php if($element->getType() == "TP_Form_Element_Textdisplay"): ?>
<div id="<?php echo $element->getId() ?>-label" class="labelWrapper <?php echo $this->cycle(array("odd","even"))->next()?> labeltext">
<?php echo $element->getDecorator('label')->setElement($element)->render(''); ?>
</div>
<div id="<?php echo $element->getId() ?>-element" class="inputWrapper labeltext">
<?php echo $element->getDecorator('viewHelper')->setElement($element)->render(''); ?>
<?php if($element->getDecorator('Help')): ?>
<?php echo $element->getDecorator('Help')->getOption('markup'); ?>
View gist:3776201
<?xml version="1.0" encoding="utf-8"?>
<settings>
<version>1.1</version>
<includes>
<include type="css">trauerkarten.css</include>
<include type="javascript">trauerkarten.js</include>
</includes>
<general>
<size width="900" height="700"/>
<headline>Gestalten Sie Ihre Karte nach Wunsch</headline>
View gist:3403716
<div id="wrapper-product-group" class="container hidden-phone">
<!-- CAROUSEL container-->
<!-- CAROUSEL Productgroups -->
<?php $articlegroups = $this->Article()->getArticleGroups();
$i = 1;
$anzahl = count($articlegroups);
?>
View gist:3076119
{
"type": "package",
"package": {
"name": "CCDNComponent/BBCodeBundle",
"version": "dev-master",
"source": {
"url": "git://github.com/codeconsortium/BBCodeBundle.git",
"type": "git",
"reference": "master"
},
View gist:3073222
<?php
namespace TaKeTV\PortalBundle\Twig;
use CCDNComponent\CommonBundle\Manager\ManagerInterface;
use Symfony\Component\DependencyInjection;
class SiteExtension extends \Twig_Extension
{
private $serviceContainer = false;
You can’t perform that action at this time.