Skip to content

Instantly share code, notes, and snippets.

View debiprasad's full-sized avatar

Debiprasad Sahoo debiprasad

View GitHub Profile
@samthecodingman
samthecodingman / firestoreTransforms.js
Created January 1, 2020 04:48
A collection of helper functions for transforming the results of Firebase Cloud Firestore Queries.
/*! firestoreTransforms.js | Samuel Jones 2019 | MIT License | gist.github.com/samthecodingman */
/**
* @file A file containing common firestore idioms used with queries
* @author Samuel Jones 2017 (github.com/samthecodingman)
* @license MIT
* @module firestore-transforms
*/
/**
@vluzrmos
vluzrmos / paginate.php
Created July 20, 2016 14:31
Laravel Paginate Collection or Array
<?php
/**
* Gera a paginação dos itens de um array ou collection.
*
* @param array|Collection $items
* @param int $perPage
* @param int $page
* @param array $options
*
* @return LengthAwarePaginator
@jayj
jayj / flexbox.less
Last active June 23, 2024 01:14
CSS3 Flexbox - LESS Mixins
// --------------------------------------------------
// Flexbox LESS mixins
// The spec: http://www.w3.org/TR/css3-flexbox
// --------------------------------------------------
// Flexbox display
// flex or inline-flex
.flex-display(@display: flex) {
display: ~"-webkit-@{display}";
display: ~"-ms-@{display}box"; // IE10 uses -ms-flexbox