Skip to content

Instantly share code, notes, and snippets.

View oceangravity's full-sized avatar
💭
WebsKit momentum

Juan Carlos Galindo Navarro oceangravity

💭
WebsKit momentum
View GitHub Profile
@oceangravity
oceangravity / BitmapHoles.php
Created December 2, 2021 11:56
Bitmap Holes
<?php
/**
* Bitmap Holes
* Have the function BitmapHoles(strArr) take the array of strings stored in strArr,
* which will be a 2D matrix of 0 and 1's, and determine how many holes, or contiguous regions of 0's,
* exist in the matrix. A contiguous region is one where there is a connected group of 0's going
* in one or more of four directions: up, down, left, or right.
*
* For example: if strArr is ["10111", "10101", "11101", "11111"], then this looks like the following matrix:
*
<template>
<div>Data: {{ data }}</div>
<button @mousedown="method"></button>
</template>
<script lang="ts" setup>
import { computed, ref } from 'vue'
const test = ref(100)
const data = computed(() => test.value + 200)
@oceangravity
oceangravity / data.json
Created October 31, 2023 12:16
JSON Structure
{
"Layout": {
"defaultSubCategory": "Basic",
"subcategories": {
"Basic": {
"Columns": {
"variants": {
"default": {
"1 ~ 6": {
"columns-1": {