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
View Mailer.php
<?php
/**
* Mailer.
*
* @author nebiros
*/
class Mailer {
protected $_mailsFilePath = null;
View THTAddThreeThingsTableHeaderView.m
//
// THTAddThreeThingsTableHeaderView.m
// ThreeThings
//
// Created by Juan Felipe Alvarez Saldarriaga on 3/3/14.
// Copyright (c) 2014 3Things. All rights reserved.
//
#import "THTAddThreeThingsTableHeaderView.h"
#import <RHAddressBook/RHPerson.h>
View gist:9330034
- (void)updateViewConstraints
{
[self setupTableViewHeader];
[super updateViewConstraints];
}
- (void)viewDidLayoutSubviews
{
[super viewDidLayoutSubviews];
@nebiros
nebiros / gist:9196645
Last active Jan 8, 2019
Send Push Notifications from node.js with Parse.com SDK
View gist:9196645
var Parse = require("parse").Parse;
Parse.initialize(
"", // applicationId
"", // javaScriptKey
"" // masterKey
);
var query = new Parse.Query(Parse.Installation)
, data = {
View gist:8963499
// An implementation.
- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];
// if (!self.isThingsSaved) {
// [self saveThings];
// }
[self saveThings];
View gist:8809954
Undefined symbols for architecture armv7s:
"_OBJC_CLASS_$_MKMapView", referenced from:
l244 in SparkInspector(SparkInspector)
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
View gist:8741901
NSArray *recordIds = [self.people valueForKey:@"recordID"];
NSMutableArray *arr = [NSMutableArray arrayWithCapacity:[recordIds count]];
for (id recordId in recordIds) {
NSLog(@"recordId 1, %@", recordId);
NSLog(@"recordId 2, %@", @((ABRecordID) recordId));
NSLog(@"recordId 3, %d", (ABRecordID) recordId);
NSLog(@"recordId 4, %@", [NSNumber numberWithInt:(ABRecordID) recordId]);
ABRecordID r = (ABRecordID) recordId;
[arr addObject:[NSNumber numberWithInt:r]];
}
@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>
You can’t perform that action at this time.