Skip to content

Instantly share code, notes, and snippets.

@agustibr
agustibr / _component.scss
Last active December 30, 2015 18:19
[Inline or combined media queries in Sass? Fight! - benfrain.com - blog of technology writer and web designer Ben Frain.](http://benfrain.com/inline-or-combined-media-queries-in-sass-fight/)
.name-space-ComponentName {
width: 80%;
@include MQ(XS) {
width: 100%;
}
}
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Sublime Text 2
GenericName=Text Editor
Comment=Sophisticated text editor for code, html and prose
Exec=/usr/bin/subl %F
Terminal=false
Type=Application
MimeType=text/plain;text/x-chdr;text/x-csrc;text/x-c++hdr;text/x-c++src;text/x-java;text/x-dsrc;text/x-pascal;text/x-perl;text/x-python;application/x-php;application/x-httpd-php3;application/x-httpd-php4;application/x-httpd-php5;application/xml;text/html;text/css;text/x-sql;text/x-diff;x-directory/normal;inode/directory;
@agustibr
agustibr / dnswarning.html
Created July 3, 2013 10:50
tumblr dns warning
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" href="http://assets.tumblr.com/images/favicon.gif?2" type="image/gif"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="x-dns-prefetch-control" content="off"/>
<meta name="robots" content="noindex"/>
<link rel="stylesheet" href="http://assets.tumblr.com/stylesheets/compressed/status_blue.css?2" type="text/css" media="screen" charset="utf-8">
<title>Incorrect DNS Entry.</title>
@agustibr
agustibr / config.rb
Last active December 18, 2015 05:29
draft. config.rb for compass
# http://compass-style.org/help/tutorials/configuration-reference/
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "css"
sass_dir = "sass"
images_dir = "css/img"
javascripts_dir = "js"
fonts_dir = "fonts"

AngularJS best ressources

Following the AngularJS PARIS meetup (25/2 à 19h à Paris with @sampaccoud @dzen @_kemar @tchack13 @vinz et @revolunet)

Here's our best AngularJS ressources : twitter, github, articles & blogs. Please comment and add your good stuff !

@agustibr
agustibr / jquery.ios-orientation.js
Created May 23, 2013 00:55
Detect iOS devices orientation with jQuery
/*
* http://pixelhunter.me/post/28843693624/detect-orientation-jquery
*/
function checkMode() {
var o = window.orientation;
if (o != 90 && o != -90) {
// here goes code for portrait...
} else {
// here goes for landscape...
@agustibr
agustibr / bp-cdt-sidebar-login.php
Last active December 17, 2015 14:49
CDT Sidebar Login Formulario para el Sidebar de acceso a la Comunidad BP ↳ Versión 0.0.2 | Agusti@bibtic
<?php
/**
* Plugin Name: CDT Sidebar Login
* Plugin URI: https://gist.github.com/AgustiBelloc/5626924
* Description: Formulario para el Sidebar de acceso a la Comunidad BP
* Author: Agusti@bibtic
* Author URI: http://bibtic.cat
* Version: 0.0.2
*/
@agustibr
agustibr / index.html
Last active December 17, 2015 00:39
Stylesheet toggler
<!doctype html>
<html lang="en">
<head>
<title>Stylesheet toggler</title>
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" type="text/css" href="css/one.css" title="one">
<link rel="stylesheet" type="text/css" href="css/two.css" title="two">
</head>
@agustibr
agustibr / fstab
Created April 26, 2013 01:20
mount /media/Data partition fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
# /data was on /dev/sda7 during installation
UUID=67a093f5-9ba4-487e-bcc3-8f7961019b10 /media/Data ext4 defaults 0 2
@agustibr
agustibr / acat-custom-cloud.php
Created November 11, 2012 16:59
acat - wp widget with all tags
<?php
/**
* Plugin Name: a.Cat [NODE] myCustomCloud
* Plugin URI: http://agusti.cat
* Description: widget nuvol d'etiquetes custom
* Author: Agusti
* Author URI: http://agusti.cat
* Version: 0.2.0
*/