Skip to content

Instantly share code, notes, and snippets.

@Usse
Usse / 0_simple-grid.scss
Last active August 29, 2015 14:03
Simple grid system
.row{
@for $i from 1 through 12 {
.grid-#{$i} {
width: 100% / 12 * $i;
float: left;
}
}
clear: both
}
@Usse
Usse / Hxcme.markdown
Last active August 29, 2015 14:03
A Pen by Andrea Usseglio Gaudi.
@Usse
Usse / pymongo.py
Created January 30, 2014 11:00
Url scrape and insert in mongodb
from bs4 import BeautifulSoup
from pymongo import MongoClient
import urllib2
import re
import datetime
# DB connection
client = MongoClient()
db = client.test
@Usse
Usse / gruntfile.js
Created January 19, 2014 20:46
Gruntfile for general Web development
/* Description : Gruntfile for general Web development
* Version : 1.0
* Author : Andrea Usseglio (andrea.usseglio@gmail.com)
* License : GPL
*/
module.exports = function(grunt) {
require("matchdep").filterDev("grunt-*").forEach(grunt.loadNpmTasks);
grunt.initConfig({
@Usse
Usse / apache.conf
Created January 16, 2014 16:03
apache.conf
<Directory "/">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
NameVirtualHost *:80
<virtualHost *:80>
@Usse
Usse / intents.html
Last active January 3, 2016 10:48
Twitter Intents
<!--
https://dev.twitter.com/docs/intents
[ref] : twitter post ref number
-->
<!-- Include script -->
<script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
@Usse
Usse / dabblet.css
Created January 14, 2014 21:07 — forked from anonymous/dabblet.css
Multiple line li center
/**
* Multiple line li center
*/
ul {
list-style-type:none;
text-align:center;
}
li {
@Usse
Usse / animation.scss
Created January 13, 2014 13:55
SCSS Animations
$linear: cubic-bezier(0.250, 0.250, 0.750, 0.750) !default;
$ease: cubic-bezier(0.250, 0.100, 0.250, 1.000) !default;
$ease-in: cubic-bezier(0.420, 0.000, 1.000, 1.000) !default;
$ease-out: cubic-bezier(0.000, 0.000, 0.580, 1.000) !default;
$ease-in-out: cubic-bezier(0.420, 0.000, 0.580, 1.000) !default;
$ease-in-quad: cubic-bezier(0.550, 0.085, 0.680, 0.530) !default;
$ease-out-quad: cubic-bezier(0.250, 0.460, 0.450, 0.940) !default;
$ease-in-out-quad: cubic-bezier(0.455, 0.030, 0.515, 0.955) !default;
@Usse
Usse / log.js
Created January 7, 2014 11:20
Safe log function
$.log = function() {
var consoleExists = (typeof(console) == "object") && (typeof(console.log) == "function");
if (consoleExists) {
if (navigator.userAgent.toLowerCase().indexOf("applewebkit") != -1) {
console.log(arguments);
} else {
console.log.apply(this,arguments);
}
}
}
@Usse
Usse / jade.js
Created January 3, 2014 00:11
jade grunt task
jade: {
compile: {
options: {
client: false,
pretty: true
},
files: [ {
cwd: "app",
src: "**/*.jade",
dest: "app/",