Skip to content

Instantly share code, notes, and snippets.

View vieron's full-sized avatar

Javier Sánchez - Marín vieron

View GitHub Profile
@vieron
vieron / css_resources.md
Created June 1, 2014 01:41 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@vieron
vieron / javascript_resources.md
Created June 1, 2014 01:41 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@vieron
vieron / 0_reuse_code.js
Created June 1, 2014 01:41
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
// VENDOR-PREFIX CSS TRANSITIONS
// USAGE: @include transition(transform 0.2s ease-in 0.2s, opacity 0.2s ease);
@function prefix($property, $prefixes: (webkit moz o ms)) {
$vendor-prefixed-properties: transform background-clip background-size;
$result: ();
@each $prefix in $prefixes {
@if index($vendor-prefixed-properties, $property) {
$property: -#{$prefix}-#{$property}
@vieron
vieron / fontscom.loader.js
Last active January 12, 2016 15:57
Javascript Font Loader for Fonts.com that allows multiple weights-per-family
/*
* fonts.com implement one different font-family name per weight or style of
* the same font. This means you need to explicitly declare in your elements
* that use a font-weight different to `normal` the new font-family
* corresponding to that weight.
*
* See http://stackoverflow.com/questions/5824925/is-there-any-way-to-fix-fonts-com-font-face-declarations
*/
var FontsComLoader = (function() {
@vieron
vieron / rgba2rgba+a.js
Created September 21, 2013 15:43
rgba to rgb + a
function rgbaToSVGAttrs(color) {
var regex, rgba;
color = color.replace(' ', '');
if (color.indexOf('rgba(') !== 0) {
return color;
}
regex = /(.*?)rgba\((\d+),(\d+),(\d+),([0-9]+\.[0-9]+|\d)\)/;
rgba = regex.exec(color);
<section class="col">
<ul>
<li class="row l-2">
<p class="col">
{{ form.first_name.label_tag }}
{{ form.first_name }}
<span class="error">This field is required</span>
</p>
<p class="col">
{{ form.last_name.label_tag }}
@vieron
vieron / transitions.scss
Created July 20, 2013 18:20
Sass-mixins-for-vendor-prefixed transitions-including-properties
@function prefix($property, $prefixes: (webkit moz o ms)) {
$vendor-prefixed-properties: transform background-clip background-size;
$result: ();
@each $prefix in $prefixes {
@if index($vendor-prefixed-properties, $property) {
$property: -#{$prefix}-#{$property}
}
$result: append($result, $property);
}
@return $result;
@vieron
vieron / Export each as SVG.js
Last active June 4, 2021 20:26
Export each as SVG. Modified some lines from the original by Aaron Beall (http://fireworks.abeall.com/extensions/commands/Export/Export%20SVG.jsf) to export each selected object as a separate SVG file.
// Fireworks JavaScript Command
// Exports current document state as SVG graphics format
// Install by copying to Fireworks/Configuration/Commands/
// Run via the Commands menu in Fireworks
// Aaron Beall 2010-2011
// Version
var VERSION = "0.6.1";
// Params