Skip to content

Instantly share code, notes, and snippets.

:shipit:
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>
<html>
<head>
<title>Brown Bears</title>
</head>
<body>
<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 }
end
def authenticate_with_account(account)
@headers = {}
@headers['Auth-token'] = account.authentication_token
end
View gist:283427f0a0bf07fd84c7418403afd216
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.2/react.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.2/JSXTransformer.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body>
<div id="mount-point"></div>
View gist:e401ea68315a916a8897
#include "config.h"
//creates new Domains and returns it
DOMAINS new_domains (){
DOMAINS ptr;
ptr=(DOMAINS) malloc (sizeof(Domains));
ptr->domain[0]='\0';
ptr->next=NULL;
return ptr;
You can’t perform that action at this time.