Skip to content

Instantly share code, notes, and snippets.

View veekthoven's full-sized avatar
🏠
Working from home

Victor Abbah Nkoms veekthoven

🏠
Working from home
View GitHub Profile
<html>
<head>
<script>
setTimeout(
function() {
todos = document.querySelectorAll('li');
console.log(todos)
todos.forEach((todo, index) => {
@veekthoven
veekthoven / gist:55fa90596a7a8915695b39b582f4822f
Last active March 17, 2021 13:10
Demonstrating Transient
<?php
public function add_my_courses_section()
{
$api_user_id = get_user_meta(get_current_user_id(), '_external_api_user_id', true);
if (! $api_user_id) {
return;
}
@veekthoven
veekthoven / *.sublime-project
Created February 19, 2020 17:57 — forked from karrikas/*.sublime-project
Sublime text disable phpcs in a project
{
"folders":
[
{
"path": "project/path/here"
}
],
"settings": {
"phpcs": {
"phpcs_execute_on_save": false,
@veekthoven
veekthoven / loading-spinner.css
Last active February 24, 2021 13:14
"Stole" it from Bulma's source code. It adds a loading spinner to buttons to give users feed back.
// Hat-tip to bulma
.loader {
color: transparent !important;
pointer-events: none;
position: relative;
}
.loader:after {
animation: spinAround 500ms infinite linear;
border: 2px solid #fff;
import Errors from './Errors.js'
class Form {
/**
* Create a new Form instance.
*
* @param {object} data
*/
constructor(data) {
this.originalData = data;
class Errors {
/**
* Create a new Errors instance.
*/
constructor() {
this.errors = {};
}
/**