Skip to content

Instantly share code, notes, and snippets.

View deyvisonborges's full-sized avatar
🐙
I may be slow to respond.

Deyvison Borges deyvisonborges

🐙
I may be slow to respond.
View GitHub Profile
@deyvisonborges
deyvisonborges / stop-video.js
Created July 2, 2023 22:27 — forked from cferdinandi/stop-video.js
A simple method to stop YouTube, Vimeo, and HTML5 videos from playing.
/**
* Stop an iframe or HTML5 <video> from playing
* @param {Element} element The element that contains the video
*/
var stopVideo = function ( element ) {
var iframe = element.querySelector( 'iframe');
var video = element.querySelector( 'video' );
if ( iframe ) {
var iframeSrc = iframe.src;
iframe.src = iframeSrc;
@deyvisonborges
deyvisonborges / testDynamicCSSClass.html
Created January 31, 2022 05:33 — forked from shadybones/testDynamicCSSClass.html
Test a snippet of JS for dynamically creating CSS classes using JS
<html>
<head>
<style type="text/css">
.ccc{ background-color: blue; }
</style>
</head>
<body>
<script type="text/javascript">
function createClass(name,rules){
@deyvisonborges
deyvisonborges / postman-update.sh
Created August 28, 2020 15:53 — forked from lira/postman-update.sh
Install/Update postman or postman canary (beta) for linux. Tested in ubuntu 17.10 gnome3
#!/bin/bash
cd /tmp || exit
read -r -p "[s]table or [b]eta? [sS/bB] " choice
choice=${choice,,} # tolower
if [[ ! "$choice" =~ ^(s|b)$ ]]; then
exit
fi
if [[ "$choice" = "s" ]]; then
url=https://dl.pstmn.io/download/latest/linux64
name=Postman
@deyvisonborges
deyvisonborges / todo.md
Last active December 26, 2019 17:17 — forked from SachaG/todo.md
Translations To-Do Items

User Interface

  • Tshirt

Demographics

  • Salary Ranges
  • Years of Experience
  • Company Size
  • Sources