Skip to content

Instantly share code, notes, and snippets.

View yovasx2's full-sized avatar

Giovanni Alberto yovasx2

  • Vela Inc.
  • Querétaro
View GitHub Profile
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@tomas-stefano
tomas-stefano / Capybara.md
Last active October 2, 2024 04:58
Capybara cheatsheet

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above
@myokoym
myokoym / space_invaders.rb
Last active April 6, 2017 23:45
A game as Space Invaders using Gosu and Ruby. (under construction...)
#
# space_invaders.rb:
# A game as Space Invaders using Gosu and Ruby.
#
# Authors:
# (c) 2014 Masafumi Yokoyama
#
# License:
# This program is licensed under the MIT License.
#
@JoshCheek
JoshCheek / Readme.md
Last active September 13, 2016 21:27
Scraping example

Example of how to scrape data using Mechanize.

@yovasx2
yovasx2 / kaminari.es.yml
Last active July 7, 2016 19:26
A spanish translation for kaminari (https://github.com/amatsuda/kaminari)
es:
views:
pagination:
first: "« Primero"
last: "Último »"
previous: "‹ Ant"
next: "Sig ›"
truncate: "…"
helpers:
page_entries_info:
@yovasx2
yovasx2 / rails_admin_import.es-MX.yml
Last active May 22, 2018 20:53
A spanish translation for stephskardal/rails_admin_import (https://github.com/stephskardal/rails_admin_import)
es-MX:
admin:
actions:
import:
title: Importar
menu: Importar
breadcrumb: Importar
link: Importar
bulk_link: Importar
done: Importado
@yovasx2
yovasx2 / sublime-config
Last active July 7, 2016 19:13
A brief config for sublime, xampp preferences
// Preferences key bindings user
[
{ "keys": ["ctrl+1"], "command": "reindent", "args": {"single_line": false}},
{ "keys": ["ctrl+7"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+7"], "command": "toggle_comment", "args": { "block": true } }
]
// Preferences settings user
{
"font_size": 16,
@yovasx2
yovasx2 / xampp.sh
Created February 15, 2016 20:06
A xampp config file to start the service in an Ubuntu environtment. Use of sudo needed
/opt/lampp/./lampp restart
rm -fr /var/run/mysqld
mkdir -p /var/run/mysqld
ln -s /opt/lampp/var/mysql/mysql.sock /var/run/mysqld/mysqld.sock
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo update-alternatives --config java
// actualizar JAVA_HOME y PATH