Skip to content

Instantly share code, notes, and snippets.

@dwaligora
dwaligora / edit.html
Created May 5, 2014 12:46
reminder.edit.html
<div class="page page-edit">
<div class="page-title">
<h3>Reminders</h3>
</div>
<div id="wrapper" class="add-wrap">
<div class="add-new">
<div class="single-message">
<form name="reminderAddForm" data-ng-submit="add()">
<input data-ng-model="object.title" placeholder="Title of Reminder" name="title" />
<input data-ng-model="object.location" placeholder="Location of Reminder" name="location" />
/*********************
* ReminderNewCtrl
*********************/
angular.module('ReminderApp')
.controller('ReminderNewCtrl', function (_, $rootScope, $scope, $injector, UserRepository, ReminderRepository, flash, $navigate, notification) {
$scope.$emit('LOADING');
$scope.UserRepository = UserRepository;
$injector.invoke(function ($controller) {
$controller('EditableController', {$scope: $scope, $rootScope: $rootScope, UserRepository: UserRepository});
'use strict';
/**
* Mobiscroll directives set
* @type {*}
*/
var mobiscroll = angular.module('mobiscroll', []);
/*
* Native style datetime picker
*/
{
"name": "kambala-web",
"version": "0.0.1",
"dependencies": {},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-coffee": "~0.7.0",
"grunt-contrib-uglify": "~0.2.0",
@dwaligora
dwaligora / day.html
Created February 3, 2014 14:57
day view template
<div class="page timetable">
<div class="page-title">
<h3>Timetable<span data-ng-if="timetable.length > 0">
: {{ startDate | moment: 'Do' : true }} - {{ CalendarRepository.endDate | moment: 'Do MMMM' : true }}
</span></h3>
</div>
<div data-ng-if="timetable.length <= 0">
<div class="no-content">
<span>Please be patient and wait for you schedule. Your school is working on it ;)</span>
</div>
@dwaligora
dwaligora / controllers.js
Created February 3, 2014 14:53
timetable ctrl
angular.module('CalendarApp')
.controller('CalendarDayCtrl', function ($rootScope, $scope, notification, flash, $timeout, $injector, $route, $routeParams, TimetableFormatterService, CalendarRepository, UserRepository, ReminderRepository) {
$scope.$emit('LOADING');
$scope.showEvents = false;
$scope.startDate = moment($routeParams.start_date).unix();
$injector.invoke(function ($controller) {
$controller('ReminderPermissionCtrl', {$scope: $scope, $rootScope: $rootScope, UserRepository: UserRepository});
});
@dwaligora
dwaligora / parameters.js
Created January 15, 2014 10:53
parameters.js
'use strict';
//var API_URL = 'http://api.kambala-staging.neverblanddev.co.uk';
var API_URL = 'http://kambala-mobile.dev/api';
var DEV = false;
var DEBUG = false;
// header token name
var HEADER_ACCESS_TOKEN = 'Kambala-Access-Token';
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
<?php
namespace Nexus\Media\FrontendBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\JsonResponse;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
<?php
namespace Nexus\Media\FrontendBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Symfony\Component\HttpFoundation\JsonResponse;
/**