Skip to content

Instantly share code, notes, and snippets.

View almapase's full-sized avatar

Alex Pacheco Segura almapase

  • Chile
View GitHub Profile
@almapase
almapase / Readme.md
Created March 6, 2017 04:51 — forked from mxstbr/Readme.md
Enable tab completion for JSX with Emmet in Atom

Enable tab completion for JSX with Emmet in Atom

This guide assumes you have the emmet and language-babel packages already installed in Atom

Gif of the tab completion working

  1. Open the keymap.cson file by clicking on Atom -> Keymap… in the menu bar
  2. Add these lines of code to your keymap:
'atom-text-editor[data-grammar~="jsx"]:not([mini])':
@almapase
almapase / app.js
Created March 1, 2017 02:48 — forked from carlosazaustre/app.js
Guía React
class Empleado extends React.Component {
render () {
return (
<li>
{this.props.nombre} - {this.props.email}
</li>
);
}
}
@almapase
almapase / fog.rb
Created August 17, 2016 17:59 — forked from gsanchezd/fog.rb
Base Fog Carrierwave config
if Rails.env.test?
CarrierWave.configure do |config|
config.storage = :file
config.enable_processing = false
end
else
CarrierWave.configure do |config|
config.storage = :fog
config.fog_credentials = {
:provider => 'AWS', # required
@almapase
almapase / subpackageslist.txt
Created May 21, 2016 00:55 — forked from jCrip/subpackageslist.txt
My starter packages for sublime.
"Advanced CSV",
"AdvancedNewFile",
"AlignTab",
"All Autocomplete",
"ApplySyntax",
"AutoFileName",
"Autoprefixer",
"BeautifyRuby",
"Better CoffeeScript",
"BracketHighlighter",
require 'complex'
require 'matrix'
require 'chunky_png'
module Fractal
class Mandelbrot
class << self
# Returns the mandelbrot value after iterating over c
def mandelbrot(c, dim=2)
Array.new(100).inject(0) { |z,i| z ** dim + c }
@almapase
almapase / database.yml.example mysql2
Last active August 31, 2015 02:28 — forked from erichurst/database.yml.example mysql2
Rails 3 database.yml examples
# MySQL. Versions 4.1 and 5.0 are recommended.
#
# Install the MySQL driver:
# gem install mysql2
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
adapter: mysql2
encoding: utf8