I hereby claim:
- I am unicornist on github.
- I am unicornist (https://keybase.io/unicornist) on keybase.
- I have a public key whose fingerprint is 648B AD2D DBA9 5CCD DCC3 98D4 7A32 2E78 55D4 9CA4
To claim this, I am signing this object:
// ==UserScript== | |
// @name Coda Persian Fixes | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://coda.io/* | |
// @grant GM_addStyle | |
// ==/UserScript== |
I hereby claim:
To claim this, I am signing this object:
// styles for this are based on Bootstrap 3.3.7 | |
import React, { Component } from "react"; | |
import ReactDOM from "react-dom"; | |
import { withProps } from "recompose"; | |
const users = [ | |
{ "name": "Homer Jay", "status": "pending" }, | |
{ "name": "El Barto", "status": "active" }, | |
{ "name": "SideshowBob", "status": "active" } | |
]; |
npm i http-proxy-middleware --save
Then add this inside server
prop of your BrowserSync config object:
middleware: [require('http-proxy-middleware')('/api', {target: 'http://localhost:8020/'})]
const log = (...args) => console.log(`[${new Date().toLocaleString()}]`, ...args); | |
module.exports = log; | |
// log(1,2,3) --> [2018-3-10 01:42:21] 1 2 3 | |
// log([1,2,3]) --> [2018-3-10 01:43:47] [ 1, 2, 3 ] | |
// log('this is:', this) --> [2018-3-10 01:43:01] this is: { console: [Getter],............} |
(12345.6789).toLocaleString("fa-IR"); // ۱۲٬۳۴۵٫۶۷۹ | |
var now = new Date(); | |
now.toLocaleString(); // 1/27/2018, 12:07:03 AM | |
now.toLocaleDateString(); // 1/27/2018 | |
now.toLocaleTimeString(); // 12:07:03 AM | |
now.toLocaleString("fa-IR") // ۱۳۹۶/۱۱/۷، ۰:۰۷:۰۳ | |
now.toLocaleDateString("fa-IR") // ۱۳۹۶/۱۱/۷ |
cd %programfiles%\MongoDB\Server\3.6\bin | |
mongod --dbpath="%programdata%\Mongo\Data" --logpath="%programdata%\Mongo\log.txt" --install && net start MongoDB |
ffmpeg -i input.avi -c:v libx265 output.mp4
ffmpeg -i input.avi -c:v libx264 output.mp4
ffmpeg -i input.mp4 -c:v flv output.flv
ffmpeg -i input.mp4 -c:v libx265 -crf 28 -vf "scale=iw/2:ih/2" -c:a copy output.mp4
ffmpeg -i input.mp4 -c:v libx265 -crf 28 -vf "scale=720:-1" -c:a copy output.mp4
ffmpeg -i input.mp4 -c:v libx265 -crf 28 -vf "scale=720:trunc(ow/a/2)*2" -c:a copy output.mp4
ffmpeg -i input.mp4 -c:v libx265 -crf 28 -vf "scale=trunc(oh*a/2)*2:720" -c:a copy output.mp4