Skip to content

Instantly share code, notes, and snippets.

View dipnlik's full-sized avatar

Alexandre Lima dipnlik

View GitHub Profile
@akitaonrails
akitaonrails / BACKEND.md
Last active April 3, 2024 19:49
Codeminer 42 - BACKEND Test

TRZ (The Resident Zombie) - Backend

Problem Description

The world, as we know it, has fallen into an apocalyptic scenario. The "Influenzer T-Virus" (a.k.a. Twiter Virus) is transforming human beings into stupid beasts (a.k.a. Zombies), hungry to cancel humans and eat their limbs.

You, the last survivor who knows how to code, will help the resistance by deploying a system to connect the remaining humans. This system will be essential to detect new infections and share resources between the members.

Requirements

@jamie
jamie / abilities.md
Last active May 23, 2022 15:47
Upgrade progression for Hoplite, a quick roguelike for Android. https://play.google.com/store/apps/details?id=com.magmafortress.hoplite
Upgrade Lv1 Lv2 Lv3 Altars
Deep Lunge +1 Ares
Bloodlust +5/kill, -❤ +5/kill, ? Ares
Mighty Bash (Knockback) +1 +1, -❤ Ares, Hephaestus
Reaction (Self-Knock.) +1, -❤ Ares, Hephaestus
Shielding Bash -❤❤ Ares, Hephaestus
Patience Wait Ares, Athena
Plant Spear -❤❤ Apollo, Ares
Throw Distance +1 +1, -❤ +1, -❤❤ Apollo, Athena
@p1nox
p1nox / postgresql_configuration_on_ubuntu_for_rails.md
Last active July 11, 2024 20:06
PostgreSQL configuration without password on Ubuntu for Rails

Abstract

You could have postgre installed on localhost with password (or without user or password seted after instalation) but if we are developing we really don't need password, so configuring postgre server without password for all your rails project is usefull.

Install Postgre packages

  • postgresql
  • postgresql-client
  • libpq-dev
@corny
corny / will_paginate_bootstrap.rb
Created April 14, 2012 19:54
WillPaginate renderer for will_paginate 2.3.16 to generate HTML code for Twitter Bootstrap
#
# WillPaginate renderer for will_paginate 2.3.16 to generate HTML code for Twitter Bootstrap
# Put this content in in your config/initializers/will_paginate.rb
module WillPaginate
module ViewHelpers
class BootstrapLinkRenderer < LinkRenderer
def to_html
@txus
txus / capybara_uoc.rb
Created June 26, 2011 15:05
UOC scraping with standalone Capybara
require 'rubygems'
require 'capybara'
require 'capybara/dsl'
require 'akephalos'
Capybara.run_server = false
Capybara.current_driver = :akephalos
Capybara.app_host = 'http://cv.uoc.edu'
module MyCapybaraTest
@jraines
jraines / rails31init.md
Created May 24, 2011 17:03
Rails 3.1 with Rspec, Cucumber, Factory Girl, Haml, and Simple Form

Install Rails 3.1 RC

gem install rails --pre

generate new app, skipping Test::Unit file generation

rails new my_app -T

Set up Gemfile