Skip to content

Instantly share code, notes, and snippets.

View octavioamu's full-sized avatar
:octocat:
Working from home

Octavio Amuchástegui octavioamu

:octocat:
Working from home
View GitHub Profile
@octavioamu
octavioamu / icon.svg
Created March 26, 2014 16:59
change icon color with hash
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@octavioamu
octavioamu / conditional.html
Created December 16, 2014 01:55
conditional ie
<!--[if lt IE 7 ]> <html class="ie6" lang="pt-br"> <![endif]-->
<!--[if IE 7 ]> <html class="ie7" lang="pt-br"> <![endif]-->
<!--[if IE 8 ]> <html class="ie8" lang="pt-br"> <![endif]-->
<!--[if IE 9 ]> <html class="ie9" lang="pt-br"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="pt-br"> <!--<![endif]-->
@octavioamu
octavioamu / Preferences.sublime-settings
Created January 15, 2015 18:11
Preferences.sublime-settings
{
"bold_folder_labels": true,
"color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme",
"dictionary": "Packages/Language - English/en_US.dic",
"font_face": "Source Code Pro",
"font_options":
[
"subpixel_antialias"
],
"font_size": 12,
<div class="controls">
<input type="tel" id="cadastro-tel" maxlength="2" class="" placeholder="00" pattern="^([0-9]{2})$" required>
<input type="tel" maxlength="10" class="span2" placeholder="0000-0000" required pattern="^([9]{1})?([0-9]{4})-([0-9]{4})|^([9]{1})?([0-9]{4})([0-9]{4})$">
</div>
<input type="text" pattern="\d{2}.?\d{3}.?\d{3}/?\d{4}-?\d{2}|(^\d{3}\.\d{3}\.\d{3}-\d{2})|(^\d{3}\d{3}\d{3}\d{2})$" id="cadastro-cnpj" placeholder="00.000.000/0000-00" required><!-- 00.000.000/0000-00 ou 000.000.000-00 ou 00000000000 -->
<input type="url" id="cadastro-site" placeholder="http://www.site.com" pattern="^(http://|https://)(www\.)?([a-zA-Z0-9]+)(\.)([a-zA-Z0-9]+)(\.[a-z]{2})?">
@octavioamu
octavioamu / clear files
Created March 17, 2015 19:00
clear trash files
find . -name '*.DS_Store' -type f -delete
@octavioamu
octavioamu / wordpress permissions
Created March 17, 2015 19:06
wordpress permissions
chown www-data:www-data -R * # Let apache be owner
find . -type d -exec chmod 755 {} \; # Change directory permissions rwxr-xr-x
find . -type f -exec chmod 644 {} \; # Change file permissions rw-r--r--
@octavioamu
octavioamu / designer.html
Last active August 29, 2015 14:21
designer
<link rel="import" href="../cool-clock/cool-clock.html">
<link rel="import" href="../ace-element/ace-element.html">
<link rel="import" href="../notification-elements/notification-alert.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;