Skip to content

Instantly share code, notes, and snippets.

@kshnurov
kshnurov / jquery.photoswipe.js
Created February 23, 2015 23:37
PhotoSwipe: init from DOM using jQuery
(function( $ ) {
$.fn.photoswipe = function(options){
var galleries = [],
_options = options;
var init = function($this){
galleries = [];
$this.each(function(i, gallery){
galleries.push({
id: i,
@raecoo
raecoo / array_dupplicate_counter.js
Created December 7, 2012 02:42 — forked from ralphcrisostomo/array_dupplicate_counter.js
Javascript: Count duplicates in an array
/**
Problem:
You have a javascript array that likely has some duplicate values and you would like a count of those values.
Solution:
Try this schnippet out.
*/
@leecade
leecade / sharp.css
Created November 9, 2012 08:05
css:sharp
/*
space(block)
*/
s{ display: block; position: relative;}
/*sharp only for css3*/
/* Cleaner, but slightly less support: use "50%" as value */
.s-circle {