Skip to content

Instantly share code, notes, and snippets.


Nicolas Goles Goles

View GitHub Profile

Keybase proof

I hereby claim:

  • I am goles on github.
  • I am goles ( on keybase.
  • I have a public key ASDMLb4YrDuxGgF6JnR72jlb-_NpUMKvRVjsDM1OwMutTgo

To claim this, I am signing this object:

// Header
@interface AnOperation : NSOperation
@property (nonatomic, readonly) NSString *ifa;
@property (nonatomic, assign) double timeInterval;
// .m
// Tries to access a property with an exponential back-off
View sieve_of_eratosthenes.swift
let N = 1000;
var i = 2;
var array = Bool[](count:N, repeatedValue:true);
for i in 2..array.count {
for var j = 2; j * i < array.count; ++j {
if array[j * i] {
array[j * i] = false
View Startup

Hasta donde sé hay "evaluaciones"... había una planilla dando vueltas por ahí que evaluaba las aceleradoras en general por capital levantado. Las que realmente valen la pena son YCombinator, 500 Startups, Techstars (generalizando un poco y en el momento que ví la planilla).

El tema es que Startup Chile no puede medirse (en mi opinión) de esta manera. El objetivo final, es diferente.

Lo que plantea Startup Chile

Mission: "Position Chile as the leading innovation and entrepreneurship hub of Latam"

View uncrustify.cfg
# Uncrustify Configuration File
# File Created With UncrustifyX 0.2 (140)
# Alignment
# ---------
## Alignment
use strict;
use vars qw($VERSION %IRSSI);
use Irssi;
$VERSION = '1.0.0';
%IRSSI = (
authors => 'Brandon Black',
contact => '',
name => 'irssi-osx-notify',
description => 'OS X Notifications for Irssi.',
View cancel_ticket_example.m
PLCancelTicketSet *ticketSet = [PLCancelTicketSet ticketSet];
id<PLCancelTicket> httpTicket = [_client connectionWithRequest: req
bodyData: reqData
timeout: timeout
dispatchContext: [PLDirectDispatchContext context]
block: ^(PLHTTPResponse *response, id <PLInputStream> bodyInputStream, NSError *error)
// ... check for error ..
PLLimitingInputStreamFilter *inputFilter = [PLLimitingInputStreamFilter filterWithInputStream: bodyInputStream
View vim.rb
require 'formula'
class Vim < Formula
homepage ''
# This package tracks vim directly from and not from the debian repos.
url ''
sha1 '601abf7cc2b5ab186f40d8790e542f86afca86b7'
devel do
url ''
# This should work whether you are already in a TMUX session or not...
# Irssi directory is assumed to be in the user's home dir
if [ -z "$TMUX" ]
tmux new-session -d -s ircuser
tmux split-window -tircuser -h -l20
tmux send-keys -tircuser "tmux send-keys -t0 \"irssi\" C-m; \
tmux send-keys -t0 \"/set nicklist_height \$(stty size | cut -f1 -d' ' -)\" C-m; \
tmux send-keys -t0 \"/set nicklist_width \$(stty size | cut -f2 -d' ' -)\" C-m; \