Я также спросил это на GitHub. Предположим, есть компоненты Signin
и Signup
. Они близнецы:
Signup:
<main>
<h1 className={styles.h1}>Sign Up</h1>
" Specify a directory for plugins | |
call plug#begin('~/.vim/plugged') | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'scrooloose/nerdtree' | |
"Plug 'tsony-tsonev/nerdtree-git-plugin' | |
Plug 'Xuyuanp/nerdtree-git-plugin' | |
Plug 'tiagofumo/vim-nerdtree-syntax-highlight' | |
Plug 'ryanoasis/vim-devicons' | |
Plug 'airblade/vim-gitgutter' |
#!/usr/bin/env osascript -l JavaScript | |
/** | |
* Delete silence from Final Cut Pro timeline using a script. | |
* Demo: https://imgur.com/a/Zisav | |
* | |
* This script accepts an ffmpeg silencedetect log as input. | |
* | |
* To setup, have fcp running along with your clip selected. Ensure that the | |
* timecode will start at zero before running this script. That is, if your clip |
Я также спросил это на GitHub. Предположим, есть компоненты Signin
и Signup
. Они близнецы:
Signup:
<main>
<h1 className={styles.h1}>Sign Up</h1>
" Setup vim-plug -----------------------------------------------------------{{{ | |
" Declare Plugin system Config | |
call plug#begin('~/.local/share/nvim/plugged') | |
" UI enhance | |
Plug 'Yggdroot/indentLine' | |
Plug 'airblade/vim-gitgutter' | |
Plug 'itchyny/lightline.vim' |
function calcFletcherSum(data) { | |
var length = data.length, i = 0, sum1 = 0xFF, sum2 = 0xFF; | |
while (length) { | |
var tlen = length > 21 ? 21 : length; | |
length -= tlen; | |
do { | |
var ch = data.charCodeAt(i++); | |
if (ch > 255) { | |
var ch2 = ch >> 8; | |
ch &= 0xFF; |
app.post '/pay', (req, res) -> | |
payment = | |
account: req.body.account | |
value: req.body.value | |
transactionId: (Math.random() * 1e18).toString(36) | |
res.redirect "#{appUrl}/#{payment.account}/#{payment.value}/#{payment.transactionId}?returnUrl=#{returnUrl}" | |
app.post '/payment', (req, res) -> | |
input = req.body.account + req.body.value + req.body.transactionId + secureKey | |
sign = crypto.createHash("md5").update(input).digest("hex") |
var cluster = require('cluster'); | |
var http = require('http'); | |
var numCPUs = require('os').cpus().length; | |
if (cluster.isMaster) { | |
// Fork workers. | |
for (var i = 0; i < numCPUs; i++) { | |
cluster.fork(); | |
} | |
cluster.on('exit', function(worker, code, signal) { |
### | |
Module dependencies | |
### | |
require.paths.unshift "#{__dirname}/lib/support/express-csrf/" | |
require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/" | |
express = require 'express' | |
app = module.exports = express.createServer() | |
RedisStore = require 'connect-redis' |