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 | |
function parse_quote($matches) { | |
$bbcode = ''; | |
preg_match_all('/(\w*?)=\'(.*?)\'/msi', $matches[1], $attr_matches); | |
$attributes = array_combine($attr_matches[1], $attr_matches[2]); | |
if(!empty($attributes)) | |
{ | |
$attribute_strings = array(); | |
foreach($attributes as $key => $value) | |
{ |
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
var firstCombo = new Ext.form.ComboBox({ | |
store: store_combo_1, | |
typeAhead: true, | |
forceSelection: true, | |
triggerAction: 'all', | |
emptyText:'Select a state...', | |
selectOnFocus:true, | |
id:'combo1' | |
}); |
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
Ext.namespace('Ext.ux.dd'); | |
Ext.ux.dd.BigBrotherGridDD = Ext.extend(Ext.util.Observable, { | |
copy: true | |
,scrollable: true | |
,constructor: function(config){ | |
if (config) | |
Ext.apply(this, config); | |
// this.addEvents({ |
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
var breadcrumbs = function($state, $stateParams) { | |
return { | |
restrict: 'E', | |
templateUrl: '/path/to/breadcrumbs.html', | |
replace: true, | |
compile: function(tElement, tAttrs) { | |
return function($scope, $elem, $attr) { | |
$scope.show = function(state){ | |
if(!angular.isDefined(state.data)){ | |
return false; |
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> | |
<html ng-app> | |
<head> | |
<title>Example</title> | |
</head> | |
<body> | |
<nav class="main-nav" data-main-menu data-root="index"></nav> | |
<script type="text/javascript" src="angular.js"></script> |
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
var Controller = function($timeout){ | |
var timer = 10000; | |
$scope.remaining = timer / 1000; | |
$scope.startTimer = function(){ | |
$scope.timeout = $timeout(function() { | |
$scope.remaining--; | |
$scope.remaining > 0 ? $scope.startTimer() : $scope.finished('Finished!'); | |
}, 1000); | |
}; |
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 (window, angular, undefined) { | |
'use strict'; | |
var myAppInterceptor = function ($httpProvider) { | |
var interceptor = ['$q' function ($q) { | |
return { | |
return { | |
// On request success | |
request: function (config) { |
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
'use strict'; | |
define([], function () { | |
var routeResolver = function (commonsProvider) { | |
this.$get = function () { | |
return this; | |
}; |
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
<!-- If I want to hide done todos --> | |
<ul class="whatever"> | |
<li data-ng-repeat="todo in todos | filter:{done: false}"> | |
... | |
</li> | |
</ul> | |
<!-- Show done todos --> | |
<div class="whatever" data-ng-show="(todos | filter:{done: true} ).length > 0"> | |
... |
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 | |
class showDocumentAction extends sfActions | |
{ | |
/** | |
* Make sure that no other content will be output | |
*/ | |
public function preExecute() | |
{ | |
$this->setLayout(false); | |
sfConfig::set('sf_web_debug', false); |
OlderNewer