Skip to content

Instantly share code, notes, and snippets.

View Youngestdev's full-sized avatar
💭
I may be slow to respond.

Abdulazeez Abdulazeez Adeshina Youngestdev

💭
I may be slow to respond.
View GitHub Profile
@Youngestdev
Youngestdev / start.handlebars
Created January 16, 2018 11:52
User secrtion
Hi, how can i get the clicked option from these checkboxes in node ?
```html
<title>{{ title }}</title>
<h2>Welcome to the quiz</h2>
<p>This is a quiz about me. It has just 10 questions.</p>
<h6 id="test">To start the quiz, click the button below</h6>
<p class="paper-btn" title="Start" id="start">Start</button>
<div style="display: none" id="show">
<form action="/score" method="post" id="quiz">
@Youngestdev
Youngestdev / Makefile-Unix.mk
Created September 12, 2018 02:58
Dynamic module makefile
# This makefiile generates the following dynamic libraries:
# - archiver
# - consoler
# - file_savant
# - mathic
# - string_savant
# - networker
# - parser
# - security
# - systemic
@Youngestdev
Youngestdev / hooked.js
Created February 15, 2019 04:23
Actually, messing around unethical ideas and sketching rough codes.
import React, { useEffect, useContext, useRef } from 'react';
export const NodeMounter = props => {
const ref = useRef('');
const { node } = props;
ref.appendChild(node);
useEffect(( {node: prevNode} ) => {
const { node } = props;
ref.current.removeChild(prevNode);
@Youngestdev
Youngestdev / ReactRough.js
Created February 17, 2019 04:04
Converting from class to functional.
import React, {useEffect, useRef } from 'react';
import Rough from 'roughjs/dist/rough.umd';
import useForceUpdate from 'use-force-update';
const RoughContext = React.createContext();
const __VALID_KEYS__ = [
'bowing',
'fill',
'fillStyle',
extends section title date description cover_image featured
_layouts.post
content
Getting Started
2018-12-25
Getting started with the Jigsaw blog starter template
/assets/img/post-cover-image-2.png
true
@Youngestdev
Youngestdev / goserver.go
Created September 26, 2019 17:57
Learning about the http lib from next.tech
package main
import (
"fmt"
"io/ioutil"
"net/http"
"net/url"
"strings"
)
@Youngestdev
Youngestdev / rest-api.go
Created September 26, 2019 17:58
Consuming REST api
package main
import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"strconv"
"strings"
@Youngestdev
Youngestdev / Frontend Masters Algo exercise.js
Created October 16, 2019 08:28
Frontend masters algorithm course exercise.
// Task 1: Write a function, times10, that takes an argument, n, and multiples n times 10
// a simple multiplication fn
const times10 = (n) => {
return n * 10
};
console.log('~~~~~~~~~~~~~~TASK 1~~~~~~~~~~~~~~');
console.log('times10 returns:', times10(9));
// Task 2: Use an object to cache the results of your times10 function.
@Youngestdev
Youngestdev / twoSums.go
Created October 19, 2019 23:36
Function to add two numbers in a given array to match a target. It's a slow solution.
func twoSum(nums []int, target int) []int {
var res []int
for i := 0; i < len(nums); i++ {
for j := 0; j < i; j++ {
if nums[i] + nums[j] == target {
res = append(res, i)
res = append(res, j)
break
}
}