View gist:7c755fd05ce343831dda
1 2 3 4 5 6 7 8 9 10
router = require('myrouter');
TokenSrv = require('js/Token');
LocationSrv = require('js/Location');
services = {
token: TokenSrv,
location: LocationSrv
};
 
app.use('/path', router(services));
View designer.html
1 2 3 4 5 6 7 8 9 10
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../paper-button/paper-button.html">
 
<polymer-element name="my-element">
 
<template>
<style>
:host {
position: absolute;
width: 100%;
View designer.html
1 2 3 4 5 6 7 8 9 10
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-app.html">
<link rel="import" href="../topeka-elements/topeka-datasource.html">
 
<polymer-element name="my-element">
 
<template>
<style>
:host {
View gist:761c6020e28ef839a15d
1 2 3 4 5 6 7 8 9 10
%nav.navbar.navbar-inverse.navbar-embossed{:role => "navigation"}
.navbar-header
%button.navbar-toggle{"data-target" => "#bs-example-navbar-collapse-7", "data-toggle" => "collapse", :type => "button"}
%span.sr-only Toggle navigation
%span.icon-bar
%span.icon-bar
%span.icon-bar
%a.navbar-brand{:href => "#"} Codeurs
#bs-example-navbar-collapse-7.collapse.navbar-collapse
%form.navbar-form.navbar-left{:role => "search"}
View gist:366b542010ba0f966a3e
1 2 3 4 5 6 7 8 9 10
app = angular.module 'main', [
'templates', 'ngRoute', 'controllers', 'ngResource', 'gettext'
]
 
app.config ['$routeProvider', ($routeProvider) ->
$routeProvider
.when '/',
templateUrl: 'index.html'
controller: 'MainCtrl'
]
View gist:a583ec36bbe1a01593d6
1 2 3 4 5 6 7 8 9 10
class User
has_and_belongs_to_many :elearning_requests
end
 
class ElearningRequest
include Mongoid::Document
include Mongoid::Timestamps::Short
include Mongoid::Enum
 
# ----------------------------------------------------------------------------
View gist:c59622b782dc84954407
1 2 3 4 5 6 7 8 9
class Service < ActiveRecord::Base
has_many :user_services
has_many :users, through: :user_services
end
 
class UserService < ActiveRecord::Base
belongs_to :service
belongs_to :user
end
View gist:10676807
1 2 3 4 5 6 7 8 9
var myobj = AnObjectClass.extend({
id: null,
title: null,
watched: false,
rating: 0,
titleAndRating: function() {
return this.get('title') + ' has a rating fo ' + this.get('rating');
}.property('title', 'rating')
});
View gist:9741925
1 2 3 4 5 6 7 8 9 10
Enqueue task at '2014-03-24T16:41:11+01:00' now 2014-03-24 16:40:50 +0100 class 'DateTime'
Enqueue task at '2014-03-24T16:41:33+01:00' now 2014-03-24 16:40:51 +0100 class 'DateTime'
Enqueue task at '2014-03-24T16:41:43+01:00' now 2014-03-24 16:40:51 +0100 class 'DateTime'
Enqueue task at '2014-03-24T16:41:56+01:00' now 2014-03-24 16:40:51 +0100 class 'DateTime'
Enqueue task at '2014-03-24T16:42:04+01:00' now 2014-03-24 16:40:51 +0100 class 'DateTime'
Enqueue task at '2014-03-24T16:42:10+01:00' now 2014-03-24 16:40:51 +0100 class 'DateTime'
Enqueue task at '2014-03-24T16:41:07+01:00' now 2014-03-24 16:40:51 +0100 class 'DateTime'
Enqueue task at '2014-03-24T16:41:16+01:00' now 2014-03-24 16:40:51 +0100 class 'DateTime'
Enqueue task at '2014-03-24T16:41:21+01:00' now 2014-03-24 16:40:51 +0100 class 'DateTime'
Entreprise: Enqueue task at '2014-03-24T16:42:18+01:00'
Something went wrong with that request. Please try again.