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 / Gemfile
Created May 23, 2012
rails + unicorn + rbenv + init.d daemon
View Gemfile
group :production do
gem "unicorn"
end
@nebiros
nebiros / IndexController.php
Created Jan 28, 2010
Export data to excel on Zend Framework
View IndexController.php
<?php
class IndexController extends Zend_Controller_Action
{
public function exportXlsAction()
{
set_time_limit( 0 );
$model = new Default_Model_SomeModel();
$data = $model->getData();
View mb_str_pad.php
<?php
/**
* mb_str_pad
*
* @param string $input
* @param int $pad_length
* @param string $pad_string
* @param int $pad_type
* @return string
View LayoutableButton.swift
import UIKit
enum LayoutableButtonVerticalAlignment: String {
case center
case top
case bottom
case unset
}
enum LayoutableButtonHorizontalAlignment: String {
@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 = {
@nebiros
nebiros / Podfile
Created Oct 2, 2018
Set swift version for a specific pod
View Podfile
post_install do |installer|
installer.pods_project.targets.each do |target|
next unless %w[NonSwift42Pod].include? target.name
target.build_configurations.each do |config|
config.build_settings["SWIFT_VERSION"] = "4.0"
end
end
end
@nebiros
nebiros / _get_short_url.php
Created Apr 23, 2014
URL shortener using google's and CURL.
View _get_short_url.php
<?php
define("DEFAULT_URL_SHORTENER_API_URL", "https://www.googleapis.com/urlshortener/v1/url");
function _get_short_url($longUrl) {
$curl = curl_init();
$options = array(
CURLOPT_CONNECTTIMEOUT => 0,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_SSL_VERIFYPEER => false,
View Mailer.php
<?php
/**
* Mailer.
*
* @author nebiros
*/
class Mailer {
protected $_mailsFilePath = null;
@nebiros
nebiros / BaseGeolocable.swift
Last active Jan 5, 2017
BaseGeolocable example
View BaseGeolocable.swift
//
// BaseGeolocable.swift
//
// Created by Juan Felipe Alvarez Saldarriaga on 11/11/16.
//
import Foundation
import CoreLocation
protocol BaseGeolocable: class, CLLocationManagerDelegate {
@nebiros
nebiros / job_position_frontend.md
Last active Oct 13, 2016 — forked from anonymous/job_offerings.md
How to post job offerings
View job_position_frontend.md

Batteries911

Oscar Correa: oscar@batteries911.com

Requerimientos

  • css
  • javascript
  • node.js
  • angular (al menos mid-level)

Salario: $1800 USD

You can’t perform that action at this time.