Skip to content

Instantly share code, notes, and snippets.

View p1nox's full-sized avatar

Raul Pino p1nox

View GitHub Profile
@p1nox
p1nox / sengrid.md
Last active August 29, 2015 13:56
Sendgrid Heroku addon activation

initializer mail.rb

ActionMailer::Base.smtp_settings = {
  :address        => 'smtp.sendgrid.net',
  :port           => '587',
  :authentication => :plain,
  :user_name      => ENV['SENDGRID_USERNAME'],
  :password       => ENV['SENDGRID_PASSWORD'],
  :domain         => 'heroku.com',

:enable_starttls_auto => true

@p1nox
p1nox / LICENSE
Created March 16, 2014 00:49 — forked from ghostbar/LICENSE
Copyright © 2014 Jose Luis Rivas
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
@p1nox
p1nox / wordpress_openshift_git.md
Last active August 29, 2015 14:14
Wordpress on OpenShift using git

Wordpress

  • In your application page inside openshift, in the right side you'll see a section called "Source Code", copy the url.

  • In your console (in the folder you want to have the source code), execute:

      git clone <SOURCE_CODE_URL>
    
  • And your done, now you have your page's code locally.

@p1nox
p1nox / rd_q.md
Created June 8, 2015 12:44
RethinkDB queries
@p1nox
p1nox / ccopter.rake
Last active December 12, 2015 09:58
Copycopter Offline: using copycopter only on development environment
namespace :ccopter do
desc "Split copycopter yml file"
task :split_ccopter_file => :environment do
CCOPTER_FILE = "#{Rails.root}/config/locales/copycopter.yml"
created_files = 0
if File.exists?(CCOPTER_FILE)
CCOPTER = YAML.load_file(File.open(CCOPTER_FILE))
/**
* Setup Module with `highlight` filter
*/
var JekyllApp = angular.module('JekyllApp', [], function ($routeProvider, $locationProvider) {
$locationProvider.html5Mode(false);
});
JekyllApp.filter('highlight', function () {
return function (text, filter) {
@p1nox
p1nox / README.md
Last active December 30, 2015 14:49
Using grunt-contrib-stylus with yeoman

Using grunt-contrib-stylus with yeoman

  • Make every compiled .styl file goes to .tmp directory as a single .css file.

  • Reference that generated .css file in your index.html cssmin block, and left your others css as usual.

  • Add stylus task into concurrent:server and build processes.

  • Watch changes within .styl files, and add stylus task to be executed.

@p1nox
p1nox / internet_explorer_config_on_mac.md
Last active February 19, 2016 04:12
Test web application using Internet Explorer locally with or without VM on OSX

Abstract

Test web application using Internet Explorer locally with or without VM in OSX.

Using Wine

Install WineBottler in case you want to check IE6, IE7 or IE8, if you want to check others you need to use a VM.

Using VM

@p1nox
p1nox / Box.js
Created March 18, 2016 13:18 — forked from jridgewell/Box.js
Backbone + Incremental DOM
var Box = Backbone.Model.extend({
defaults: {
top: 0,
left: 0,
color: 0,
content: 0
},
initialize: function() {