Import data json below to dynamic highlight config.
{
"light-time-8-5": {
"class": "light-time-8-5",
"color": "#E45858",
"regex": true,
"query": "(?<=\\s)(0?8|20):[3-5][0-9](:[0-5][0-9])?(?=(\\s|$))",
"mark": [
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> | |
<head> | |
<title><unifi txt="Redirector" /></title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<meta http-equiv="refresh" content="0;url=https://<YOUR CAPTIVE PORTAL URL>/<unifi var="mac" />/<unifi var="ap_mac" />"> | |
</head> | |
<body> | |
</body> | |
</html> |
# compile | |
g++ zlib.cpp -o zz -lz | |
# run | |
root@localhost:~# ./zz | |
Orignal string size: 43 | |
Original string: halloweeks halloweeks halloweeks halloweeks | |
-------------------- | |
Compressed string size: 22 |
Import data json below to dynamic highlight config.
{
"light-time-8-5": {
"class": "light-time-8-5",
"color": "#E45858",
"regex": true,
"query": "(?<=\\s)(0?8|20):[3-5][0-9](:[0-5][0-9])?(?=(\\s|$))",
"mark": [
/* gpxparse.c | |
Copyright (c) 2010, Jeremiah LaRocco jeremiah.larocco@gmail.com | |
Permission to use, copy, modify, and/or distribute this software for any | |
purpose with or without fee is hereby granted, provided that the above | |
copyright notice and this permission notice appear in all copies. | |
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
codontab = { | |
'TCA': 'S', # Serina | |
'TCC': 'S', # Serina | |
'TCG': 'S', # Serina | |
'TCT': 'S', # Serina | |
'TTC': 'F', # Fenilalanina | |
'TTT': 'F', # Fenilalanina | |
'TTA': 'L', # Leucina | |
'TTG': 'L', # Leucina | |
'TAC': 'Y', # Tirosina |
curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}' |
// Version 0.0.1 | |
module.exports = askChatWithPrompt; | |
function askChat(str, app) { | |
const prompt = encodeURI(str); | |
const chatViewEl = app.workspace.getLeavesOfType("surfing-view").find((item)=>{ return /chat\.openai\.com/.test(item?.view?.currentUrl)}).view.webviewEl; | |
chatViewEl.executeJavaScript(` | |
var htmlElement = document.querySelector("textarea"); | |
htmlElement.value = decodeURI("${ prompt }"); |
A commit should be a wrapper for related changes. For example, fixing two different bugs should produce two separate commits. Small commits make it easier for other developers to understand the changes and roll them back if something went wrong. With tools like the staging area and the ability to stage only parts of a file, Git makes it easy to create very granular commits.
Committing often keeps your commits small and, again, helps you commit only related changes. Moreover, it allows you to share your code more frequently with others. That way it‘s easier for everyone to integrate changes regularly and avoid having merge conflicts. Having large commits and sharing them infrequently, in contrast, makes it hard to solve conflicts.
IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装;PaaS提供语言环境和框架(可以自己选);SaaS只能使用开发好的软件(卖软件本身);BaaS一般类似于非关系数据库,但各家不通用,有时还有一些其它东西。