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 / gist:1332326
Created November 1, 2011 23:59 — forked from timgentry/gist:1330408
Install additional Textmate bundles
#!/bin/bash
# Fullscreen (Lion)
bash <(curl -s -L http://gr3g.me/tm-full)
# Missing Drawer
bash <(curl -s -L http://goo.gl/4RUoP)
mkdir -p ~/Library/Application\ Support/TextMate/Bundles
cd ~/Library/Application\ Support/TextMate/Bundles
@vieron
vieron / README.md
Created March 16, 2012 20:42 — forked from necolas/README.md
Experimenting with component-based HTML/CSS naming and patterns

Template Components

Used to provide structural templates.

Pattern

t-template-name
t-template-name--modifier-name
t-template-name__subcomponent-name--subcomponent-modifier-name
@vieron
vieron / update_gh-pages.sh
Created April 15, 2012 18:13 — forked from lloyd/update_gh-pages.sh
A lil script to create a gh-pages branch from a subset of the repository. EXPENSIVE
$ git branch -D gh-pages
$ git branch gh-pages
$ git filter-branch --subdirectory-filter test/ gh-pages
$ git push -f origin gh-pages:gh-pages
@vieron
vieron / install.md
Created April 30, 2012 23:13 — forked from seamusjr/install.md
Setup OS X 10.7 w/ homebrew, oh-my-zsh, rvm, nvm

Setup new Mac with OSX Lion from scratch.

These commands are good as of 2012-03-18.

Install Xcode 4

The download/install takes a while so start it first. When it finishes downloading you will still need to run it to complete installation.

Note: Make sure you install the XCode Command Line Tools after XCode is done installing. To do this go to Xcodes -> Preferences -> Downloads -> Command Line Tools -> Install. If you don't you might not be able to install brew packages (i.e. brew install wget will fail).*

@vieron
vieron / gist:2787035
Created May 25, 2012 09:50 — forked from n1k0/gist:1501173
PhantomJS: Capturing single dom elements as png files
var page = new WebPage(),
address, output, size;
//capture and captureSelector functions adapted from CasperJS - https://github.com/n1k0/casperjs
capture = function(targetFile, clipRect) {
var previousClipRect;
var clipRect = {top: 0, left:0, width: 40, height: 40};
if (clipRect) {
if (!isType(clipRect, "object")) {
throw new Error("clipRect must be an Object instance.");
@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
@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 / 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 / README.md
Last active January 5, 2016 18:34 — forked from jstcki/README.md
Grid layout