Skip to content

Instantly share code, notes, and snippets.

View GoodNovember's full-sized avatar
🖍️
Why can't I write my code in Crayon?

Victor GoodNovember

🖍️
Why can't I write my code in Crayon?
  • 951 Gaspra
View GitHub Profile
{#
/**
* @file
* Theme override for the basic structure of a single Drupal page.
*
* Variables:
* - logged_in: A flag indicating if user is logged in.
* - root_path: The root path of the current page (e.g., node, admin, user).
* - node_type: The content type for the current node, if the page is a node.
* - head_title: List of text elements that make up the head_title variable.
@GoodNovember
GoodNovember / assertions.js
Created February 11, 2019 06:09
useful pixi snippets
export const isObj = (test) => ( (test && typeof test === 'object') ? (true) : (false) )
export const isFn = (test) => ( (typeof test === 'function') ? (true) : (false) )
export const isArr = (test) => ((Array.isArray(test)) ? (true) : (false))
@GoodNovember
GoodNovember / BulmaTabTemplate.html
Created February 19, 2019 14:56
Bulma Tab JS Example
<section class="section">
<div class="container">
<div class="tabs" data-content-target="mainTabs">
<ul>
<li class="is-active" data-content="aboutContent"><a>About</a></li>
<li data-content="courseRequirementContent"><a>Course Requirements</a></li>
<li data-content="howToApplyContent"><a>How to Apply</a></li>
<li data-content="contactContent"><a>Contact</a></li>
</ul>
</div>
@GoodNovember
GoodNovember / help.md
Created February 21, 2019 15:44
Git Fixes

Problem: Git shows:

$ git clone git@ssh.github.com:443/junk-code/spine.git
Cloning into 'spine'...
ssh: Could not resolve hostname ssh.github.com: Name or service not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
@GoodNovember
GoodNovember / example.js
Created May 3, 2019 21:24
React Hook LocalStorage Example
import React from 'react'
import { NameDropper } from './NameDropper'
import { MomentaryButton } from './MomentaryButton'
import { ToggleButton } from './ToggleButton'
import { Indicator } from './Indicator'
import { Row, Column } from './Layout'
import { useLocalStorage } from './hooks/useLocalStorage'
const initialLightState = {
fwkg9974@mb.infoweb.ne.jp
karidja.bakary0012@mail.com
karidja.bakaryy221@email.com
Hello My greetings to you
I am writing you this email purely on the ground of trust because I don’t know you and we have not met before. I found you here and my mind convinced me that I can trust you, I am writing this email with tears in my eyes, let me explain it a little here, so that you will understand, my name is Miss Karidja Bakary 19years old. from Ivory Coast and the only daughter of late Mr / Mrs Daouda Bakary. My late father was a Gold and cocoa merchant before he was poisoned to death by his elder brother because of his wealth and properties.,
Please I need your urgent assistance for you to stand as my foreign partner in the management of $ 4.500.000 Dollar which my late father deposited in Bank here when he was alive. I wish to appoint you as my project manager to help me invest the fund in a good business, while i continue my studies in the university in your country. I have the deposit documents with me and
@GoodNovember
GoodNovember / MergeSort.js
Created May 30, 2019 16:24
So, uh. Why did you write it like that?
const MergeSort = ({ unsortedArray }) => {
const { length } = unsortedArray
if (length <= 1) {
return unsortedArray
} else {
const middle = Math.floor(length / 2)
const unsortedLeft = unsortedArray.slice(0, middle)
const unsortedRight = unsortedArray.slice(middle)
const { result: left } = MergeSort({ unsortedArray: unsortedLeft })
const { result: right } = MergeSort({ unsortedArray: unsortedRight })
@GoodNovember
GoodNovember / idea.md
Created July 20, 2019 17:17
Vague thought

Each layer of abstraction is commented with a fabric like flag attached with two strings.

As you type and describe what you want, this is saved. inputs are indicated and outputs expected are automatically displayed. imports are specified in code, these are separate from the rest of the code, but once imported it acts as any other node.

describing the layers in this way allows for us to search for previously written abstractions and transformations.

we can zoom in and out of our abstractions, depth visible can be specified.

most important thing is clear primitives and transformations. clear pipelines. clear ports. import export.

3128 4693 6742

@GoodNovember
GoodNovember / BabylonLayout.jsx
Created August 2, 2019 16:05
WebGL Renderers, made Responsive, paired with React and Styled Components
import React, { useState } from 'react'
import { FullContainer } from '../FullContainer'
import { BabylonScene } from '../BabylonScene'
import { Container } from '../Container'
import { ScrollContainer } from '../ScrollContainer'
import * as BABYLON from 'babylonjs'
import * as GUI from 'babylonjs-gui'
const {