Skip to content

Instantly share code, notes, and snippets.

View DouweM's full-sized avatar

Douwe Maan DouweM

View GitHub Profile
@DouweM
DouweM / 21r.rb
Created April 12, 2014 23:56 — forked from Osagiede/21r.rb
# define global variables here
# define methods here
# for human
user_cards = 0
card_one = rand(1..11)
card_two = rand(1..11)
# for computer
cpu_cards = rand(1..11)
@DouweM
DouweM / VerEx.rb
Last active March 8, 2016 00:44 — forked from svineet/VerEx.rb
# This is a program trying to implement Verbal Expressions
# See this for more info - http://verbalexpressions.github.io/
def VerEx
VerExClass.new
end
class VerExClass
attr_accessor :regex
@DouweM
DouweM / somefile.rb
Last active December 21, 2015 05:39
class TutorsController < ApplicationController
before_action :authenticate_user!
respond_to :html
def new
@tutor = current_user.build_tutor
respond_with @tutor
end
@DouweM
DouweM / request
Last active December 20, 2015 20:09 — forked from abhishek0/request
curl http://localhost:3000/users -d '{"user": { "first_name": "Abhishek", "login_info_attributes": { "password": "p"}}}'
# config/initializers/char_converter.rb
require 'uri'
module Support
class CharConverter
SANITIZE_ENV_KEYS = [
"HTTP_COOKIE", # bad cookie encodings kill rack: https://github.com/rack/rack/issues/225
"HTTP_REFERER",
"PATH_INFO",

I want to display these 4 player wrapper divs as in a grid. I.e.

---------- ----------
|player 1| |player 2|
---------- ----------
---------- ----------
|player 3| |player 4|