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 'commons-cli-1.1.jar' | |
require 'jodconverter-core-3.0-beta-4.jar' | |
require 'juh-3.2.1.jar' | |
require 'ridl-3.2.1.jar' | |
require 'commons-io-1.4.jar' | |
require 'json-20090211.jar' | |
require 'jurt-3.2.1.jar' | |
require 'unoil-3.2.1.jar' | |
class Converter |
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
# config/initializers/quartz.rb | |
require 'commons-collections-3.2.1.jar' | |
require 'commons-logging.jar' | |
require 'log4j.jar' | |
require 'quartz-1.6.4.jar' | |
require 'quartz' | |
org.apache.log4j.BasicConfigurator.configure |
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
@GlobalClick = | |
initialize: () -> | |
this.items = {} | |
this.elements = {} | |
$('body').click (event) -> GlobalClick.perform(event) | |
bind: (selector, action) -> | |
this.items[selector] = action |
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
#scope{@table} | |
%id | |
%schema | |
%ololo | |
%image#scope{:image => @table.image} | |
#partial{'rows/image', :image => image} | |
%width | |
%url | |
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
$.ajax | |
# ... | |
xhr: -> | |
xhr = $.ajaxSettings.xhr() | |
if xhr.upload? | |
xhr.upload.onprogress = => | |
console.log arguments... | |
return xhr |
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
# Inline callbacks | |
foo => # always new line | |
ololo() | |
# Function calls | |
ololo() #when no params | |
ololo param #with params | |
# Inline function calls | |
ololo subololo(param) |
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
Joosy.namespace 'Welcome', -> | |
class @IndexPage extends ApplicationPage | |
@layout MediaLayout | |
@view 'pages/welcome/index' | |
@fetch (complete) -> | |
$.get "/cities/#{currentCity.id}/items", (@data) => | |
complete() |
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_joosy_preloader_for '<%= file_name %>', preloader: 'caching', force: false" %> | |
bootstrap = -> | |
$('#preloader').remove() | |
#Joosy.debug = false | |
Joosy.Application.initialize('<%= file_name %>','#application') | |
window.onload = -> | |
Preloader.load window.preload, | |
complete: bootstrap |
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 !@previous?.__erase && !@__beforePaint | |
@trigger 'stageClear' | |
else | |
clearStage = => | |
if @__beforePaint? | |
@__beforePaint @layout.content(), => @trigger 'stageClear' | |
else | |
@trigger 'stageClear' | |
if @previous?.__erase? |
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 @BreadcrumbsWidget extends Joosy.Widget | |
@breadcrumbs: Joosy.Resource.Generic.create(all: []) | |
@rewindOrPush: (page) -> | |
url = location.hash | |
url = '#!/' if url.isBlank() | |
title = page.title | |
index = @breadcrumbs('all').findIndex (item) -> item.url == url |
OlderNewer