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
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'
pool.signUp(username,
password: password,
userAttributes: attrs,
validationData: nil)
.continue { (task) -> Any? in
}
View job_position_ios.md

Batteries911

Oscar Correa: oscar@batteries911.com

Requerimientos

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

Salario: $1800 USD

@nebiros
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
# http://unicorn.bogomips.org/Unicorn/Configurator.html
CONFIG_PATH = File.join(Rails.root, "config", "unicorn.rb")
PID_PATH = File.join(Rails.root, "tmp", "pids", "unicorn.pid")
RBENV = %x[which rbenv].strip
DAEMON = "bundle exec unicorn_rails"
DAEMON_OPTS = "-c #{CONFIG_PATH} -E #{ENV["RAILS_ENV"]} -D"
@nebiros
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 ()
@end
@implementation MyViewController
#pragma mark - UIViewController
@nebiros
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 http://www.php.net/get/php-5.5.6.tar.bz2/from/this/mirror
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
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 juan.im. All rights reserved.
//
#import <UIKit/UIKit.h>
@nebiros
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
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
nebiros / completion-for-gradle.md
Created Oct 27, 2015 — forked from nolanlawson/completion-for-gradle.md
Gradle tab completion for Bash. Works on both Mac and Linux.
View completion-for-gradle.md

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.

Usage

$ gradle [TAB]
@nebiros
nebiros / postgresql.rb
Created Dec 3, 2012
postgres 9.1.6 homebrew formula
View postgresql.rb
require 'formula'
class Postgresql < Formula
homepage 'http://www.postgresql.org/'
url 'http://ftp.postgresql.org/pub/source/v9.1.6/postgresql-9.1.6.tar.bz2'
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.