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 ContestEngineBundle\Service\EventSubscriber; | |
use Doctrine\Common\Annotations\Reader; | |
use Doctrine\Common\EventSubscriber; | |
use Doctrine\Common\Persistence\Event\LifecycleEventArgs; | |
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; | |
class SquareCropApprovalRequiredSubscriber implements EventSubscriber |
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 | |
$A = 'Product'; | |
$B = 'Feature'; | |
echo <<< EOD | |
<pre> |
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 | |
$criteria = Criteria::create()->where(Criteria::expr()->eq("id", $listId)); | |
$desiredList = $property->getLists()->matching($criteria); | |
## $desiredList is an empty ArrayCollection() | |
## The following works: |
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
/* | |
Blink | |
Turns on an LED on for one second, then off for one second, repeatedly. | |
Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO | |
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to | |
the correct LED pin independent of which board is used. | |
If you want to know what pin the on-board LED is connected to on your Arduino model, check | |
the Technical Specs of your board at https://www.arduino.cc/en/Main/Products | |
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
' This excel subroutine that will merge the contents of a selected range, | |
' concantenate and move all the contents into into the top cell. | |
' | |
' keywords: merge, cell, concatenate, join, range, selection | |
' | |
' The MIT License (MIT) | |
' Copyright (c) 2016 Lloyd Leung | |
' | |
' Permission is hereby granted, free of charge, to any person obtaining a | |
' copy of this software and associated documentation files (the "Software"), |
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
listen MySQL localhost:3306 | |
mode tcp | |
balance roundrobin | |
server mysql_box1 192.168.1.101:3306 check | |
server mysql_box2 192.168.1.102:3306 check |
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
Directory tree structure: | |
. | |
└── hosts | |
├── project1 | |
│ └── www | |
├── project2 | |
│ └── www |
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> | |
<!-- Conditional comment for mobile ie7 blogs.msdn.com/b/iemobile/ --> | |
<!--[if IEMobile 7 ]> <html class="no-js iem7" lang="en"> <![endif]--> | |
<!--[if (gt IEMobile 7)|!(IEMobile)]><!--> <html class="no-js" lang="en"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<title>Some sample add, with html5 mobile boiler template</title> | |
<meta name="description" content="blah"> |
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
$(function () { | |
"use strict"; | |
// for better performance - to avoid searching in DOM | |
var content = $('#content'); | |
var input = $('#input'); | |
var status = $('#status'); | |
// my color assigned by the server | |
var myColor = false; |
NewerOlder