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
// Used in https://jina.ai/tokenizer (Aug. 14th version) | |
// Define variables for magic numbers | |
const MAX_HEADING_LENGTH = 6; | |
const MAX_HEADING_CONTENT_LENGTH = 200; | |
const MAX_HEADING_UNDERLINE_LENGTH = 200; | |
const MAX_HTML_HEADING_ATTRIBUTES_LENGTH = 100; | |
const MAX_LIST_ITEM_LENGTH = 200; | |
const MAX_NESTED_LIST_ITEMS = 5; | |
const MAX_LIST_INDENT_SPACES = 7; | |
const MAX_BLOCKQUOTE_LINE_LENGTH = 200; |
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
""" | |
Small script to fix geometries of the first file argument | |
using the native QGIS processing algorithm. You may need | |
to adjust the path to you installation. | |
""" | |
import sys | |
sys.path.append('/usr/share/qgis/python/plugins') | |
from processing.core.Processing import Processing |
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
/** | |
* Cesium type definitions | |
* For use with Cesium v1.37.0 | |
* Created by Aigars Zeiza <https://github.com/Zuzon> | |
* Modified by Harry Nicholls <[email protected]> | |
* Updated for v1.37.0 by James Bromwell <https://github.com/Thw0rted> | |
*/ | |
declare module "cesium"{ | |
type RenderState = any; |
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
exports.fetch = function(load) { | |
var name = load.name; | |
return new Promise(function(resolve) { | |
var dojoName = convertToDojoModule(name); | |
window.require([dojoName], function(mod) { | |
SystemJS.register(dojoName, [], function (exp, idObj) { | |
return { | |
setters: [], | |
execute: function() { | |
exp("default", mod); |
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
launchctl unload /Library/LaunchAgents/org.macosforge.xquartz.startx.plist | |
sudo launchctl unload /Library/LaunchDaemons/org.macosforge.xquartz.privileged_startx.plist | |
sudo rm -rf /opt/X11* /Library/Launch*/org.macosforge.xquartz.* /Applications/Utilities/XQuartz.app /etc/*paths.d/*XQuartz | |
sudo pkgutil --forget org.macosforge.xquartz.pkg | |
# Log out and log in |
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
require.config({ | |
paths: { | |
/* other paths are omitted */ | |
'bootstrap': '../libs/bootstrap' | |
}, | |
shim: { | |
'bootstrap/affix': { deps: ['jquery'], exports: '$.fn.affix' }, | |
'bootstrap/alert': { deps: ['jquery'], exports: '$.fn.alert' }, | |
'bootstrap/button': { deps: ['jquery'], exports: '$.fn.button' }, | |
'bootstrap/carousel': { deps: ['jquery'], exports: '$.fn.carousel' }, |
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
#!/bin/bash | |
# | |
#Usage: | |
#1.) Install cygwin and make sure you select the following packages: | |
#- gcc-mingw | |
#- pkg-config | |
#- mingw-zlib1 | |
#- mingw-zlib-devel | |
# | |
#2.) Install the following Mono release package: "Mono for Windows, Gtk#, and XSP" |
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
/**************************************************************************** | |
* Author: Alberto Gutiérrez Jácome <[email protected]> | |
* Date: 16/09/2012 | |
* | |
* Compilation: javac KdTree.java | |
* Execution: not applicable | |
* Dependencies: Point2D.java RectHV.java StdDraw.java Queue.java | |
* | |
* Description: A mutable data type that uses a 2d-tree to represent a set of | |
* points in the unit square. A 2d-tree is a generalization of a BST to |
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
1. 生成keystore | |
注册在填写名子与姓氏时需要填写tomcat的主机ip地址 | |
keytool -genkey -v -alias tomcat -keyalg RSA -keystore tomcat.keystore -validity 365 | |
2. 准备生成 CA 的key | |
openssl genrsa -out myCA.key 2048 | |
3. 生成 CA | |
openssl req -x509 -new -key myCA.key -out myCA.cer -days 730 -subj /CN="Sencloudx Custom CA" | |
4. 准备从 CA 请求认证的请求文件 | |
keytool -certreq -alias tomcat -keystore tomcat.keystore -file server.csr | |
5. 从CA请求认证 |
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
REGEDIT4 | |
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes] | |
"Arial"="WenQuanYi Micro Hei" | |
"Comic Sans MS"="WenQuanYi Micro Hei" | |
"Courier"="WenQuanYi Micro Hei Mono" | |
"Courier New"="WenQuanYi Micro Hei Mono" | |
"Fixedsys"="WenQuanYi Micro Hei" | |
"Helv"="WenQuanYi Micro Hei" | |
"Helvetica"="WenQuanYi Micro Hei" |
NewerOlder