Skip to content

Instantly share code, notes, and snippets.

| in src/routes/auth.cr:22: instantiating 'JWT:Module#encode(Hash(String, String | Nil), String, JWT::Algorithm)'
api_1 |
api_1 | jwt = JWT.encode(payload, "SecretKey", JWT::Algorithm::HS256)
api_1 | ^~~~~~
api_1 |
api_1 | in lib/jwt/src/jwt.cr:25: instantiating 'encoded_signature(JWT::Algorithm, String, String)'
api_1 |
api_1 | segments << encoded_signature(algorithm, key, segments.join("."))
api_1 | ^~~~~~~~~~~~~~~~~
api_1 |
const component = ({
children,
title
}) => {
const body, head
return (
<html>
<head ref={el => head = el} />
<body ref={el => body = el} />
</html>
@Malachi-M
Malachi-M / index.html
Created November 27, 2014 21:06
phtCm
<html>
<head>
<title></title>
<link href='http://fonts.googleapis.com/css?family=EB+Garamond' rel='stylesheet' type='text/css'>
<link href='style.css' rel='stylesheet' type='text/css'>
</head>
<body>
<img src="body_image1.jpg" alt="Alchemical Symbol">
<header><h1>Of the Heavens and their Influence.</h1></header>

Ajax Example

This is a simple example of using ajax to fetch content and add it to the page.

@Malachi-M
Malachi-M / article-one.html
Last active December 18, 2015 03:29
This file is my commented portion of the AJAX example project.
<article>
<h1>Example One: An article loaded on click</h1>
<div class="content">
<p>
This is an article whose contents exist at article-one.html.
We are listening for the 'click' event on menu items and using
ajax to fetch the content when it fires.</p>
</div>
</article>

Ajax Example

This is a simple example of using ajax to fetch content and add it to the page.