Skip to content

Instantly share code, notes, and snippets.

View mikeabbott10's full-sized avatar

Lorenzo Amorelli mikeabbott10

View GitHub Profile
@Momciloo
Momciloo / _mixin_fluid.scss
Created November 23, 2017 13:36
Responsive values between range.
/* # =================================================================
# Fluid values
# ================================================================= */
@mixin fluid($properties, $min-vw, $max-vw, $min-value, $max-value) {
@each $property in $properties {
#{$property}: $min-value;
}
@media screen and (min-width: $min-vw) {
@each $property in $properties {
@kushal555
kushal555 / mimes.php
Last active January 15, 2023 16:16
Codeigniter All Mime Types
//Codeigniter All Mime Types. Please if you have any new Mime types Please update this file.
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| MIME TYPES
| -------------------------------------------------------------------
| This file contains an array of mime types. It is used by the
| Upload class to help identify allowed file types.
|
*/
@josheinstein
josheinstein / gist:5586469
Last active October 15, 2022 02:13
Handle back button issues with Twitter Bootstrap's tab component.
// Handle back button issues with Twitter Bootstrap's tab component.
// Based on: http://stackoverflow.com/a/10120221/81769
// It has been changed to avoid the following side effects:
// - Switching tabs was being added to navigation history which is undesirable
// (Worked around this by using location.replace instead of setting the hash property)
// - Browser scroll position was lost due to fragment navigation
// (Worked around this by converting #id values to #!id values before navigating.)
$(document).ready(function () {
if (location.hash.substr(0,2) == "#!") {