Skip to content

Instantly share code, notes, and snippets.

@slopesweb
slopesweb / README.md
Created December 10, 2022 19:49 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@slopesweb
slopesweb / introrx.md
Created December 27, 2022 18:53 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@slopesweb
slopesweb / settings.json
Created February 17, 2023 22:50 — forked from diego3g/settings.json
VSCode Settings (Updated)
{
"emmet.syntaxProfiles": {
"javascript": "jsx"
},
"workbench.startupEditor": "newUntitledFile",
"editor.fontSize": 16,
"javascript.suggest.autoImports": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.rulers": [
80,
@slopesweb
slopesweb / test.md
Created February 18, 2023 01:49 — forked from ityonemo/test.md
Zig in 30 minutes

A half-hour to learn Zig

This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/

Basics

the command zig run my_code.zig will compile and immediately run your Zig program. Each of these cells contains a zig program that you can try to run (some of them contain compile-time errors that you can comment out to play with)

<?php
/**
* Register Styles and Scripts
*/
add_action( 'wp_enqueue_scripts', 'ft_scripts_styles' );
function ft_scripts_styles() {