brew install heroku/brew/heroku
heroku login
cd my-rails-project
git remote add heroku git@heroku.com:my-heroku-project.git
heroku run rake db:migrate
# | |
# | |
#/etc/network/interfaces | |
# | |
# | |
# This file describes the network interfaces available on your system | |
# and how to activate them. For more information, see interfaces(5). | |
# The loopback network interface | |
auto lo |
#!/bin/bash | |
# | |
# Author: Gustavo Salazar <guga.salazar.loor@gmail.com> | |
# Created: 2015-12-14 | |
# | |
# Setup: | |
# | |
# * Place this script in /usr/local/bin/ |
(let [my_list '(a b b c a a c) my_set (set my_list)] | |
(zipmap | |
my_set | |
(map | |
(fn [y] | |
(count | |
(filter | |
(fn [x] (= x y)) my_list | |
) |
{ | |
"keys": ["ctrl+alt+l"], | |
"command": "toggle_setting", | |
"args": { | |
"setting": "line_numbers" | |
} |
# Times Pattern is found in Text | |
def PatternCount(Pattern, Text): | |
count = 0 | |
for i in range(len(Text)-len(Pattern)+1): | |
if Text[i:i+len(Pattern)] == Pattern: | |
count = count+1 | |
return count | |
print PatternCount("AAA", "GACCATCAAAACTGATAAACTACTTAAAAATCAGT") |
{ | |
"font_size": 14, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"line_numbers": false, | |
"match_brackets": false, | |
"rulers": | |
[ |
# Taken from https://github.com/dmnfarrell/pandastable/wiki/Code-Examples | |
from tkinter import * | |
from pandastable import Table, TableModel | |
class TestApp(Frame): | |
"""Basic test frame for the table""" | |
def __init__(self, parent=None): | |
self.parent = parent | |
Frame.__init__(self) |
declare @fecha datetime; | |
declare @fecha_busqueda varchar(8); | |
set @fecha = '20170501'; | |
while @fecha < '20170531' | |
begin | |
set @fecha = dateadd(day,1,@fecha); | |
set @fecha_busqueda = convert(varchar, @fecha , 112) |
# Traducciones adicionales en https://github.com/plataformatec/devise/wiki/I18n | |
es: | |
devise: | |
confirmations: | |
confirmed: "Tu correo electrónico ha sido confirmado exitosamente." | |
send_instructions: "Recibirás un email con las instrucciones para confirmar tu correo electrónico en unos minutos." | |
send_paranoid_instructions: "Si tu correo electrónico existe en nuestra base de datos, recibirás un email con las instrucciones para confirmar tu correo electrónico en unos minutos." | |
failure: | |
already_authenticated: "Ya iniciaste sesión." |