This file contains 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
diff --git a/app/assets/javascripts/angular/apps/teachers/controllers/NotificationCtrl.js.coffee b/app/assets/javascripts/angular/apps/teachers/controllers/NotificationCtrl.js.coffee | |
index 0bc054e..0e616ab 100644 | |
--- a/app/assets/javascripts/angular/apps/teachers/controllers/NotificationCtrl.js.coffee | |
+++ b/app/assets/javascripts/angular/apps/teachers/controllers/NotificationCtrl.js.coffee | |
@@ -25,10 +25,20 @@ NotificationCtrl = ($scope, $timeout, $analytics, Notification, ErrorParser)-> | |
course = $scope.$parent.course | |
notification.course_id = course.uuid | |
notification.abbreviation = course.abbreviation | |
- notification.save().then(-> | |
+ notification.save().then((response)-> |
This file contains 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
p = 20 -- 1 segundo | |
maparuim = 0 | |
voltadinhe = 0 | |
emergencia = 0 | |
segundo = 0 | |
dinhe = 0 | |
b = 0 | |
andaratoa=0 | |
perfuracao = 0 | |
pressaoboa = 0.7 |
This file contains 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
class people::lunks { | |
include macvim | |
include adium | |
include caffeine | |
include chrome | |
include dropbox | |
include gitx::dev | |
include iterm2::stable | |
include karabiner | |
include mou |
This file contains 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
#!/usr/bin/env lua | |
-- This file: | |
-- http://angg.twu.net/fbcache/urls.lua | |
-- http://angg.twu.net/fbcache/urls.lua.html | |
-- (find-angg "fbcache/urls.lua") | |
-- 2014sep07 | |
-- (defun u () (interactive) (find-angg-upload-links "fbcache/" "urls.lua")) | |
-- | |
-- (find-lua51manualw3m "") |
This file contains 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
{"id":43,"content":"Some message here","created_at":"2014-10-09T03:33:30.355-03:00","updated_at":"2014-10-09T03:33:30.355-03:00","student_id":192,"uuid":"b4a9d16e-5846-4ec8-8793-3d834a1a3c1b"} |
This file contains 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
class Person | |
def initialize | |
@attributes = {} | |
end | |
def attributes | |
@attributes.dup.freeze | |
end | |
def name |
This file contains 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
<script type="text/javascript"> | |
$('.the-posts .posts-grid').prepend('.sticky'); | |
</script> |
This file contains 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
class ApplicationController < ActionController::Base | |
protect_from_forgery with: :exception | |
before_filter :set_locale | |
private | |
def set_locale | |
if params[:locale] | |
I18n.locale = params[:locale] |
This file contains 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
Dashboard.module 'Entities', (Entities, Dashboard, Backbone, Marionette, $, _) -> | |
class Entities.Site extends Backbone.RelationalModel | |
relations: [ | |
{ | |
type: Backbone.HasMany | |
key: 'widgets' | |
relatedModel: 'Dashboard.Entities.Widget' | |
parse: true | |
relatedCollection: 'Dashboard.Entities.WidgetCollection' | |
reverseRelation: { |
This file contains 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
class Attendee < ActiveRecord::Base | |
devise :invitable, :rememberable, :trackable, :omniauthable, | |
:registerable, :database_authenticatable, :recoverable | |
has_many :reservations, through: :invites | |
has_many :invites, foreign_key: :guest_id | |
end |