This file contains hidden or 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
| Sub MergeTwoPPTX() | |
| Dim strSlidesPath1 As String | |
| Dim strSlidesPath2 As String | |
| Dim pageCount As Long | |
| Dim oTarget As Presentation | |
| strSlidesPath1 = "/Users/sink/Downloads/XYL-7.pptx" | |
| strSlidesPath2 = "/Users/sink/Downloads/002-XYL-7.pptx" | |
| ' Get number of slides |
This file contains hidden or 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
| diff -uNr node_modules/hexo-renderer-marked/index.js hexo-renderer-marked/index.js | |
| --- node_modules/hexo-renderer-marked/index.js 1985-10-26 16:15:00.000000000 +0800 | |
| +++ hexo-renderer-marked/index.js 2020-09-10 16:08:59.441937082 +0800 | |
| @@ -15,6 +15,7 @@ | |
| mangle: true, | |
| sanitizeUrl: false, | |
| headerIds: true, | |
| + anchorAlias: false, | |
| lazyload: false, | |
| // TODO: enable prependRoot by default in v3 |
This file contains hidden or 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
| pipeline { | |
| agent any | |
| stages { | |
| stage('checkout') { | |
| steps { | |
| checkout([ | |
| $class: 'GitSCM', | |
| branches: [[name: '*']], | |
| userRemoteConfigs: [[url: env.GIT_REPO_URL, credentialsId: env.CREDENTIALS_ID]] | |
| ]) |
This file contains hidden or 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
| #!/usr/bin/python3 | |
| import re | |
| str1 = """美国股市(American stock market),简称美股,泛指美国纽约的证券交易所的股票市场,主要指标包括道琼斯工业平均指数、标准普尔500指数及纳斯达克100指数。狭义来说,美股主要是指道琼斯工业平均指数的表现,例如“美股升若干点”的意思等同于“道指升若干点”。 | |
| 2020年3月16日:美股开盘熔断,已经是本月第三次,美联储降息已经无力救市了吗?可能会带来哪些连锁反应? | |
| 2020年3月24日:美股开盘即大涨,是回光返照还是药到病除? | |
| 2020年3月25日:如何看待美股的暴涨? | |
| """ |
This file contains hidden or 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
| node { | |
| checkout scm | |
| sh 'docker network create bridge1'; | |
| sh(script:'docker run --net bridge1 --name mysql -d -e "MYSQL_ROOT_PASSWORD=my-secret-pw" -e "MYSQL_DATABASE=test" mysql:5.7', returnStdout: true) | |
| sh(script:'docker run --net bridge1 --name redis -d redis:5', returnStdout: true) | |
| def testImage = docker.build("test-image:${env.BUILD_ID}", "-f Dockerfile ./") | |
| testImage.inside('--net bridge1 -e "DB_HOST=mysql" -e "REDIS_HOST=redis" -e "DB_DATABASE=test" -e "DB_USERNAME=root" -e "DB_PASSWORD=my-secret-pw"') { | |
| stage('Prepare') { | |
| echo 'preparing' | |
| sh 'env' |
This file contains hidden or 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
| <?php | |
| /** | |
| * remove mirros of composer.lock | |
| */ | |
| $data = json_decode(file_get_contents(__DIR__ . '/composer.lock'), true); | |
| $new_data = $data; | |
| foreach (['packages', 'packages-dev'] as $key) { | |
| if (!isset($data[$key])) { | |
| continue; |
This file contains hidden or 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
| --- vendor/aliyuncs/oss-sdk-php/composer.json 2018-01-08 14:59:35.000000000 +0800 | |
| +++ stonecutter/aliyun-oss-php-sdk/composer.json 2019-04-18 11:13:06.799247597 +0800 | |
| @@ -11,6 +11,7 @@ | |
| } | |
| ], | |
| "require": { | |
| + "nesbot/carbon": ">=1.0", | |
| "php":">=5.3" | |
| }, | |
| "require-dev" : { |
This file contains hidden or 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
| <?php | |
| require __DIR__ . '/vendor/autoload.php'; | |
| use Google\Cloud\Translate\TranslateClient; | |
| $targetLanguage = 'en'; // Print the names of the languages in which language? | |
| $translate = new TranslateClient([ | |
| 'keyFilePath' => __DIR__ . '/config/gcloud_key.json', | |
| ]); | |
| $result = $translate->localizedLanguages([ |
This file contains hidden or 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
| { | |
| "name": "laravel/laravel", | |
| "scripts": { | |
| "post-install-cmd": [ | |
| "patch -N -p0 < faker_image_url.patch || echo 'patch failed'" | |
| ] | |
| } | |
| } |
NewerOlder