Skip to content

Instantly share code, notes, and snippets.

View calacitizen's full-sized avatar

Nikita Izygin calacitizen

  • Russia, Yaroslavl
View GitHub Profile
@calacitizen
calacitizen / exists.js
Created January 18, 2014 18:26
Tiny jQuery Exist Plugin by Chris Goodchild
$.fn.exists = function(callback) {
var args = [].slice.call(arguments, 1);
if (this.length) {
callback.call(this, args);
}
return this;
};
@calacitizen
calacitizen / csvtojson.php
Last active December 23, 2015 19:19
CSV to json
<?php
/*
* Converts CSV to JSON
*/
header('Content-type: application/json');
$filePath = '';
$pathToCSV = '';