Skip to content

Instantly share code, notes, and snippets.

#Quick cp from http://sekati.com/etc/install-nodejs-on-debian-squeeze
#
#Needed to install TileMill from MapBox
#
#Installs node.js which has npm bundled
#
#Build Dependencies
sudo apt-get update && sudo apt-get install git-core curl build-essential openssl libssl-dev
@capir
capir / Mandrill_api.php
Created June 10, 2013 12:58
PHP: CI Libraries
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
require_once APPPATH.'third_party/Mandrill.php';
/**
* @version 1.6
* @todo add Tags √
* @todo send templates √
* @todo reset params √
* @todo config trackopens/clicks √
@capir
capir / cid_helper.php
Last active December 17, 2015 16:58
PHP: CI Helpers
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
function valid_cui($cui)
{
preg_match('/^([\D]{2})?\s*(\d{2,10})$/', $cui, $m);
if(empty($m)) return false;
if(!empty($m[1]) && strtolower($m[1]) != 'ro') return false;