Skip to content

Instantly share code, notes, and snippets.

View zeraphie's full-sized avatar

Izzy Skye zeraphie

View GitHub Profile
let selector = 'a'; [...document.querySelectorAll(selector)].reduce((total, cur) => ++total, 0);
@zeraphie
zeraphie / !-README.md
Last active November 6, 2025 11:34
Make a word with a different one ontop of it like Beͦsͧtͭ tͨoͪoͣlͬ eͫvͤeͩr

Dual Words

I was bored and made this small tool to merge words together, below is an example of it working in action

https://codepen.io/zephyr/full/GxPbZR

This was made using this

If you want to make a word with the allowed letters, this tool can help. The allowed letters are: "aeioucdhmrtvx"

@zeraphie
zeraphie / SuperFetch.js
Last active May 14, 2018 14:11
A fetch wrapper that takes the same parameters and formats the fetch request for you
export default class SuperFetch {
constructor(url, data, params = {}){
this.url = url;
this.data = data;
this.params = params;
}
/**
* Send a get request using the fetch api
*
@zeraphie
zeraphie / DataTable.js
Created May 21, 2018 16:02
Create an HTMLElement table from a json response from a database query
export default class DataTable {
/**
* Add the dataset (from a database query) to the class instance and also
* contain the attributes for the table element
*
* @param {json}
* @param {Object}
*/
constructor(data, attributes = {}){
this.data = data;
@zeraphie
zeraphie / !-dotfiles.md
Last active June 12, 2018 16:34
Dotfiles

System Preferences

In my System Preferences I've set the following:

  • Background: #1D1F20
  • Text Colour: #EFEFEF
  • Selection: #9FB8D8
  • Cursor: Vertical Bar
  • Blink Cursor: Checked