Skip to content

Instantly share code, notes, and snippets.

View cyonder's full-sized avatar

Cagdas Yonder cyonder

View GitHub Profile
@jasper-lyons
jasper-lyons / react-in-100-lines.html
Created April 29, 2019 17:30
React in 100 lines
<html>
<head>
<script>
// fn - a function
// arg - anything
//
// Saves us having to pass the same variable into the function over
// and over again.
function curry(fn, arg) {
return function () {
@masiamj
masiamj / apiUtilities.jsx
Created June 6, 2017 18:02
Gist for Reusable API Utilities for GET, PATCH, POST, and DELETE calls.
/**
* GENERAL NOTES
* @author TalkRise <[email protected]>
*/
// Module imports
import axios from 'axios';
@bendc
bendc / easing.css
Created September 23, 2016 04:12
Easing CSS variables
:root {
--ease-in-quad: cubic-bezier(.55, .085, .68, .53);
--ease-in-cubic: cubic-bezier(.550, .055, .675, .19);
--ease-in-quart: cubic-bezier(.895, .03, .685, .22);
--ease-in-quint: cubic-bezier(.755, .05, .855, .06);
--ease-in-expo: cubic-bezier(.95, .05, .795, .035);
--ease-in-circ: cubic-bezier(.6, .04, .98, .335);
--ease-out-quad: cubic-bezier(.25, .46, .45, .94);
--ease-out-cubic: cubic-bezier(.215, .61, .355, 1);
@btspoony
btspoony / jsUtility.js
Created November 24, 2011 16:02
Some JS Utility functions
var __sys = {};
var ua = navigator.userAgent.toLowerCase();
var s;
(s = ua.match(/msie ([\d.]+)/)) ? __sys.ie = s[1] :
(s = ua.match(/firefox\/([\d.]+)/)) ? __sys.firefox = s[1] :
(s = ua.match(/chrome\/([\d.]+)/)) ? __sys.chrome = s[1] :
(s = ua.match(/opera.([\d.]+)/)) ? __sys.opera = s[1] :
(s = ua.match(/version\/([\d.]+).*safari/)) ? __sys.safari = s[1] : 0;
function typeofUndefined(value) {
@necolas
necolas / README.md
Last active March 28, 2024 20:34
Experimenting with component-based HTML/CSS naming and patterns

NOTE I now use the conventions detailed in the SUIT framework

Template Components

Used to provide structural templates.

Pattern

t-template-name