pdfcpu split horizontal_input.pdf ./out
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
| import fs from 'node:fs' | |
| import path from 'node:path' | |
| import { ExpoConfig } from '@expo/config-types' | |
| import { | |
| ConfigPlugin, createRunOncePlugin, IOSConfig, AndroidConfig, | |
| withInfoPlist, withEntitlementsPlist, withXcodeProject, | |
| withMainApplication, withAndroidManifest, AndroidManifest | |
| } from 'expo/config-plugins' |
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
| git -C "$(brew --repo)" remote set-url origin https://mirrors.ustc.edu.cn/brew.git | |
| git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git | |
| git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git | |
| echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile | |
| source ~/.bash_profile |
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
| function createStorageMessageFrame(){ | |
| const listener ='function(e){window.top.postMessage({key: e.key, oldValue: e.oldValue,newValue: e.newValue}, \''+ window.location.origin +'\')}' | |
| const frame = document.createElement('iframe') | |
| frame.style.width = 0 | |
| frame.style.height = 0 | |
| frame.style.border = 'none' | |
| frame.style.overflow = 'hidden' | |
| frame.style.visibility = 'hidden' | |
| document.body.appendChild(frame) | |
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
| // utitlies module | |
| const path = require('path') | |
| const fs = require('fs') | |
| const noop = () => {} | |
| const debug = process.env.DEBUG ? console.log : noop | |
| // lang functions | |
| const toString = Object.prototype.toString | |
| const typeChecker = (expect) => (val) => toString.call(val) === `[object ${expect}]` |
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
| function strip1(name){ | |
| return name.replace(/^(\/*)|(\/*)$/g, '') | |
| } | |
| function strip2(name){ | |
| return name.replace(/^(\/+)|(\/+)$/g, '') | |
| } | |
| let str = "///packages/comm/packa/packages/packages/commocomm/packages/" |
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
| /** | |
| A simple inspector function to detect applet runtime features, such as new functions, new globals etc. | |
| It will report detecting result in the console panel. | |
| */ | |
| const features = { | |
| object: { | |
| assign: true, | |
| is: true, | |
| setPrototypeOf: true, | |
| keys: true, |
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
| npm install \ | |
| --registry=http://registry.npm.taobao.org \ | |
| --dist-url=http://npm.taobao.org/mirrors/node \ | |
| --build-from-source=v8-profiler\ | |
| --phantomjs_cdnurl=http://cnpmjs.org/downloads |
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
| var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; |
NewerOlder