Skip to content

Instantly share code, notes, and snippets.

Nicolas Goles Goles

Block or report user

Report or block Goles

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 keybase.md

Keybase proof

I hereby claim:

  • I am goles on github.
  • I am goles (https://keybase.io/goles) on keybase.
  • I have a public key ASDMLb4YrDuxGgF6JnR72jlb-_NpUMKvRVjsDM1OwMutTgo

To claim this, I am signing this object:

View hello.mm
// Header
@interface AnOperation : NSOperation
@property (nonatomic, readonly) NSString *ifa;
@property (nonatomic, assign) double timeInterval;
@end
// .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 Chile.md

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
View irssi-osx-notify.pl
use strict;
use vars qw($VERSION %IRSSI);
use Irssi;
$VERSION = '1.0.0';
%IRSSI = (
authors => 'Brandon Black',
contact => 'brandonmblack@gmail.com',
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
maximumBytes: MAX_RESOURCE_DOWNLOAD_BYTES];
View vim.rb
require 'formula'
class Vim < Formula
homepage 'http://www.vim.org/'
# This package tracks vim directly from Vim.org and not from the debian repos.
url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2'
sha1 '601abf7cc2b5ab186f40d8790e542f86afca86b7'
devel do
url 'http://ftp.de.debian.org/debian/pool/main/v/vim/vim_7.4b.004.orig.tar.gz'
View tmux_irssi_niclist.sh
#!/bin/bash
# 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" ]
then
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; \
You can’t perform that action at this time.