Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
.splash { | |
display: none; | |
} | |
[ng-cloak].splash { | |
display: block !important; | |
} | |
.splash { | |
position: absolute; |
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> | |
<style> | |
html { | |
-webkit-font-smoothing: antialiased; | |
} | |
</style> |
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 My\DesignBundle\Controller; | |
use eZ\Bundle\EzPublishCoreBundle\Controller; | |
use eZ\Publish\Core\MVC\Symfony\Routing\RouteReference; | |
class LanguageSwitcherController extends Controller | |
{ | |
public function languagesAction( RouteReference $routeReference ) | |
{ |
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
{ | |
"title": "Tweets Search", | |
"rows": [ | |
{ | |
"title": "Options", | |
"height": "50px", | |
"editable": true, | |
"collapse": false, | |
"collapsable": true, | |
"panels": [ |
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'; | |
// Declare app level module which depends on filters, and services | |
var app= angular.module('myApp', ['ngRoute']); | |
app.config(['$routeProvider', function($routeProvider) { | |
$routeProvider.when('/login', {templateUrl: 'partials/login.html', controller: 'loginCtrl'}); | |
$routeProvider.otherwise({redirectTo: '/login'}); | |
}]); |
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 app = angular.module('app', ['firebase']); | |
app.controller('ctrl', function($scope) { | |
var ref = new Firebase('https://fbutil.firebaseio.com/paginate'); | |
$scope.scrollItems = $scrollArray(ref, 'number'); | |
}); | |
app.factory('$scrollArray', function($firebaseArray) { | |
return function(ref, field) { | |
// create a special scroll ref |
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 | |
/** | |
* Change the brightness of the passed in color | |
* | |
* $diff should be negative to go darker, positive to go lighter and | |
* is subtracted from the decimal (0-255) value of the color | |
* | |
* @param string $hex color to be modified | |
* @param string $diff amount to change the color |
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
// Usage: | |
// OfflineListener.init(true); | |
define(['angular', 'core'], function(angular){ | |
// Some concepts from: https://github.com/HubSpot/offline | |
var module = angular.module('utils.offline', []); | |
module.service('OfflineListener', function ($rootScope, $window, $alert) { | |
var offlineAlert; |
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
{ | |
"rules": { | |
".read": true, | |
".write": false, | |
"incid": { | |
"counter": { | |
// this counter is set using a transaction and can only be incremented by 1 | |
// the total number of records must be less than 10,000 simply for demo purposes | |
".write": "newData.isNumber() && ((!data.exists() && newData.val() === 1) || newData.val() === data.val()+1) && newData.val() <= 10000" | |
}, |
OlderNewer