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> | |
using namespace std; | |
struct Automobil{ | |
int ser_broj; | |
char proizvodjac[50]; | |
char model[50]; | |
int godina; | |
}; |
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
#!/bin/sh | |
export COLUMNS=$COLUMNS # term width isn't exported properly :( | |
export PS1='`ps1`' | |
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
Once upon a time a goat travelled happily through a green pasture |
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
{ scopeName = 'source.ruby'; | |
comment = ' | |
TODO: unresolved issues | |
text: | |
"p << end | |
print me! | |
end" | |
symptoms: | |
not recognized as a heredoc |
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
grammar Example | |
rule reminder | |
"tell me " time "to " anything:(.+) | |
end | |
rule time | |
("at" / "on") " " word+ &"to " | |
end | |
rule word |
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
module M; end | |
class C; end | |
C.ancestors #=> [Object, Kernel] | |
C.send :include, M #=> C | |
C.ancestors #=> [M, Object, Kernel] |
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
- Re-size displays | |
- Name computer and drive if not already done | |
- Set Network connection settings (default host 222 for primary system) | |
- Turn on all appropriate Sharing settings | |
- Start processes that will take a while: | |
- Start downloading latest Xcode package | |
- Start Software Update | |
- Start Time Machine's first backup to Time Capsule | |
- Start downloading latest EVE Online client | |
- Create /usr/local/src |
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
describe "A featured model", :shared => true do | |
# notar que nunca defino "sample_featurable_object" aca adentro | |
def featured | |
@featured ||= sample_featurable_object | |
end | |
def feature | |
@feature ||= Feature.create!(:featured => featured) | |
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
module Sinatra | |
class EventContext | |
def params | |
@params ||= ParamsParser.new(@route_params.merge(@request.params)).to_hash | |
end | |
private | |
class ParamsParser | |
attr_reader :hash |
OlderNewer