Skip to content

Instantly share code, notes, and snippets.

View mp4resize.md
for i in **/*.mp4; do
    d=$(dirname "$i");
    b=$(basename "$i" .mp4);
    mkdir -p "720/${d}"
    ffmpeg -i "$i" -c:v libx264 -s hd720 "720/${d}/${b}_720.mp4"
done
View mlearning.css
.mlrng{margin-top:3.5rem}.mlrng__section{padding:40px 0 20px 0}.mlrng__title{text-align:center;margin-bottom:1em;text-transform:uppercase}.mlrng .header{background:#131300;margin:0}.mlrng .header .col-sm-6{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-content:center;-ms-flex-line-pack:center;align-content:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.mlrng .header__buttons{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.mlrng .header__buttons .btn{margin-right:1em;margin-bottom:1em}.mlrng .mlearning-logo span{width:500px;height:155px;position:relative;display:block;text-indent:-1984px}.mlrng .mlearning
@mfd
mfd / seo.md
Last active Jan 17, 2020
RN.digital base SEO
View seo.md
@mfd
mfd / multiply-blending-mode-to-png.md
Created Nov 5, 2019 — forked from magicznyleszek/multiply-blending-mode-to-png.md
Multiply blending mode to PNG in Photoshop
View multiply-blending-mode-to-png.md
  1. copy your image (Ctrl+A and Ctrl+C)
  2. make a new document-sized pure-black layer behind it
  3. group the black layer and yor image together
  4. add mask to the group
  5. enter mask edit mode (alt+click on the mask icon/thumbnail)
  6. paste your image in the mask (b/w) and then invert it.
  7. save it as a 24-bit transparent PNG
@mfd
mfd / logo_bw.png
Last active Jun 24, 2019
custom CSS/JS for tinkoff business website
@mfd
mfd / script.js
Last active Apr 9, 2019
Таблица умножения
View script.js
var data = [];
for(let i = 1; i < 10; i++) {
data[i] = []
for(let j = 1; j < 10; j++) {
data[i].push(i*j);
}
}
console.table(data)
var html = '<table>';
@mfd
mfd / Google.js
Last active Sep 3, 2018
Custom maps for Strava
View Google.js
// https://github.com/shramov/leaflet-plugins/blob/master/layer/tile/Google.js
// MIT licensed
/*
* Google layer using Google Maps API
*/
/* global google: true */
L.Google = L.Class.extend({
@mfd
mfd / arg.json
Last active Dec 8, 2019
jwplayer captions for wesbos courses
View arg.json
{
"description": "FullStack Advanced React + GraphQL",
"title": "Advanced React + GraphQL",
"feedid": "ARG",
"kind": "DYNAMIC",
"playlist": [
{
"mediaid": "ARG_1",
"feedid": "ARG",
You can’t perform that action at this time.