This file contains hidden or 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
| public class MagicalLand { | |
| public static void main(String[] args) { | |
| for (int i = 0; i < (Math.random() * 500) + 2; i++) { | |
| if (Unicorn.pat()) { | |
| System.out.println("UNICORN #1: PAT THIS UNICORN ONCE"); | |
| } | |
| } | |
| for (int i = 0; i < (Math.random() * 500) + 2; i++) { | |
| if (Unicorn.pat()) { |
This file contains hidden or 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
| from utils import SecureApplication | |
| routes = ( | |
| ('/route1', 'app.views.view1'), | |
| ) | |
| handler = SecureApplication(routes=routes, debug=settings['DEBUG']) |
This file contains hidden or 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
| app.controller 'ListController', ($scope, $filter) -> | |
| $scope.search = {} | |
| $scope.all_data = [ | |
| {title: 'Three men on the bummel', 'author': 'Jerome Klapka Jerome', meta: {isbn: 2234}} | |
| {title: 'Three men on a boat', 'author': 'Jerome Klapka Jerome', meta: {isbn: 1234}} | |
| {title: 'Three musketeers', 'author': 'Alexandre Dumas', meta: {isbn: 4566}} | |
| {title: 'Four tank men and a dog', 'author': 'Janusz Przymanowsky', meta: {isbn: 1222}} | |
| ] | |
| $scope.$watch("search.query", ( -> |
This file contains hidden or 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
| angular.module('core', []).provider('Menu', function() { | |
| var _menu = []; | |
| this.$get = function() { | |
| return { | |
| get: function() { | |
| return _menu; | |
| } | |
| }; | |
| }; |
This file contains hidden or 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
| angular.module('app', ['ngRoute', 'app.core', 'app.user', 'app.settings']) | |
| .config(function($routeProvider, $locationProvider) { | |
| $routeProvider.when('/home', { | |
| templateUrl: 'partials/home.html', | |
| controller: 'HomeCtrl' | |
| }); | |
| //Handle all exceptions | |
| $routeProvider.otherwise({ | |
| redirectTo: '/home' |
This file contains hidden or 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
| <my-widget> | |
| <div id="one" class="box"></div> | |
| <div id="two" class="box"></div> | |
| </my-widget> |
This file contains hidden or 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
| { | |
| "settings": { | |
| "analysis": { | |
| "analyzer": { | |
| "cs_hunspell": { | |
| "type": "custom", | |
| "tokenizer": "standard", | |
| "filter": ["stopwords_CZ", "lowercase", "hunspell_CZ", "asciifolding", "stopwords_CZ", "remove_duplicities"] | |
| } | |
| }, |
This file contains hidden or 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 co = require('bluebird').coroutine; | |
| it('should create new banner', co(function* (done) { | |
| //Inicializace dat | |
| //Smažu všechny organizace | |
| yield Organization.removeAsync(); | |
| //Poté vytvořím jednu testovací | |
| var organization = yield Organization.createAsync({ | |
| name: 'Fragaria s.r.o.' | |
| }); |
This file contains hidden or 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
| dispatcher.cancel(JOB_TAG); |
This file contains hidden or 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"; | |
| var API_KEY = '__API_KEY__'; | |
| var PHOTOSET_IDS = ['__ID1__', '__ID2__', '__ID3__']; | |
| angular.module('cartagenaApp') | |
| .directive('flickrBackground', function(Flickr, $http) { | |
| var _flickrBackground = function($scope, $element) { | |
| var nextPhoto; |
OlderNewer