Skip to content

Instantly share code, notes, and snippets.

View foca's full-sized avatar

Nicolás Sanguinetti foca

View GitHub Profile
#include<iostream>
using namespace std;
struct Automobil{
int ser_broj;
char proizvodjac[50];
char model[50];
int godina;
};
@foca
foca / gist:49
Created July 21, 2008 02:46 — forked from bkerley/cacheslam.c
We couldn’t find that file to show.
#!/bin/sh
export COLUMNS=$COLUMNS # term width isn't exported properly :(
export PS1='`ps1`'
Once upon a time a goat travelled happily through a green pasture
{ scopeName = 'source.ruby';
comment = '
TODO: unresolved issues
text:
"p << end
print me!
end"
symptoms:
not recognized as a heredoc
grammar Example
rule reminder
"tell me " time "to " anything:(.+)
end
rule time
("at" / "on") " " word+ &"to "
end
rule word
module M; end
class C; end
C.ancestors #=> [Object, Kernel]
C.send :include, M #=> C
C.ancestors #=> [M, Object, Kernel]
- 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
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
module Sinatra
class EventContext
def params
@params ||= ParamsParser.new(@route_params.merge(@request.params)).to_hash
end
private
class ParamsParser
attr_reader :hash