Simple CSS SVG filter for creating a fake anaglyph 3D effect.
Try the Anaglyph 3D online photo filter in MockoFun
A Pen by Ion Emil Negoita on CodePen.
| import { useState, useEffect } from "react"; | |
| function useSpeechRecognition(commands, callback) { | |
| const [recognition, setRecognition] = useState(null); | |
| const [transcript, setTranscript] = useState(""); | |
| const [error, setError] = useState(""); | |
| const [status, setStatus] = useState("idle"); | |
| // define an effect that runs once when the component mounts | |
| useEffect(() => { |
| import React, { useEffect, useImperativeHandle, useState, forwardRef, useCallback } from 'react' | |
| import { createPortal } from 'react-dom' | |
| import './styles.css' | |
| const modalElement = document.getElementById('modal-root') | |
| export function Modal({ children, fade = false, defaultOpened = false }, ref) { | |
| const [isOpen, setIsOpen] = useState(defaultOpened) | |
| const close = useCallback(() => setIsOpen(false), []) |
Simple CSS SVG filter for creating a fake anaglyph 3D effect.
Try the Anaglyph 3D online photo filter in MockoFun
A Pen by Ion Emil Negoita on CodePen.
| gem "octokit", "~> 4.0" |
| { | |
| "name": "project-name", | |
| "description": "Template for static sites", | |
| "version": "1.0.0", | |
| "homepage": "http://www.project-name.com", | |
| "author": { | |
| "name": "Adam Reis", | |
| "url": "http://adam.reis.nz" | |
| }, | |
| "license": "UNLICENSED", |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
| sudo: required | |
| language: ruby | |
| services: | |
| - docker | |
| before_install: | |
| - echo "Testing Docker Hub credentials" | |
| - docker login -e=$DOCKER_EMAIL -u=$DOCKER_USERNAME -p=$DOCKER_PASSWORD |
| // NOTICE 2020-04-18 | |
| // Please see the comments below about why this is not a great PRNG. | |
| // Read summary by @bryc here: | |
| // https://github.com/bryc/code/blob/master/jshash/PRNGs.md | |
| // Have a look at js-arbit which uses Alea: | |
| // https://github.com/blixt/js-arbit | |
| /** |
Drop in replace functions for setTimeout and setInterval that make use of requestAnimationFrame.
See overview article and Paul Irish's earlier post.
Courtesty of Joe Lambert
Copyright 2011, Joe Lambert.
Free to use under the MIT license.
http://www.opensource.org/licenses/mit-license.php
| /* | |
| Left bit shifting to multiply by any power of two | |
| Approximately 300% faster. | |
| */ | |
| x = x * 2; | |
| x = x * 64; | |
| //equals: | |
| x = x << 1; |