Skip to content

Instantly share code, notes, and snippets.

View skoop's full-sized avatar
💭
Developing

Stefan Koopmanschap skoop

💭
Developing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am skoop on github.
  • I am skoop (https://keybase.io/skoop) on keybase.
  • I have a public key whose fingerprint is 54D9 5126 9335 D5E4 A1F5 E4CA F166 3F4A 830D 6C24

To claim this, I am signing this object:

<?php
public function executeBarcode(sfWebRequest $request)
{
$barcodeOptions = array(
'text' => $request->getParameter('text')
);
$barcodeOptions = array_merge(
$barcodeOptions,
$this->parseOptionalParameters(
$request->getGetParameters()
<?php
public function executeQrcode(sfWebRequest $request)
{
require_once sfConfig::get('sf_lib_dir').
'/vendor/phpqrcode/qrlib.php';
$this->getResponse()->setContentType('image/png');
QRcode::png($request->getParameter('text'));
return sfView::NONE;
}
<?php
// auto-generated by sfAutoloadConfigHandler
// date: 2011/02/16 02:27:19
return array(
// sfTCPDFPlugin_module_libs
'sfTCPDF/basesftcpdfactions' => '/mnt/hgfs/skoop On My Mac/php/logibra/plugins/sfTCPDFPlugin/modules/sfTCPDF/lib/BasesfTCPDFActions.class.php',
// sfTCPDFPlugin_lib
'sftcpdfpluginconfighandler' => '/mnt/hgfs/skoop On My Mac/php/logibra/plugins/sfTCPDFPlugin/lib/config/sfTCPDFPluginConfigHandler.class.php',
/**
* Standard validation for most of barcode objects
* @param string $value
* @param array $options
*/
protected function _validateText($value, $options = array())
{
// @TODO: add code128 validator
return true;
}
/**
* @extra:Route("/", name="homepage")
* @extra:Template()
*/
public function indexAction()
{
return array();
}
@skoop
skoop / gist:3175359
Created July 25, 2012 09:48
keeping old IDs in data migration
$this->em->persist($newUrl);
$metadata = $this->em->getClassMetaData(get_class($newUrl));
$metadata->setIdGeneratorType(\Doctrine\ORM\Mapping\ClassMetadata::GENERATOR_TYPE_NONE);
$this->em->flush();
@skoop
skoop / block
Created October 17, 2015 13:23
{% setcontent block = 'blocks' where { identifier_string: 'djs_wie_zijn_wij' } returnsingle %}
<h4 class="color_2">{{ block.title }}</h4>
<div class="box3">
{{ block.body }}
</div>
@skoop
skoop / paths
Created October 17, 2015 13:24
<link rel="icon" href="{{ paths.theme }}/images/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="{{ paths.theme }}/css/grid.css">
<link rel="stylesheet" href="{{ paths.theme }}/css/owl.carousel.css"/>
<link rel="stylesheet" href="{{ paths.theme }}/css/style.css">
<script src="{{ paths.theme }}/js/jquery.js"></script>
<script src="{{ paths.theme }}/js/jquery-migrate-1.2.1.js"></script>
{% include "_header.twig" %}