Skip to content

Instantly share code, notes, and snippets.

View tonycaputome's full-sized avatar
🏠
Working from home

Antonio Caputo tonycaputome

🏠
Working from home
  • Frontend Engineer
  • Milan, Italy
View GitHub Profile
@tonycaputome
tonycaputome / codeigniter_htaccess
Last active October 2, 2015 21:48 — forked from muhittin/codeigniter_htaccess
Apache : Codeigniter htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php/$1
</IfModule>
@tonycaputome
tonycaputome / gist:2328206
Created April 7, 2012 12:01 — forked from paulirish/gist:603681
html5 and friends - a bigass bulleted list of features

HTML5 and friends.

A bigass bulleted list of features.

I commonly need to get a big list of all the stuff people think of when they think new and shiny these days. This list is for that.

I take a very inclusionist approach to it. 1

javascript APIs

  • Web Storage (localStorage, sessionStorage)
  • Web SQL Database
@tonycaputome
tonycaputome / jquery.boilerplate.js
Created April 7, 2012 12:17
Javascript : jQuery plugin boilerplate
// remember to replace all occurences of:
// boilerplate
// with your plugin namespace
(function ($) {
var settings = {
'setting': 'value'
};
@tonycaputome
tonycaputome / dabblet.css
Created April 9, 2012 08:48 — forked from anonymous/dabblet.css
CSS : Map Pins
/* CSS map pins */
body {
text-align: center;
margin: 80px;
background: #eee;
}
.pin.a {
display: inline-block;
<!-- Load either Zepto or jQuery, as necessary, from a CDN with a local fallback -->
<script>
document.write('<script src="//cdnjs.cloudflare.com/ajax/libs/' +
('__proto__' in {} ?
'zepto/1.0/zepto.min' :
'jquery/1.10.2/jquery.min')
+ '.js"><\/script>')
</script>
<script>
window.$ || document.write('<script src="js/vendor/' +
@tonycaputome
tonycaputome / circle-menu.css
Last active August 29, 2015 13:57
Position icons into circle (SO)
/**
* Position icons into circle (SO)
* http://stackoverflow.com/q/12813573/1397351
*/
.circle-container {
position: relative;
width: 24em;
height: 24em;
padding: 2.8em; /*= 2em * 1.4 (2em = half the width of an img, 1.4 = sqrt(2))*/
border: dashed 1px;
@function linear() {
@return cubic-bezier(0.250, 0.250, 0.750, 0.750); }
@function ease() {
@return cubic-bezier(0.250, 0.100, 0.250, 1.000); }
@function ease-in() {
@return cubic-bezier(0.420, 0.000, 1.000, 1.000); }
@function ease-in-quad() {
@return cubic-bezier(0.550, 0.085, 0.680, 0.530); }
<?php
/**
* By default instagram doesn't allow us to query for more than
* attribute, such as media posted by a specific author tagged with
* a specific tag. In order to accomplish this we will acquire all of
* the media tagged with the tag we are looking for and then filter it
* down based on the user.
*/
@tonycaputome
tonycaputome / sublime-text-3-build-3065-license.md
Created October 22, 2015 16:57
Sublime Text 3 (build 3065+) - VALID License

SublimeText3 Valid License without cracking! Just download/install then use this license.

Notice that it may not work on dev builds, but still works on 3083 build!

----- BEGIN LICENSE -----

Andrew Weber
Single User License
EA7E-855605
813A03DD 5E4AD9E6 6C0EEB94 BC99798F
@tonycaputome
tonycaputome / gulpfile.js
Last active November 25, 2016 11:25 — forked from scottnix/gist:10430003
Gulpfile.js Sample, latest
// Load plugins
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
rename = require('gulp-rename'),
notify = require('gulp-notify'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
markdown = require('gulp-markdown'),