Skip to content

Instantly share code, notes, and snippets.

👨‍💻
Focusing

Ojo Oluwasetemi Oluwasetemi

👨‍💻
Focusing
Block or report user

Report or block Oluwasetemi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View App.js
import React, { Suspense, useState } from "react";
import { unstable_createResource as createResource } from "react-cache";
import {
Combobox,
ComboboxInput,
ComboboxList,
ComboboxOption
} from "./Combobox2.js";
function App({ tabIndex, navigate }) {
View html.md

HTML

Table of Content

  1. HTML Introduction
  2. HTML Basics
  3. HTML Attributes
  4. HTML Advanced
  5. HTML Entities
  6. CSS in HTML - Cascading Style Sheets
@Oluwasetemi
Oluwasetemi / pyramid.js
Last active Jul 30, 2018
Pascal triangle
View pyramid.js
const pyramid = n => {
const oddNumberArray = Array.from({ length: n * 2 })
.map((v, i) => i + 1)
.filter(v => {
if (v % 2 !== 0) return v
})
let oddStringArray = numberToString(oddNumberArray)
oddStringArray.map(v => console.log(pad(v, (n * 2) - 1)))
}
View index.js
#!/usr/bin/env node
console.log('hello from npx')
View FizzBuzz.js
function fizzBuzz(amount) {
// let arr = []
// for (let i = 0; i <= amount; i++) {
// arr.push(i)
// }
return Array.from({ length: amount + 1 })
.map((v, i)=> i)
.filter((v => v !== 0))
.map(v => {
if (v % 3 === 0 && v % 5 === 0) {
@Oluwasetemi
Oluwasetemi / vscode-italics.json
Created May 30, 2018 — forked from dev01d/vscode-italics.json
VSCode italics in (almost) any theme
View vscode-italics.json
// All you need to do is add a font that has pretty good itlaics support i.e Fira, Operator, etc. and then add these two params to your existing User settings.
// Tested in Monokai Sharp and Super One Dark
{
"editor.fontFamily": "'Operator Mono', Menlo, Monaco, 'Courier New', monospace",
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
"comment",
@Oluwasetemi
Oluwasetemi / bling.js
Created Apr 28, 2018 — forked from paulirish/bling.js
bling dot js
View bling.js
/* bling.js */
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
}
NodeList.prototype.__proto__ = Array.prototype;
@Oluwasetemi
Oluwasetemi / markdown.js
Created Feb 7, 2018
A MarkdownComponent
View markdown.js
class MarkdownEditor extends React.Component {
constructor(props) {
super(props);
this.handleChange = this.handleChange.bind(this);
this.state = { value: 'Type some *markdown* here!' };
}
handleChange(e) {
this.setState({ value: e.target.value });
}
@Oluwasetemi
Oluwasetemi / Todo.js
Created Feb 7, 2018
A TODO App in react
View Todo.js
class TodoApp extends React.Component {
constructor(props) {
super(props);
this.state = { items: [], text: '' };
this.handleChange = this.handleChange.bind(this);
this.handleSubmit = this.handleSubmit.bind(this);
}
render() {
return (
@Oluwasetemi
Oluwasetemi / compat-old.txt
Created Feb 3, 2018 — forked from Elchi3/compat-old.txt
English pages still using CompatibilityTable.ejs
View compat-old.txt
Archive/<input>_archive
Web/API/AbstractWorker/onerror
Web/API/AmbientLightSensor/AmbientLightSensor
Web/API/AmbientLightSensor/reading
Web/API/AmbientLightSensorReading
Web/API/AmbientLightSensorReading/AmbientLightSensorReading
Web/API/AmbientLightSensorReading/illuminance
Web/API/Animation
Web/API/Animation/Animation
Web/API/Animation/cancel
You can’t perform that action at this time.