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
| <!--[if lte IE 8]><div class="DV-docViewer DV-clearfix DV-viewDocument DV-ie <% if (autoZoom) { %>DV-autoZoom<% } %> <% if (!options.sidebar) { %>DV-hideSidebar<% } %>"><![endif]--> | |
| <!--[if (!IE)|(gte IE 9)]><!--><div class="DV-docViewer DV-clearfix DV-viewDocument <% if (autoZoom) { %>DV-autoZoom<% } %> <% if (!options.sidebar) { %>DV-hideSidebar<% } %>"><!-- <![endif]--> | |
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
| // A-la serializeArray but returns a hash instead of a list. | |
| serializeJSON : function() { | |
| return _.reduce(this.serializeArray(), function(hash, pair) { | |
| hash[pair.name] = pair.value; | |
| return hash; | |
| }, {}); | |
| }, |
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
| x( | |
| y | |
| z | |
| ) |
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
| <script type="text/javascript"> | |
| window.RAILS_ENV = '<%= RAILS_ENV %>'; | |
| window.SERVER_ROOT = '<%= DC.server_root %>'; | |
| window.SERVER_ROOT_HTTP = '<%= DC.server_root(:ssl => false) %>'; | |
| <% if workspace %> | |
| Organizations.refresh(<%= @organizations.to_json %>); | |
| <% if @current_account %> | |
| <%= render :partial => 'accounts/current_account.js', :type => :js %> | |
| Accounts.refresh(<%= @accounts.to_json %>); | |
| Projects.refresh(<%= @projects.to_json({:account => @current_account, :include_collaborators => true}) %>); |
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
| namespace :ping do | |
| task :stop do | |
| sh "kill `cat log/pixel_ping.pid`; rm log/pixel_ping.pid" | |
| end | |
| task :run do | |
| sh launch_command | |
| end |
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
| diff --git a/lib/parser.js b/lib/parser.js | |
| index 2b267e8..0231768 100755 | |
| --- a/lib/parser.js | |
| +++ b/lib/parser.js | |
| @@ -5,7 +5,7 @@ yy: {}, | |
| symbols_: {"error":2,"Root":3,"Body":4,"Block":5,"TERMINATOR":6,"Line":7,"Expression":8,"Statement":9,"Return":10,"Throw":11,"Comment":12,"STATEMENT":13,"Value":14,"Invocation":15,"Code":16,"Operation":17,"Assign":18,"If":19,"Try":20,"While":21,"For":22,"Switch":23,"Class":24,"INDENT":25,"OUTDENT":26,"Identifier":27,"IDENTIFIER":28,"AlphaNumeric":29,"NUMBER":30,"STRING":31,"Literal":32,"JS":33,"REGEX":34,"BOOL":35,"Assignable":36,"=":37,"AssignObj":38,"ObjAssignable":39,":":40,"ThisProperty":41,"RETURN":42,"HERECOMMENT":43,"PARAM_START":44,"ParamList":45,"PARAM_END":46,"FuncGlyph":47,"->":48,"=>":49,"OptComma":50,",":51,"Param":52,"ParamVar":53,"...":54,"Array":55,"Object":56,"Splat":57,"SimpleAssignable":58,"Accessor":59,"Parenthetical":60,"Range":61,"This":62,".":63,"?.":64,"::":65,"Index":66,"INDEX_START":67,"IndexValue":68,"INDEX_END":69,"INDEX_SOAK":70,"INDEX_PROTO":71 |
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
| m = 0 | |
| $("#previous a").click -> | |
| m -= 1 | |
| $.ajax | |
| url: '/increment' | |
| data: {"weeks" : m} | |
| success: (new_table) -> | |
| $("table").hide "slide", {direction: "right"}, 480, -> | |
| $(this).replaceWith(new_table) | |
| $("table").show "slide", {direction: "left"}, 300 |
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
| // Note Model | |
| dc.model.Note = Backbone.Model.extend({ | |
| document : function() { | |
| return this._document = this._document || Documents.get(this.get('document_id')); | |
| }, | |
| checkAllowedToEdit : function() { | |
| if (!dc.account) return false; |
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
| // Document Model | |
| dc.model.Document = Backbone.Model.extend({ | |
| constructor : function(attrs, options) { | |
| attrs.selected = false; | |
| attrs.selectable = true; | |
| if (attrs.annotation_count == null) attrs.annotation_count = 0; | |
| Backbone.Model.call(this, attrs, options); | |
| var id = this.id; |
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 Document < ActiveRecord::Base | |
| # The definition of the Solr search index. Via sunspot-rails. | |
| searchable do | |
| # Full Text... | |
| text :title, :default_boost => 2.0 | |
| text :source | |
| text :description | |
| text :full_text, {:more_like_this => true} do |