Skip to content

Instantly share code, notes, and snippets.

View Gazer's full-sized avatar
💭
Coding

Ricardo Markiewicz Gazer

💭
Coding
View GitHub Profile
<?php
$api = new CSApi($public_key, $private_key);
$res = $api->check_authentication('[email protected]', 'clave');
if ($api->has_errors) {
echo "$api->last_error.\n";
} else {
if ($res == 0) {
@Gazer
Gazer / MyModel.rb
Created May 31, 2011 21:44
URL for models in JSON Response
class MyModel
attr_accessor :item_url
def as_json(options={})
{
:url => item_url
}.merge(self.attributes)
end
end
void
setup_language_manager_path(GtkSourceLanguageManager *lm)
{
gchar **lang_files;
int i, lang_files_count;
char **new_langs;
lang_files = g_strdupv (gtk_source_language_manager_get_search_path (lm));
lang_files_count = g_strv_length (lang_files);
<VirtualHost *:80>
<Directory "/xxx/yyy/zzz/falta-uno/current/public">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ServerAdmin [email protected]
DocumentRoot /xxx/yyy/zzz/falta-uno/current/public
class User
def full_name
"BLA"
end
alias :full_name, :real_full_name
def full_name
@cache ||= real_full_name
end
end