Skip to content

Instantly share code, notes, and snippets.

View gugat's full-sized avatar

Gustavo Salazar gugat

  • Buk
  • Santiago - Chile
View GitHub Profile
@gugat
gugat / git-commit-emojis.md
Created December 14, 2017 22:42 — forked from jhermann/git-commit-emojis.md
Useful emoji for git commit messages

Useful emoji for git commit messages

If you add emoji to your commit messages for a GitHub repo, they become less boring, and you can convey the kind of change you're adding. See the full set of GitHub supported emoji here (also useful for easy copy&paste via a simple click).

Example commit message

The following is a possible scheme to use:

@gugat
gugat / gist:cd10b3cf03f96018c1efa5ba1c43fefe
Created December 14, 2017 22:41 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@gugat
gugat / heroku_rails.md
Last active September 11, 2017 20:39
Heroku & Rails configuration and usage

Install and add as remote repo

brew install heroku/brew/heroku
heroku login
cd my-rails-project
git remote add heroku git@heroku.com:my-heroku-project.git

Run migrations

heroku run rake db:migrate

@gugat
gugat / devise.es.yml
Last active June 8, 2023 11:32 — forked from rrussell/devise.es.yml
Devise 4.3.0 Spanish Locale
# 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."
@gugat
gugat / loop_date_range.sql
Last active May 18, 2017 16:47
SQL Server Loop Date Range
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)
@gugat
gugat / tkinter-dataframe-table.py
Created May 8, 2017 16:44
Show Pandas dataframe as table with Tkinter
# 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)
@gugat
gugat / Preferences.sublime-settings
Created August 8, 2016 18:37
Preferences for Sublime text editor
{
"font_size": 14,
"ignored_packages":
[
"Vintage"
],
"line_numbers": false,
"match_brackets": false,
"rulers":
[
@gugat
gugat / bioinformatics_1.py
Last active February 10, 2023 21:04
genomics
# 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")
@gugat
gugat / keystroke-toggle-linenumbers-settings.json
Created February 3, 2016 23:32 — forked from pid/keystroke-toggle-linenumbers-settings.json
Sublime Text keystroke toggle line numbers show/hide
{
"keys": ["ctrl+alt+l"],
"command": "toggle_setting",
"args": {
"setting": "line_numbers"
}
@gugat
gugat / find_items_ocurrence.clj
Created December 16, 2015 06:34
Find ocurrences of items
(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
)