View gist:ed0966762e0f5a629377
1 2 3 4 5 6 7 8 9
var express = require('express');
var path = require('path');
var favicon = require('static-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
 
var routes = require('./routes/index');
var users = require('./routes/users');
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')
});
Something went wrong with that request. Please try again.