Please see: https://github.com/kevinSuttle/html-meta-tags, thanks for the idea @dandv!
Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using ServiceStack; | |
| using ServiceStack.Common; | |
| using ServiceStack.Common.Extensions; | |
| using ServiceStack.Common.Utils; | |
| using ServiceStack.Redis; | |
| using ServiceStack.Redis.Generic; |
| #!/bin/sh | |
| # Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
| # CREATE block and create them in separate commands _after_ all the INSERTs. | |
| # Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
| # The mysqldump file is traversed only once. | |
| # Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
| # Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
| <?php | |
| class AbstractManagerBase extends \PHPUnit_Framework_TestCase | |
| { | |
| protected function getEmMock() | |
| { | |
| $emMock = $this->getMock('\Doctrine\ORM\EntityManager', | |
| array('getRepository', 'getClassMetadata', 'persist', 'flush'), array(), '', false); | |
| $emMock->expects($this->any()) | |
| ->method('getRepository') |
| <?php | |
| class AbstractManagerBase extends \PHPUnit_Framework_TestCase | |
| { | |
| protected function getEmMock() | |
| { | |
| $emMock = \Mockery::mock('\Doctrine\ORM\EntityManager', | |
| array( | |
| 'getRepository' => new FakeRepository(), | |
| 'getClassMetadata' => (object)array('name' => 'aClass'), |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
| /** | |
| * D Holbrook | |
| * | |
| * Code Club: PO1 | |
| * | |
| * (*) Define a binary tree data structure and related fundamental operations. | |
| * | |
| * Use whichever language features are the best fit (this will depend on the language you have selected). The following operations should be supported: | |
| * | |
| * Constructors |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| #! /usr/bin/env python2 | |
| # Small test client for rtl_tcp | |
| # Simeon Miteff <simeon.miteff@gmail.com> | |
| # Thu Sep 27 09:28:55 SAST 2012 | |
| import socket | |
| import struct | |
| import time | |
| SET_FREQUENCY = 0x01 | |
| SET_SAMPLERATE = 0x02 |
| diff --git a/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php b/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php | |
| index d73983c..9f8a253 100644 | |
| --- a/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php | |
| +++ b/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php | |
| @@ -598,10 +598,18 @@ class BasicEntityPersister | |
| $quotedColumn = $this->quoteStrategy->getJoinColumnName($joinColumn, $this->_class, $this->_platform); | |
| $this->quotedColumns[$sourceColumn] = $quotedColumn; | |
| - | |
| - if ($newVal === null) { |