Skip to content

Instantly share code, notes, and snippets.

View duduindo's full-sized avatar
🏊‍♀️
beach ❤️

Eduardo Paixão duduindo

🏊‍♀️
beach ❤️
View GitHub Profile
@Rendez
Rendez / pip.d.ts
Last active September 24, 2023 03:24
TypeScript types for the Picture-in-Picture feature of the Document and the video tag
interface PictureInPictureResizeEvent extends Event {
readonly target: PictureInPictureWindow;
}
interface PictureInPictureWindow {
readonly width: number;
readonly height: number;
onresize(this: PictureInPictureWindow, ev: PictureInPictureResizeEvent): void;
addEventListener(
type: 'resize',
@siamkreative
siamkreative / fedora-31-install-webstorm.md
Created February 14, 2020 04:21
Installing WebStorm on Fedora 31
@pearofducks
pearofducks / Makefile
Last active April 13, 2021 13:44
Basic frontend makefile
# this tells Make to run 'make help' if the user runs 'make'
# without this, Make would use the first target as the default
.DEFAULT_GOAL := help
# here we have a simple way of outputting documentation
# the @-sign tells Make to not output the command before running it
help:
@echo 'Available commands:'
@echo -e 'dev \t\t - \t run the development environment
@echo -e 'prod \t\t - \t build for production
Unable to locate package language-pack-en
apt-get install -y locales locales-all
locale-gen en_US.UTF-8
@coxa1313
coxa1313 / RADIOS
Last active January 13, 2024 18:13
#EXTM3U
#EXTINF:0, BANDA B CURITIBA
http://13.stmip.in:27286/?type=http&nocache=7
#EXTINF:0, BAND NEWS SÃO PAULO
http://evpp.mm.uol.com.br/band/bandnewsfm_sp/playlist.m3u8
#EXTINF:0, BAND NEWSRIO DE JANEIRO
http://evpp.mm.uol.com.br/band/bandnewsfm_rj/playlist.m3u8
@trevanhetzel
trevanhetzel / app.js
Created August 30, 2016 22:39
Simple jQuery Mockjax & Browserify example
/**
* Main application file
*/
'use strict';
var $ = require('jquery'),
mockjax = require('jquery-mockjax')($, window);
$.mockjax({
@michalochman
michalochman / gulpfile.js
Last active May 19, 2021 22:11
gulp.js: babelify + browserify + sourcemaps
/* jshint strict: false */
/* globals require, console */
var gulp = require('gulp');
var exit = require('gulp-exit');
var browserify = require('browserify');
var watchify = require('watchify');
var babelify = require('babelify');
var source = require('vinyl-source-stream');
import postcss from 'postcss';
import fs from 'fs';
export default (glyphs) => {
let stylesheet = postcss.root();
glyphs.forEach((glyph) => {
@bcabanes
bcabanes / cordovaListFileEntries.js
Created December 10, 2015 16:07
Cordova/PhoneGap: List all files entries in directories provided.
/**
* Starter vars.
*/
var index = 0;
var i;
/**
* Need cordova.file plugin.
* $ cordova plugin add org.apache.cordova.file
*
@jhartikainen
jhartikainen / commit-msg
Created February 6, 2015 17:46
ESLint git commit hook
#!/bin/bash
files=$(git diff --cached --name-only | grep '\.js$')
# Prevent ESLint help message if no files matched
if [[ $files = "" ]] ; then
exit 0
fi
echo $files | xargs eslint