- ImpressiveWebs - When to use HTML5 section
- W3C on HTML5 Section - Latest doc spec on HTML5 section
- Further HTML Specs on HTML5 - More examples of HTML5 section uses.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### HOMEBREW PACKAGE MANAGER #### | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> ~/.zprofile | |
brew update | |
# Oh-my-zsh + this link for more customisation - https://medium.com/crypticcrazeforcs/customising-oh-my-zsh-in-macos-6d4e24ef983 | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. Text color hover animation (from left to right) | |
.have-some-text { | |
/* So far only Chrome webkit browsers can do this.. but this can work for other major browsers too!*/ | |
-webkit-background-clip: text; | |
-webkit-text-fill-color: transparent; | |
background-image: linear-gradient(to right, your-secondary-color, | |
your-secondary-color 50%, your-primary-color 50%); | |
background-size: 200% 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var doc_width = document.documentElement.offsetWidth; | |
[].forEach.call( | |
document.querySelectorAll("*"), | |
function(pesky_el) { | |
if(pesky_el.offsetWidth > doc_width) { | |
console.log(pesky_el); | |
} | |
} | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Interest.destroy_all | |
case ActiveRecord::Base.connection.adapter_name | |
when 'SQLite' | |
update_seq_sql = "update sqlite_sequence set seq = 0 where name = 'interests';" | |
ActiveRecord::Base.connection.execute(update_seq_sql) | |
when 'PostgreSQL' | |
ActiveRecord::Base.connection.reset_pk_sequence!('interests') | |
when 'Mysql2' | |
update_seq_sql = "ALTER TABLE interests AUTO_INCREMENT = 1;" | |
ActiveRecord::Base.connection.execute(update_seq_sql) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//1. Object Constructor | |
var person = new Object(); | |
person.name = "Diego"; | |
person.getName = function(){ | |
return this.name; | |
}; | |
/* | |
* The main advantage of this approach is its simplicity. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'net/smtp' | |
#Snippet 1: writing simple using your stmp gmail | |
message = <<MESSAGE_END | |
From: Private Person <someone@fromsomemail.com> | |
To: A Test User <someoneelse@tosomemail.com> | |
Subject: SMTP e-mail test | |
This is a test e-mail message. |
- 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.
- IcoMoon - Tools for generating pixel-perfect icon fonts using SVG/PDF/Sprites.
- Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
- rabl - General ruby templating with json, bson, xml, plist and msgpack support
- Thin - Very fast and lightweight Ruby web server
- Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
- SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
- Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
- [factory_girl](h
NewerOlder