Skip to content

Instantly share code, notes, and snippets.

Learning Elixir

Pedro Caseiro pedrocaseiro

Block or report user

Report or block pedrocaseiro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:e91206661b0bfa179742661e0f2c9e37
<!DOCTYPE html>
<title>Brown Bears</title>
<h1>The Brown Bear</h1>
<div id="introduction">
<h2>About Brown Bears</h2>
<p>The brown bear (Ursus arctos) is native to parts of northern Eurasia and North America. Its conservation status is currently Least Concern. There are many subspecies within the brown bear species, including the Atlas bear and the Himalayan brown bear.</p>
View auth_helpers.rb
module AuthHelpers
def authenticate_with(account)
Capybara.current_session.driver.headers = { 'Auth-Token' => account.authentication_token }
def authenticate_with_account(account)
@headers = {}
@headers['Auth-token'] = account.authentication_token
View gist:283427f0a0bf07fd84c7418403afd216
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<script src=""></script>
<script src=""></script>
<script src=""></script>
<div id="mount-point"></div>
View gist:e401ea68315a916a8897
#include "config.h"
//creates new Domains and returns it
DOMAINS new_domains (){
ptr=(DOMAINS) malloc (sizeof(Domains));
return ptr;
You can’t perform that action at this time.