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 ShowException | |
| def initialize | |
| @html = '<html> | |
| <style> | |
| body { | |
| font-family:arial; | |
| margin:0; | |
| padding:0; | |
| } |
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
| <h1><%= String.valueOf(@offer.title) %></h1> | |
| <!-- END COPY SELECTION HERE --><%= | |
| '<form action="/admin/offers/save/'+String.valueOf(@offer.url_id)+'" method="POST" enctype="multipart/form-data" > | |
| <fieldset><legend>Titulek slevové akce</legend> | |
| <input id="offer_title" type="text" name="offer[title]" value="'+String.valueOf(@offer.title)+'"> | |
| </fieldset> | |
| <label>Krátký popis:</label><br> | |
| <textarea name="offer[short_desc]" rows="2" cols="55">'+String.valueOf(@offer.short_desc)+'</textarea> |
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
| begin | |
| require 'ant' | |
| rescue LoadError | |
| puts 'This Rakefile requires JRuby. Please use jruby -S rake.' | |
| exit 1 | |
| end | |
| neighbor_mirah = File.expand_path '../mirah' |
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
| <html> | |
| <head> | |
| <body > | |
| <script> | |
| var map = [ | |
| [1000,'M'], | |
| [500,'D'], | |
| [100,'C'], |
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
| michal@home:~$ redcar --fork | |
| Redcar 0.7 ( java ) | |
| NotImplementedError: Something weird has happened. Please contact us. | |
| Forking isn't supported on this system. Sorry. | |
| Starting normally... | |
| loading plugins took 8.33 | |
| took 2.195s to load textmate assets | |
| initializing gui took 0.149s | |
| project start took 0.017s | |
| #<Redcar::ApplicationSWT::Treebook:0x1fd25ce>#<Redcar::ApplicationSWT::Treebook:0x1fd25ce>#<Redcar::ApplicationSWT::Treebook:0x1fd25ce>start time: 14.615 |
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
| var dd_upload_init = (function(id) { | |
| var is_ff = navigator.userAgent.indexOf("Firefox")!=-1; | |
| var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1; | |
| if (!is_ff && !is_chrome) { | |
| return; | |
| } | |
| //handy functions |
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
| How to make Redcar editor http://redcareditor.com/ highlite your Mirah source code | |
| Open this file, where your gems are located: | |
| ~/.gem/ruby/1.8/gems/redcar-0.4/plugins/textmate/vendor/redcar-bundles/Bundles/Ruby.tmbundle/Syntaxes/Ruby.plist | |
| and around line 49: | |
| <key>fileTypes</key> | |
| <array> | |
| <string>rb</string> |
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/bin/ruby | |
| AUDIO_EXTENSIONS = | |
| Hash[* | |
| "flac ogg mp3 wav ape". | |
| split. | |
| map { |f| ['.'+f,true] }. | |
| flatten | |
| ] |
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
| begin | |
| require 'ant' | |
| rescue LoadError | |
| puts 'This Rakefile requires JRuby. Please use jruby -S rake.' | |
| exit 1 | |
| end | |
| ENV['MIRAH_HOME'] ||= File.expand_path('~/mystuff/mirah/') | |
| if ENV['MIRAH_HOME'] && File.exist?(ENV['MIRAH_HOME'] +'/lib/mirah.rb') |
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
| // compressed by hand and edited as is | |
| C="▒▓███";n=35;a=[];M=['\n'];r=0;setInterval('a[r]=r=Math.random()*n|0;for(i=n*n;i-->n;M[i]=M[i-n]||C[a[i%n]--]||" ");document.body.innerHTML="<pre>"+M',n) |