Skip to content

Instantly share code, notes, and snippets.

View pablocattaneo's full-sized avatar

Pablo Cattaneo pablocattaneo

View GitHub Profile
div
&::-webkit-scrollbar-track
-webkit-box-shadow inset 0 0 6px rgba(0,0,0,0.3)
background-color #F5F5F5
&::-webkit-scrollbar
width 6px
background-color #F5F5F5
&::-webkit-scrollbar-thumb
background-color #f03d37
border-radius 6px
Need a quick, easy and free way of cleaning up a video’s audio from background noise ? Follow the steps below to remove background audio from videos.
First get and install the tools:
FFMPEG.
SoX – Sound eXchange.
Then clean your noise!
Split the audio and video streams into 2 seperate files:
The VIDEO stream: ffmpeg -i input.mp4 -vcodec copy -an tmpvid.mp4
<style lang="stylus">
.clarin-365-card__description
min-height 34px
font-size 13px
font-weight 300
line-height 1.31
color #999
multiline-ellipsis(2,34px) // Gloabl stylus method
</style>
netstat -nap|grep 3000
# returns list process using port 3000 last column show id of this process
# tcp 0 0 127.0.0.1:3000 0.0.0.0:* LISTEN 11249/node
# tcp 0 0 127.0.0.1:3000 127.0.0.1:35804 ESTABLISHED 11249/node
# tcp 0 0 127.0.0.1:35804 127.0.0.1:3000 ESTABLISHED 2392/chrome --type=
# tcp 0 0 127.0.0.1:3000 127.0.0.1:35746 ESTABLISHED 11249/node
# tcp 0 0 127.0.0.1:35878 127.0.0.1:3000 ESTABLISHED 2392/chrome --type=
# tcp 0 0 127.0.0.1:3000 127.0.0.1:35878 ESTABLISHED 11249/node
# tcp 0 0 127.0.0.1:35746 127.0.0.1:3000 ESTABLISHED 2392/chrome --type=
1. Shotwell
For just the basic automatic wallpaper changing feature, you don’t need to install any software.
Just launch the pre-installed Shotwell photo manager, choose the pictures you need (you may need to import them first), then go to Files -> Set as Desktop Slideshow.
Finally set the time interval in next dialog and done!
const A = [0, 1, 2],
B = [2, 1, 0],
C=[2, 1];
// A.every( e => B.includes(e) )
console.log(A.every(e => B.includes(e)));
console.log(A.every(e => C.includes(e)));
console.log(C.every(e => B.includes(e)));
const A = [0, 1, 2],
B = [2, 1, 0],
C=[2, 1];
// A.every( e => B.includes(e) )
console.log(A.every(e => B.includes(e)));
console.log(A.every(e => C.includes(e)));
console.log(C.every(e => B.includes(e)));
@pablocattaneo
pablocattaneo / categories.js
Created March 15, 2019 20:49
If you are using the Modules mode of the Vuex store, only the primary module (in store/index.js) will receive this action. You'll need to chain your module actions from there.
export const state = () => ({
categories: []
});
export const mutations = {
setCategories(state) {
state.categories = [
"Pablo",
"Automotor",
"Compras",
@pablocattaneo
pablocattaneo / .ssh
Created March 13, 2019 20:26
Unhandled rejection Error: EACCES: permission denied #npm Source: https://stackoverflow.com/a/54514747/3599272
sudo chown -R $(whoami) ~/.npm
@pablocattaneo
pablocattaneo / prefer-await-to-then
Created February 19, 2019 19:02
Eslint rule prefer asyc await over then. Source: https://www.npmjs.com/package/eslint-plugin-promise
(Check if the rule was added to eslint core) https://github.com/eslint/eslint/pull/11033
1- Install https://www.npmjs.com/package/eslint-plugin-promise
2- Active rule: "promise/prefer-await-to-then": "error"