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.
Once upon a time a goat travelled happily through a green pasture
- 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
Información del orador:
Los interesados en contribuir con conferencias o talleres deben enviar la siguiente información:
* Autores: Nombre completo y resumen curricular
Evan Henshaw-Plath
* Público Objetivo: (Gerentes, Desarrolladores, Administradores de Sistemas)
Gerentes & Desarrolladores
Información del orador:
Los interesados en contribuir con conferencias o talleres deben enviar la siguiente información:
* Autores: Nombre completo y resumen curricular
Evan Henshaw-Plath
* Público Objetivo: (Gerentes, Desarrolladores, Administradores de Sistemas)
Desarrolladores
Información del orador:
Los interesados en contribuir con conferencias o talleres deben enviar la siguiente información:
* Autores: Nombre completo y resumen curricular
Evan Henshaw-Plath
* Público Objetivo: (Gerentes, Desarrolladores, Administradores de Sistemas)
Desarrolladores
@foca
foca / gist:55907
Created February 1, 2009 17:02 — forked from sinatra/gist:55898
# This method is heavily adapted from the Rails method of determining the subdomain.
require 'rubygems'
require 'sinatra'
helpers do
def subdomains(tld_len=1) # we set tld_len to 1, use 2 for co.uk or similar
@subdomains ||= if (!request.host.nil? &&
/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.match(request.host))
request.host.split('.')[0...(1 - tld_len - 2)]
else
{
:a => 2,
# NOTE for partials, you need to include the format
# otherwise, it'll fail to find byows/_byow.erb even if byows/_byow.html.erb exists
:b => render(:partial => 'example.html')
}.to_json
@foca
foca / file.rb
Created September 17, 2009 18:19
class Array
def includes_a?(other_array)
self | other_array == self
end
def includes_b?(other_array)
(other_array - self).empty?
end