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
<?php | |
/** | |
* Example PgSQL Auth Plugin settings | |
* See https://www.dokuwiki.org/plugin:authpgsql for details and explanation | |
*/ | |
/** | |
* Options | |
*/ | |
$conf['authtype'] = "pgsql"; |
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
source 'https://rubygems.org' | |
git_source(:github) do |repo_name| | |
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") | |
"https://github.com/#{repo_name}.git" | |
end | |
gem 'sqlite3' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', '~> 5.0.2' |
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
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 */ |
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 set_full_name | |
wed = self | |
wed.full_name = self.couple.full_name | |
wed.save | |
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
{ | |
"Buenos Aires": { | |
"default": "SABE", | |
"Avellaneda": "AGAD", | |
"Azul": "SAZA", | |
"Bahia Blanca": "SAZB", | |
"Ezeiza": "SAEZ2", | |
"Comodoro Rivadavia": "AG0198", | |
"Coronel Suarez": "SACS", | |
"General San Martin": "BUEX", |
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 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); |
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 "#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 |
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
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 |
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
<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"/> |
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
{"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"}} |
NewerOlder