This file contains 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
compass init rails . --using blueprint |
This file contains 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 @something %> | |
$("#showing_<%= @showing.id %>").html("<%= escape_javascript(render(:partial => 'item', :locals => { :showing => @showing, :create => false, :showing_confirmed => true})) %>"); | |
$("#showing_<%= @showing.id %>").effect("highlight"); | |
<% end %> | |
This file contains 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
val = "pizdarija" | |
val.randomize | |
val.instance_eval do | |
def randomize | |
split(//).to_a.shuffle.join | |
end |
This file contains 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
#include <stdio.h> | |
int main(){ | |
srand(time(NULL)); | |
int i = 0; | |
int random; | |
for (i=0;i < 10;i++){ | |
random = rand()%1000; | |
printf("%d\n",random); | |
} | |
return 0; |
This file contains 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 'sinatra' | |
get '/hi' do | |
"hello world!" | |
end |
This file contains 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 ExampleController < ApplicationController | |
rescue_from Exception, :with => :render_custom | |
def render_custom(exception) | |
if Exceptional::Remote.error(Exceptional::ExceptionData.new(exception, "Test Exception")) | |
Rails.logger.info "Exceptional: #{exception.class} has been reported to Exceptional" | |
else | |
Rails.logger.error "Exceptional: Problem sending exception. Check your API key." | |
end |
This file contains 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
### Brojčano na ekranu ispišite koliko godina ima sekundi. | |
### Koliko imate godina ako ste stari 8286 dana? |
This file contains 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
### Ispišite svoje ime i prezime unatrag | |
### Ispišite trece slovo svog imena velikim slovom |
This file contains 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"> | |
//<![CDATA[ | |
(function(){ | |
var notifierJsScheme = (("https:" == document.location.protocol) ? "https://" : "http://"); | |
document.write(unescape("%3Cscript src='" + notifierJsScheme + "airbrake.io/javascripts/notifier.js' type='text/javascript'%3E%3C/script%3E")); | |
})(); | |
//]]> | |
</script><script src="http://airbrake.io/javascripts/notifier.js" type="text/javascript"></script> |
This file contains 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
### Napišite program koji ce ispisivati string od 10 slova i 5 znamenki | |
### i to svaki put u drukcijem rasporedu | |
### Napišite program koji ce ispisati brojeve od 1 do 10, svaki u svom redu | |
OlderNewer