Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

jeffrey n. carre bleuscyther

🏠
Working from home
View GitHub Profile
@mabasic
mabasic / helpers.php
Last active Sep 16, 2021
config_path function for Lumen framework
View helpers.php
<?php
if ( ! function_exists('config_path'))
{
/**
* Get the configuration path.
*
* @param string $path
* @return string
*/
@conorbuck
conorbuck / angle-between-points.js
Created May 5, 2012
JavaScript: Find the angle between two points
View angle-between-points.js
var p1 = {
x: 20,
y: 20
};
var p2 = {
x: 40,
y: 40
};
@joubertnel
joubertnel / gist:870190
Last active Feb 26, 2021
HTML5 Canvas - Rendering of Text on high-DPI screens
View gist:870190
<html>
<head>
<script src='http://code.jquery.com/jquery-1.5.1.min.js'></script>
</head>
<body>
<h2>Naive canvas</h2>
<canvas id="naive" width="400" height="50"></canvas>
<h2>High-def Canvas</h2>