Regex to convert copied 'describe {table};' results form navicat to entity properties
S: ^([a-z0-9_]+)[^;\n]+$
R: /**\n* @var string\n*/\npublic \$$1;
(function ($) { | |
var intervalId; | |
var intervalCallback; | |
var frameInterval = 50; | |
var iterationCount = 0; | |
var collection = []; | |
$.attention = { | |
effectClasses : { |
(function ($) { | |
var objCollection = []; | |
$.fn.persist$ = function (override) { | |
var current = this.data('oid'); | |
if (typeof current === 'undefined') { | |
var next = objCollection.length; | |
(function ($) { | |
var myP = function (arg) { | |
this.init('<p />'); | |
if (typeof $.fn.persist$ === 'function') { | |
this.persist$(); | |
} | |
this.text(arg); |
function keyListener () { | |
var $next; | |
// if (event.keyCode === 37) { // left | |
// | |
// } | |
if (event.keyCode === 38) { // up | |
$next = $customerTypeOptionsItems.find('.active').prev(); | |
if ($next.length === 0) { |
<?php | |
namespace EntityMarshal; | |
class ForeignScope | |
{ | |
/** | |
* @var ForeignScope Singleton instance. | |
*/ | |
private static $instance; |
/** | |
* Trim a domain to a specific number of levels | |
* | |
* @param string $domain | |
* @param int $levels | |
* | |
* @return string | |
*/ | |
function trim_domain($domain, $levels = 2) | |
{ |
if (typeof Function.prototype.bind === 'undefined') { | |
/** | |
* Function bind(obj[, arg1[, arg2[, ...]]]) polyfill | |
* | |
* @param obj | |
* | |
* @returns {Function} | |
*/ | |
Function.prototype.bind = function (obj) { | |
var fn = this, |
/* | |
* Scroll to page section if it exists, but delay for a bit first. | |
*/ | |
var page = location.href.replace(/^.+?\/?([^\/]+)$/i, '$1') | |
, delay = 500 | |
, offset = -50 | |
, $anchor; | |
if (page && ($anchor = $('a[name="'+page+'"]')).length) { | |
$('html,body').delay(delay).animate({scrollTop: $anchor.offset().top + offset}, 'slow'); |