Skip to content

Instantly share code, notes, and snippets.

View Joseph-Reece's full-sized avatar

Joseph Ndirangu Joseph-Reece

  • Nairobi, Kenya
  • 11:32 (UTC +03:00)
View GitHub Profile
<style>
#sig-canvas {
border: 2px dotted #CCCCCC;
border-radius: 15px;
cursor: crosshair;
}
</style>
<div class="container">
<div class="row">
@Joseph-Reece
Joseph-Reece / index.html
Created July 29, 2021 11:24
Link hover animation
<p>
Check out
<a href="#">
the link
<svg viewBox="0 0 70 36">
<path d="M6.9739 30.8153H63.0244C65.5269 30.8152 75.5358 -3.68471 35.4998 2.81531C-16.1598 11.2025 0.894099 33.9766 26.9922 34.3153C104.062 35.3153 54.5169 -6.68469 23.489 9.31527" />
</svg>
</a>
here
</p>
@Joseph-Reece
Joseph-Reece / .htaccess
Last active January 7, 2022 06:37
Force https PHP
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
@Joseph-Reece
Joseph-Reece / Common-Currency.json
Created November 23, 2021 10:40 — forked from ksafranski/Common-Currency.json
Common Currency Codes in JSON
{
"USD": {
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"name_plural": "US dollars"
},
@Joseph-Reece
Joseph-Reece / RAILS_CHEATSHEET.md
Created December 11, 2021 05:53 — forked from mdang/RAILS_CHEATSHEET.md
Ruby on Rails Cheatsheet

Ruby on Rails Cheatsheet

Architecture

Create a new application

Install the Rails gem if you haven't done so before

@Joseph-Reece
Joseph-Reece / index.js
Last active January 12, 2022 06:55
Smooth Scroll Jquery version Plus mobile Navbar close (bootstrap)
/* =========================Smooth single page Navigaton======================== */
// Select all links with hashes
$('a[href*="#"]')
// Remove links that don't actually link to anything
.not('[href="#"]')
.not('[href="#0"]')
.click(function(event) {
// On-page links