Skip to content

Instantly share code, notes, and snippets.

View kutsaniuk's full-sized avatar
🏠
Working from home

kutsaniuk kutsaniuk

🏠
Working from home
View GitHub Profile
(function () {
'use strict';
angular
.module('main')
.service('SpeakersService', function ($http,
$cookieStore,
$q,
$rootScope,
URL, BUCKET_SLUG, READ_KEY, WRITE_KEY, MEDIA_URL) {
(function () {
'use strict';
angular
.module('speakers', [])
.config(config);
config.$inject = ['$stateProvider', '$urlRouterProvider'];
function config($stateProvider, $urlRouterProvider) {
(function () {
'use strict';
angular
.module('main')
.controller('SpeakersCtrl', SpeakersCtrl);
function SpeakersCtrl($rootScope, SpeakersService, Notification, $log, MEDIA_URL, $state) {
var vm = this;
(function () {
'use strict';
angular
.module('about', [])
.config(config);
config.$inject = ['$stateProvider', '$urlRouterProvider'];
function config($stateProvider, $urlRouterProvider) {
(function () {
'use strict';
angular
.module('main')
.controller('AboutCtrl', AboutCtrl);
function AboutCtrl($stateParams, AboutService, Notification, $log, MEDIA_URL, $state) {
var vm = this;
(function () {
'use strict';
angular
.module('main')
.service('AboutService', function ($http,
$cookieStore,
$q,
$rootScope,
URL, BUCKET_SLUG, READ_KEY, WRITE_KEY, MEDIA_URL) {
(function () {
'use strict';
angular
.module('main')
.service('UserService', function ($http,
$cookieStore,
$q,
$rootScope,
URL, BUCKET_SLUG, READ_KEY, WRITE_KEY) {
(function () {
'use strict';
angular
.module('main')
.service('AuthService', function ($http,
$cookieStore,
$q,
$rootScope,
URL, BUCKET_SLUG, READ_KEY, WRITE_KEY) {
(function () {
'use strict';
angular
.module('main')
.controller('AuthCtrl', AuthCtrl);
function AuthCtrl(crAcl, $state, AuthService, Flash, $log) {
var vm = this;
var express = require('express');
var bodyParser = require('body-parser');
var app = express();
app.set('port', process.env.PORT || 3000)
app.use(express.static(__dirname))
app.use(bodyParser.json())
var http = require('http').Server(app)
// Route
app.get('/', (req, res) => {
res.sendFile(__dirname + '/index.html');