Skip to content

Instantly share code, notes, and snippets.

Nicolas Orcali norcali

  • Buenos Aires
Block or report user

Report or block norcali

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:32d320c6611023f31ac1
def set_full_name
wed = self
wed.full_name = self.couple.full_name
wed.save
end
View gist:f07347000509de45d996
SYSCALL_DEFINE3(silly_copy,
unsigned long *, src,
unsigned long *, dst,
unsigned long, len)
{
unsigned long buf[64]; /* Buffer for chunks */
unsigned long lenleft = len; /* Remaining size */
unsigned long chunklen = sizeof(buf); /* Initial chunk length */
/* Loop handling chunk sizes */
View gist:5170642
- (Twitter::User) user(user, options = {})
Returns extended information for a given user
Examples:
Return extended information for @sferik
Twitter.user('sferik')
Twitter.user(7505382) # Same as above
Parameters:
user (Integer, String, Twitter::User) — A Twitter user ID, screen name, or object.
View gist:5196057
[:!, :!=, :!~, :<, :<=, :<=>, :==, :===, :=~, :>, :>=, :__id__, :__send__, :allocate, :ancestors, :autoload, :autoload?, :class, :class_eval, :class_exec, :class_variable_defined?, :class_variable_get, :class_variable_set, :class_variables, :clone, :const_defined?, :const_get, :const_missing, :const_set, :constants, :define_singleton_method, :display, :dup, :enum_for, :eql?, :equal?, :extend, :freeze, :frozen?, :hash, :include?, :included_modules, :initialize_clone, :initialize_dup, :inspect, :instance_eval, :instance_exec, :instance_method, :instance_methods, :instance_of?, :instance_variable_defined?, :instance_variable_get, :instance_variable_set, :instance_variables, :is_a?, :kind_of?, :method, :method_defined?, :methods, :module_eval, :module_exec, :name, :new, :nil?, :object_id, :private_class_method, :private_constant, :private_instance_methods, :private_method_defined?, :private_methods, :protected_instance_methods, :protected_method_defined?, :protected_methods, :public_class_method, :public_constant
View gist:5322507
{"utf8"=>"✓",
"authenticity_token"=>"4qyxrS3r2oGUfBbOcW/x6ZXTffL7UCnArQA0/H91/Nk=",
"user"=>{"email"=>"orcalinicolas@gmail.com",
"password"=>"[FILTERED]",
"password_confirmation"=>"[FILTERED]",
"username"=>"maverick",
"nombre"=>"Nicolas Orcali",
"role_ids"=>["2"],
"site_id"=>"1"}}
View gist:5404614
<ul>
<input id="site_user_id_orcalinicolasgmailcom" name="site[user_id]" type="radio" value="orcalinicolas@gmail.com" />
<label for="email_orcalinicolas@gmail.com">Orcalinicolas@gmail.com</label>
</ul>
<ul>
<input id="site_user_id_lordgamuzagmailcom" name="site[user_id]" type="radio" value="lordgamuza@gmail.com" />
<label for="email_lordgamuza@gmail.com">Lordgamuza@gmail.com</label>
</ul>
<ul>
<input id="site_user_id_orcalinicolasinfobaecom" name="site[user_id]" type="radio" value="orcalinicolas@infobae.com"/>
View gist:5629719
color = 0
j = 1
Sites.all.each do |site|
2.times do
i = 0
post = site.posts.reverse[i]
if nada
blanco
elsif color.modulo(2) == 0
rojo
View gist:5698858
describe "#statuses" do
it "returns an array of Tweets" do
statuses = Twitter::SearchResults.new(:statuses => [{:id => 25938088801, :text => 'tweet!'}]).statuses
expect(statuses).to be_an Array
expect(statuses.first).to be_a Twitter::Tweet
end
it "returns an array of Tweets" do
statuses = Twitter.search("Twitter").statuses
expect(statuses).to be_an Array
View gist:6024254
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
$(document).ready(function(){
$.getJSON("provincias.json", function(data) {
//console.log(data);
//var json = $.parseJSON(data);
View gist:6024257
{
"Buenos Aires": {
"default": "SABE",
"Avellaneda": "AGAD",
"Azul": "SAZA",
"Bahia Blanca": "SAZB",
"Ezeiza": "SAEZ2",
"Comodoro Rivadavia": "AG0198",
"Coronel Suarez": "SACS",
"General San Martin": "BUEX",
You can’t perform that action at this time.