A Pen by Abdulazeez Abdulazeez Adeshina on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This makefiile generates the following dynamic libraries: | |
# - archiver | |
# - consoler | |
# - file_savant | |
# - mathic | |
# - string_savant | |
# - networker | |
# - parser | |
# - security | |
# - systemic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"net/url" | |
"strings" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io" | |
"io/ioutil" | |
"net/http" | |
"strconv" | |
"strings" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} | |
} |
OlderNewer