I think other people use 3 divs to make their mobile/hamburger menus. Not sure. I've always done it with one.
A Pen by Darryl Dixon - Piece Digital on CodePen.
frameData { // pixel data for the frame | |
l0: layer { | |
"0_0": { // the coordinates of the pixel | |
top, | |
right, | |
bottom, | |
left, | |
width, | |
height, | |
centerX, |
function mouseGridPosition(e, | |
{ | |
pixel, | |
w, | |
h | |
}) { | |
// w and h are the width and height of the canvas | |
var { canvas, context: ctx } = getCanvasAndContext(); | |
var mX = e.offsetX; |
frameData { // pixel data for the frame | |
"0_0": { // the coordinates of the pixel | |
top, | |
right, | |
bottom, | |
left, | |
width, | |
height, | |
centerX, | |
centerY, |
"use strict"; | |
const MDA = [1, 2, [3, 4], 5, [6, [7, 8, [9, [10]]]]]; | |
let newArr = []; | |
// piecedigital.net | |
const flattenArray = function(arr) { | |
let newArr = []; | |
let flat = function(arr) { | |
arr.map(data => { | |
// chck if the data in the index of the array is an object and an array | |
if(typeof data === "object" && Array.isArray(data)) { |
package main | |
import ( | |
"golang.org/x/tour/wc" | |
"strings" | |
) | |
// I finally solved one that I didn't have to look up help for | |
func WordCount(s string) map[string]int { | |
// create a variable "stringSplit", a slice that contains all words from "s" |
package main | |
| |
import ( | |
"golang.org/x/tour/pic" | |
) | |
| |
func Pic(dx, dy int) [][]uint8 { | |
// this makes "s" a slice ready to hold slices | |
s := make([][]uint8, dy) | |
var teams = ["foo", "bar", "baz", "fizz", "buzz", "biz"]; | |
var bracket = [ | |
{ | |
}, | |
{ | |
}, | |
{ |