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<iostream> | |
#include<cstdlib> | |
#include<cstring> | |
using namespace std; | |
struct Auto{ | |
int serijski_br; | |
char proizvodac[35]; | |
char model[35]; |
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
config.action_mailer.smtp_settings = { | |
:address => "mail.authsmtp.com", | |
:domain => "famspam.com", | |
:port => 2525, | |
:user_name => "user", | |
:password => "pass", | |
:authentication => :cram_md5 | |
} | |
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
$ cat init.rb | pygmentize -f html -l ruby | |
*** Error while highlighting: | |
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 16: ordinal not in range(128) | |
(file "/Library/Python/2.5/site-packages/Pygments-0.9-py2.5.egg/pygments/lexer.py", line 151, in get_tokens) | |
$ pygmentize init.rb | |
<works> |
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
try | |
{ | |
beginAt(atUrl); | |
} | |
catch (RuntimeException re) | |
{ | |
// If we get here, it's possible that we are running on java 1.5 + | |
// and the server is websphere. in this combination (and only this | |
// one AFAIK) the HttpUnit client receives a null from | |
// HttpUrlConnection.getErrorStream() which, according to the JDK javadoc |
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
# watch me turn java into ruby | |
def try; end | |
def catch(*args) end | |
def RuntimeException(*args) end | |
def re; end | |
class Anything; def method_missing(*args) Anything.new end end | |
def getDialog; Anything.new end | |
def WebResponse(*args) end | |
def atUrl; '' 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
11) Error: | |
test_spec {A User changing to a coupon plan} 004 [fails if the coupon is not in the db](A User changing to a coupon plan): | |
NoMethodError: You have a nil object when you didn't expect it! | |
The error occurred while evaluating nil.squeeze | |
/Users/chris/Projects/github/app/models/public_key.rb:32:in `clear_newlines' | |
/Users/chris/Projects/github/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/callbacks.rb:34:in `send' | |
/Users/chris/Projects/github/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/callbacks.rb:34:in `evaluate_method' | |
/Users/chris/Projects/github/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/callbacks.rb:27:in `call' | |
/Users/chris/Projects/github/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/callbacks.rb:11:in `run' | |
/Users/chris/Projects/github/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/callbacks.rb:10:in `each' |
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
def explain! | |
puts 'Want to embed this Gist?' | |
puts 'Use this: <script src="http://gist.github.com/2059.js"></script>' | |
end | |
explain! |
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
BLOWIN UP YOUR SPOT |
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
javascript:var parts=location.pathname.split('/');document.getElementsByTagName('body')[0].innerHTML = '<textarea id="url">http://twictur.es/'+parts[parts.length-1]+'.gif</textarea>';document.getElementById('url').select() |
OlderNewer