The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
| #requires -version 4 | |
| <# | |
| .SYNOPSIS | |
| <Overview of script> | |
| .DESCRIPTION | |
| <Brief description of script> | |
| .PARAMETER <Parameter_Name> | |
| <Brief description of parameter input required. Repeat this attribute if required> |
| M = 5 | |
| N = 5 | |
| arrStep = [] | |
| def floodFillAlgo(screen, x, y, prevC, newC, step): | |
| # Base cases | |
| if (x < 0 or x >= M or y < 0 or | |
| y >= N or screen[x][y] != prevC or | |
| screen[x][y] == newC): |
| class HashTable { | |
| constructor() { | |
| this.table = new Array(127); | |
| this.size = 0; | |
| } | |
| _hash(key) { | |
| let hash = 0; | |
| for (let i = 0; i < key.length; i++) { | |
| hash += key.charCodeAt(i); |
| // Created an empty array | |
| var stackarr = []; | |
| // Variable topp initialized with -1 | |
| var topp = -1; | |
| // Push function for pushing | |
| // elements inside stack | |
| function push(e) { | |
| topp++; |
NOTE: This is heavily outdated Gist snippet from 2017.
Another alternative to installing Go is to use a simple Bash script. It will download and install Go language under of your own user account.
Note that a system-wide installation might be better for some things
| Xoá rồi nhé |
| import '@mohayonao/web-audio-api-shim' | |
| import React, { Component } from 'react' | |
| import ReactDOM from 'react-dom' | |
| import Player from './components/player' | |
| import FilePicker from './components/file' | |
| import { isAudio, readBlobURL, download, rename, sliceAudioBuffer } from './utils' | |
| import { encode } from './worker-client' | |
| import WebAudio from './webaudio' | |
| import { Box, Button, ButtonGroup, FormControl, InputLabel, Select, MenuItem } from "@mui/material"; | |
| import PlayArrow from '@mui/icons-material/PlayArrow' |
| var async = require('async'); | |
| var ShareDBError = require('../error'); | |
| function DB(options) { | |
| // pollDebounce is the minimum time in ms between query polls | |
| this.pollDebounce = options && options.pollDebounce; | |
| } | |
| module.exports = DB; | |
| // When false, Backend will handle projections instead of DB |