Blog Spot!


CI API - Articles API Endpoints for ci.donvercety.biz

Articles API functionality. You can take the articles from this website to yours. With this basic configs.

Access endpoints:

  • get all articles
http://ci.donvercety.biz/articles/json
  • get a specific article
http://ci.donvercety.biz/article/json/get/$id
  • use pagination ( give me 5 articles starting from 0 )
http://ci.donvercety.biz/articles/json/5/0
  • count articles ( useful for pagination )
http://ci.donvercety.biz/articles/json/count

Added on 11.Dec.2014
Tags: api articles ci donvercety website

How do I get PHP Errors to display?

error_reporting(E_ALL);
ini_set('display_errors', 1);

Added on 08.Dec.2014
Tags: php errors display

Sort and filter in Jekyll

Sort pages by title

Now without having to create a plugin you can easily apply a sort. Below is the snippet we used to sort pages by title.

{% assign sorted_pages = (site.pages | sort: 'title') %}
{% for page in sorted_pages %}
  <li class="cardmenu-item">
    <a href="{{ page.url }}">{{ page.title }}</a>
  </li>
{% endfor %}

Filter array by layout

When we render a specific index page we have a need to show pages by a specific layout or filter pages by layout.

{% assign tutorials = (site.pages | where: "layout" , "java") %}
{% for page in tutorials %}
     // do some work
{% endfor %}

Added on 03.Dec.2014
Tags: jekyll templateing

Geospatial Search with SOLR and Solarium

Sitepoint Article

Author: Published November 24, 2014
Lukas White

In a recent series of articles I looked in detail at Apache’s SOLR and Solarium.

To recap; SOLR is a search service with a raft of features – such as faceted search and result highlighting – which runs >as a web service. Solarium is a PHP library which allows you to integrate with SOLR – whether local or remote – >interacting with it as if it were a native component of your application. If you’re unfamiliar with either, then my >series is over here, and I’d urge you to take a look.

In this article, I’m going to look at another part of SOLR which warrants its own discussion; Geospatial search.

Read more at sitepoint.com

Added on 03.Dec.2014
Tags: php article

Bower

Web sites are made of lots of things — frameworks, libraries, assets, utilities, and rainbows. Bower manages all these things for you.

Bower works by fetching and installing packages from all over, taking care of hunting, finding, downloading, and saving the stuff you’re looking for. Bower keeps track of these packages in a manifest file, bower.json. How you use packages is up to you. Bower provides hooks to facilitate using packages in your tools and workflows.

Bower is optimized for the front-end. Bower uses a flat dependency tree, requiring only one version for each package, reducing page load to a minimum.

Install Bower

Bower is a command line utility. Install it with npm.

$ npm install -g bower

Bower requires Node and npm and Git.

Install packages with bower install. Bower installs packages to bower_components/.

$ bower install <package>

A package can be a GitHub shorthand, a Git endpoint, a URL, and more. Read more about bower install.

# registered package
$ bower install jquery
# GitHub shorthand
$ bower install desandro/masonry
# Git endpoint
$ bower install git://github.com/user/package.git
# URL
$ bower install http://example.com/script.js

Web Site

Added on 03.Dec.2014
Tags: bower web frontend

Search


PHP Libraries


Carbon lib / docs
Idiorm lib / docs
Image Workshop lib / docs
lorenzos/Minixed lib / docs
Parsedown lib / docs
PHP Paginator lib / docs
PHP Redis lib / docs
QrCode lib / docs
Requests lib / docs
Slim lib / docs
Spyc lib / docs
TWIG lib / docs
Upload lib / docs
Validation lib / docs
Zebra Image lib / docs

JS Libraries


AJV lib / docs
BackboneJS lib / docs
Bootstrap Notify lib / docs
C3.js lib / docs
ChartJS lib / docs
FastMD5 lib / docs
HighlightJS lib / docs
jQuery-Storage lib / docs
JS-Cookie lib / docs
Leaflet JS lib / docs
LowDB lib / docs
Marked lib / docs
NeedlyJS lib / docs
ParcelJS lib / docs
RequireJS lib / docs
Swig lib / docs
Toastr lib / docs
Underscore lib / docs
ValidateJS lib / docs
top