This file contains hidden or 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
| View = require 'views/base/view' | |
| utils = require 'lib/utils' | |
| mediator = require 'mediator' | |
| class SignupView extends View | |
| el: $("#cadastro") | |
| initialize: -> | |
| @delegate 'click', '#cadastrar', @signup | |
| @delegate 'click', '.close', @close |
This file contains hidden or 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
| module.exports = class FeedView extends View | |
| template: template | |
| initialize: -> | |
| super | |
| @delegate 'click', '.apagar', @removeFeed | |
| removeFeed: -> | |
| @model.destroy() |
This file contains hidden or 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
| #user nobody; | |
| worker_processes 1; | |
| #error_log logs/error.log; | |
| #error_log logs/error.log notice; | |
| #error_log logs/error.log info; | |
| #pid logs/nginx.pid; |
This file contains hidden or 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
| _ = ( | |
| 255, | |
| lambda | |
| V ,B,c | |
| :c and Y(V*V+B,B, c | |
| -1)if(abs(V)<6)else | |
| ( 2+c-4*abs(V)**-0.4)/i | |
| ) ;v, x=1500,1000;C=range(v*x | |
| );import struct;P=struct.pack;M,\ |
This file contains hidden or 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 Node: | |
| def __init__(self, left=None, right=None, key=None, value=None): | |
| self.left = left | |
| self.right = right | |
| self.key = key | |
| self.value = value | |
This file contains hidden or 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
| require 'optparse' | |
| require 'rmagick' | |
| options = {} | |
| OptionParser.new do |opts| | |
| opts.banner = "Usage: gify image1.jpg image2.jpg" | |
| opts.on("-v", "--verbose", "Run verbosely") do |v| | |
| options[:verbose] = v |
This file contains hidden or 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
| ;(function(){ | |
| var UIRootWidget = (function() { | |
| var cache = new WidgetCache(); | |
| var render = function() { | |
| $.getJSON('entities', function(entities) { | |
| draw(entities); | |
| }); | |
| }; | |
| var itemClicked = function(entity) { |
This file contains hidden or 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
| ;(function() { | |
| var TableInstanceListing = function(id) { | |
| $.getJSON('entities/' + id + '/instances', function(jsonObj) { | |
| draw(jsonObj); | |
| }); | |
| var buildTableHead = function(json, table) { | |
| tHead = $('<thead>'); |
This file contains hidden or 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
| updated file contents |