Skip to content

Instantly share code, notes, and snippets.

Juan Felipe Alvarez Saldarriaga nebiros

Block or report user

Report or block nebiros

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
nebiros / test1.swift
Last active Sep 20, 2016
Swift 3 – Resolving method ambiguity defining closures as a var
View test1.swift
// objc's continue method signature: - (AWSTask *)continueWithBlock:(AWSContinuationBlock)block;
// swift translate it as: .continue(block: (AWSTask<AWSCognitoIdentityUserPoolSignUpResponse>) -> Any?)
// error: Ambiguous use of 'continue'
password: password,
userAttributes: attrs,
validationData: nil)
.continue { (task) -> Any? in


Oscar Correa:


  • ios
  • objc
  • swift (no es necesario saberlo)
  • uikit

Salario: $1800 USD

nebiros / unicorn.rake
Created Jun 5, 2012
rails rake tasks for managing unicorn server instances + rbenv
View unicorn.rake
ENV["RAILS_ENV"] ||= "production"
module UnicornServer
CONFIG_PATH = File.join(Rails.root, "config", "unicorn.rb")
PID_PATH = File.join(Rails.root, "tmp", "pids", "")
RBENV = %x[which rbenv].strip
DAEMON = "bundle exec unicorn_rails"
nebiros / MyViewController.m
Last active Jan 1, 2016
Custom back button as navigation item left bar button.
View MyViewController.m
#import "MyViewController.h"
#import "UIViewController+JIMBackButton.h"
@interface MyViewController ()
@implementation MyViewController
#pragma mark - UIViewController
nebiros / gist:7757728
Created Dec 2, 2013
php55 --with-pgsql error: command not found: pg_config --includedir
View gist:7757728
$ HOMEBREW_MAKE_JOBS=1 brew install -v php55 --with-homebrew-openssl --with-imap --with-pgsql --with-tidy 2>&1
==> Downloading
Already downloaded: /Library/Caches/Homebrew/php55-5.5.6
tar xf /Library/Caches/Homebrew/php55-5.5.6
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file configure
Hunk #1 succeeded at 39041 (offset 764 lines).
/usr/local/Library/Homebrew/formulary.rb:40: command not found: pg_config --includedir
==> ./configure --prefix=/usr/local/Cellar/php55/5.5.6 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/5.5 --with-config-file-path=/usr/local/etc/php/5.5 --with-config-file-scan-dir=/usr/local/etc/php/5.5/conf.d --with-iconv-dir=/usr --enable-dba --with-ndbm=/usr --enable-exif --enable-soap --enable-wddx --enable-ftp --enable-sockets --enable-zip --enable-shmop --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-mbstring --enable-mbregex --enable-bcmath --enable-calendar --with-zlib=/usr/local/op
nebiros / UIViewController+JIMBackButton.h
Last active Dec 27, 2015
iOS custom back button category.
View UIViewController+JIMBackButton.h
// UIViewController+JIMBackButton.h
// CupMaster
// Created by Juan Felipe Alvarez Saldarriaga on 11/7/13.
// Copyright (c) 2013 All rights reserved.
#import <UIKit/UIKit.h>
nebiros / app.js
Last active Dec 15, 2015
phonegap + jquery + app-UI + dust.js + fastclick.js
View app.js
var App = App || {};
App.UI = (function ($) {
var module = {};
function Template(options) {
var defaults = {
cache: {}
, nav: {target: document.body, backLabel: "Back"}
, templatesDir: "templates"
nebiros / hubot_error.log
Created Jan 14, 2013
hubot-scripts 2.4.0 not found
View hubot_error.log
Counting objects: 9, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 635 bytes, done.
Total 6 (delta 4), reused 0 (delta 0)
-----> Node.js app detected
-----> Resolving engine versions
Using Node.js version: 0.6.20
Using npm version: 1.0.106
-----> Fetching Node.js binaries
nebiros /
Created Oct 27, 2015 — forked from nolanlawson/
Gradle tab completion for Bash. Works on both Mac and Linux.

Gradle tab completion script for Bash

A tab completion script that works for Bash. Relies on the BSD md5 command on Mac and md5sum on Linux, so as long as you have one of those two commands, this should work.


$ gradle [TAB]
nebiros / postgresql.rb
Created Dec 3, 2012
postgres 9.1.6 homebrew formula
View postgresql.rb
require 'formula'
class Postgresql < Formula
homepage ''
url ''
sha1 'a24b7c002463572ee7371f055e566b69e39cda3e'
depends_on 'readline'
depends_on 'libxml2' if MacOS.leopard? # Leopard libxml is too old
depends_on 'ossp-uuid' unless build.include? 'without-ossp-uuid'
You can’t perform that action at this time.