I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
#Notes on how to install a missing module from PostgreSQL | |
#Download and Postgresql (no need to make install because we already have it..): | |
#pre-requisites | |
sudo apt-get install gcc | |
sudo apt-get install libreadline-dev | |
sudo apt-get install zlib1g-dev | |
wget http://ftp.postgresql.org/pub/source/v9.3.0/postgresql-9.3.0.tar.gz |
angular.module('testApp', []). | |
directive('lazyLoad', ['$window', '$q', function ($window, $q) { | |
function load_script() { | |
var s = document.createElement('script'); // use global document since Angular's $document is weak | |
s.src = 'https://maps.googleapis.com/maps/api/js?sensor=false&callback=initialize'; | |
document.body.appendChild(s); | |
} | |
function lazyLoadApi(key) { | |
var deferred = $q.defer(); | |
$window.initialize = function () { |
std::set phoenix;
phoenix.key_comp();
CREATE OR REPLACE FUNCTION public.json_append(data json, insert_data json) | |
RETURNS json | |
IMMUTABLE | |
LANGUAGE sql | |
AS $$ | |
SELECT ('{'||string_agg(to_json(key)||':'||value, ',')||'}')::json | |
FROM ( | |
SELECT * FROM json_each(data) | |
UNION ALL | |
SELECT * FROM json_each(insert_data) |
Douglas Crockford, author of JavaScript: The Good parts, recently gave a talk called The Better Parts, where he demonstrates how he creates objects in JavaScript nowadays. He doesn't call his approach anything, but I will refer to it as Crockford Classless.
Crockford Classless is completely free of class, new, this, prototype and even Crockfords own invention Object.create.
I think it's really, really sleek, and this is what it looks like:
function dog(spec) {
{% if paginator.total_pages > 1 %} | |
<p> | |
{% if paginator.previous_page == 1 %} | |
<a href="{{ '/blog/' | prepend: site.baseurl }}">previous</a> | |
{% elsif paginator.previous_page %} | |
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}">previous</a> | |
{% else %} | |
previous | |
{% endif %} |
This pagination liquid code is an extract of the public repository from http://nicolas-hoizey.com/, where you can see it in action.