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": { | |
| "id": xxxxx, | |
| "access_token": xxxxx | |
| }, | |
| "history": { | |
| }, | |
| "video": { |
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
| flashvars = | |
| src: encodeURIComponent(app.config["video"]["hls_url"]) | |
| autoPlay: autoplay is 1 | |
| loop: false | |
| plugin_hls: "/strobe/HLSDynamicPlugin.swf" | |
| javascriptCallbackFunction: "Strobe.bridge" | |
| expandedBufferTime: 20 | |
| params = | |
| allowFullScreen: true | |
| allowScriptAccess: "always" |
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
| this.Strobe = (function() { | |
| function Strobe() {} | |
| _.extend(Strobe, Backbone.Events); | |
| Strobe.bridge = function(playerId, ev, data) { | |
| switch (ev) { | |
| case "onJavaScriptBridgeCreated": | |
| Strobe.player = document.getElementById(playerId); | |
| Strobe.player.addEventListener("bufferingChange", "Strobe.onBufferingChange"); |
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
| player.on("firstplay", (function(_this) { | |
| return function(ev) { | |
| var $target; | |
| $target = $(ev.target); | |
| return $target.find("video").eq(0).attr("controls", true); | |
| }; | |
| })(this)); | |
| player.on("adend", (function(_this) { | |
| return function(ev) { |
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
| gulp.task "bundle-scripts", -> | |
| delete require.cache[require.resolve "./assets/bundles"] | |
| bundles = require "./assets/bundles" | |
| scripts = _.filter _.keys(bundles), (filename) -> | |
| filename.indexOf(".js") >= 0 | |
| merge _.map scripts, (filename) -> | |
| if filename.indexOf(".js") is -1 then return | |
| coffeeFilter = filter "**/*.coffee" | |
| stream = gulp.src bundles[filename] | |
| .pipe coffeeFilter |
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
| bundles = | |
| "main.js": [ | |
| "bower_components/es5-shim/es5-shim.js" | |
| "bower_components/cookie.js/cookie.js" | |
| "bower_components/store.js/store.js" | |
| "bower_components/bows/dist/bows.js" | |
| "bower_components/lodash/lodash.js" | |
| "bower_components/async/lib/async.js" | |
| "bower_components/moment/moment.js" | |
| ... |
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
| When bash is invoked as an interactive login shell, or as a non-inter- | |
| active shell with the --login option, it first reads and executes com- | |
| mands from the file /etc/profile, if that file exists. After reading | |
| that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, | |
| in that order, and reads and executes commands from the first one that | |
| exists and is readable. The --noprofile option may be used when the | |
| shell is started to inhibit this behavior. |
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
| def set_position | |
| if not self.special | |
| categories = self.user.categories.normal.with_position.asc(:position) | |
| if categories.present? && categories.count > 0 | |
| self.position = categories.last.position + 1 | |
| else | |
| self.position = 1 | |
| end | |
| end | |
| 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
| ERROR: While executing gem ... (NameError) | |
| uninitialized constant Psych::Syck | |
| /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb:190:in `block in fix_syck_default_key_in_requirements' | |
| /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb:189:in `each' | |
| /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb:189:in `fix_syck_default_key_in_requirements' | |
| /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb:144:in `marshal_load' | |
| /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:647:in `load' | |
| /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:647:in `_load' | |
| /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:134:in `load' | |
| /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:134:in `fetch_spec' |
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
| /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1915:in `gsub': invalid byte sequence in US-ASCII (ArgumentError) | |
| from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1915:in `to_yaml' | |
| from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/builder.rb:79:in `block (2 levels) in write_package' | |
| from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_output.rb:73:in `block (3 levels) in add_gem_contents' | |
| from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_writer.rb:83:in `new' | |
| from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_output.rb:67:in `block (2 levels) in add_gem_contents' | |
| from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_output.rb:65:in `wrap' | |
| from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_output.rb:65:in `bl |
OlderNewer