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 / dabblet.css
Created March 25, 2014 16:11
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;
@tonycaputome
tonycaputome / index.jade
Created March 25, 2014 20:47
A Pen by Antonio .
section
.container
.col
ul.circle-container
li(class='item')
a(class='active', href='#') 1
li(class='item')
a(href='#') 2
li(class='item')
a(href='#') 3
@tonycaputome
tonycaputome / index.html
Last active August 29, 2015 13:58
A Pen by Antonio .
<div class="nav-mobile"></div>
<div class="central-menu show">
<nav role='navigation'>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Clients</a></li>
@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'),
@tonycaputome
tonycaputome / gist:31d3bbafb783807bf1e2
Created November 11, 2015 09:45 — forked from liamcurry/gist:2597326
Vanilla JS vs jQuery

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@tonycaputome
tonycaputome / mac-apps.md
Created December 12, 2015 11:47 — forked from erikreagan/mac-apps.md
Mac developer must-haves

Mac web developer apps

This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.

— Erik

@tonycaputome
tonycaputome / gist:fac87526d2dc60dc9305
Created January 10, 2016 17:25 — forked from Mithrandir0x/gist:3639232
Difference between Service, Factory and Provider in AngularJS
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/
// author: Pawel Kozlowski
var myApp = angular.module('myApp', []);
//service style, probably the simplest one
myApp.service('helloWorldFromService', function() {
this.sayHello = function() {
return "Hello, World!"