This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use git2::build::RepoBuilder; | |
use git2::{Cred, FetchOptions, RemoteCallbacks}; | |
use std::path::{Path, PathBuf}; | |
#[derive(Debug)] | |
pub struct SshKey { | |
pub public_key: PathBuf, | |
pub private_key: PathBuf, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const path = require('path'); | |
const { spawn } = require( 'child_process' ); | |
const sourcePath = path.resolve('./video/'); | |
const distPath = path.resolve('./new/'); | |
const ALBUM = '我修的可能是假仙'; | |
const AUTHOR = '牛大宝'; | |
let videoFileList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>A Crazy Getter/Setter Hack</title> | |
</head> | |
<body> | |
<ul> | |
<li>Object.defineProperty API:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty</li> | |
<li>https://github.com/RubyLouvre/avalon/blob/master/avalon.shim.js#L1394</li> | |
<li>https://gist.github.com/jeffrafter/189354</li> |