inicio{
"host":"A29184E174EA7DEC73C2ADE86DF571",
"porta":"9A9382E77CEB"
}fim
$PathFromCBSLog = '\??\C:\WINDOWS\SysWOW64\\srmlib.dll'
$FileUnicodePath = $PathFromCBSLog.Replace('\??', '\\?')
$FileName = [System.IO.Path]::GetFileName($FileUnicodePath)
$ActualFileHash = Get-FileHash -Path $FileUnicodePath | Select-Object -ExpandProperty Hash
$ExpectedFileHash = '7b163daf659c1198e3a8c9acb7b2e7324e4c764599997bdea4286987f4533738'
$WinSxSFiles = [System.IO.Directory]::EnumerateFiles("$($env:windir)\WinSxS", $FileName, 'AllDirectories') | ForEach-Object { [System.IO.FileI
/**
* @param {number} n
* @return {number}
*/
var tribonacci = function(n) {
// Initialize an array with the base cases.
let trib = [0, 1, 1];
// If n is less than 3, return the nth number in the base cases.
if (n < 3) {
return trib[n];
}
// Calculate the nth Tribonacci number.
for (let i = 3; i <= n; i++) {
// The current Tribonacci number is the sum of the previous three numbers.
trib[i] = trib[i - 1] + trib[i - 2] + trib[i - 3];
}
// http://teste.com
// C:\Windows
// C:\Windows\
// C:\Windows\notepad.exe
// C:\Windows\virus.exe
function OnClick(clickData) {
DOpus.ClearOutput();
// --------------------------------------------------------
var cmd = clickData.func.command;
cmd.deselect = false; // Prevent automatic deselection
// --------------------------------------------------------
// --------------------------------------------------------
// CHECK IF THE CLIPBOARD CONTAINS TEXT
// --
SELECT s.name AS [Schema], t.name AS [Table], i.rowcnt AS [Rows]
FROM sysindexes AS i
INNER JOIN sysobjects AS o ON i.id = o.id
INNER JOIN sys.tables AS t ON t.object_id = o.id
INNER JOIN sys.schemas AS s ON s.schema_id = t.schema_id
WHERE i.indid < 2 AND OBJECTPROPERTY(o.id, 'IsMSShipped') = 0
ORDER BY s.name, t.name
## 當外接式硬碟格式是 ntfs 時,mac 要怎麼寫資料到 ntfs 格式的硬碟內?
#### 安裝支援 ntfs 套件
```
brew install --cask macfuse
brew install ntfs-3g-mac
```
裝完之後,查看硬碟資訊
diskutil list
```
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *2.0 TB disk2
1: Windows_NTFS macFUSE Volume 0 (nt... 2.0 TB disk2s1
```
#### 掛載它,需要 root 權限
```
sudo /usr/local/bin/ntfs-3g /dev/disk2s1 /Volumes/NT
$positions: (
static: 'static',
relative: 'relative',
absolute: 'absolute',
fixed: 'fixed',
stick: 'sticky'
);
$grid-breakpoints: (
xs: 0,
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px,
xxl: 1400px
);
@each $name, $position in $positions {
@each $modifier, $breakpoint in $grid-breakpoints {
@media screen and (min-width: #{$breakpoint}) {
.position-#{$modifier}-#{$name} {
position: #{$name} !important;
}
// OK
cmd.RunCommand("@confirm:O diretório / arquivo contido no clipboard não existe.|OK");
// Yes No
cmd.RunCommand("@confirm:Deseja continuar?|Yes|No");
// OK Cancel
cmd.RunCommand("@confirm:Os arquivos serão renomeados");
cmd.RunCommand("@confirm:Os arquivos serão renomeados|OK|Cancel");
var strFile_name = DOpus.Dlg.GetString("Informe o nome do arquivo:", "", "0", "&OK|&Cancel", "Novo arquivo");
// Check if the clipboard contains text
if (DOpus.GetClipFormat() == 'text') {
// Save the clipboard text in a variable called ClipboardData
var ClipboardData = DOpus.GetClip();
//DOpus.Output(ClipboardData);
}
# Imports and Settings
```python
import os
from dotenv import load_dotenv
from openai import OpenAI
load_dotenv()
client = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))
```
# Define Convenience Functions for Completion and Printing
```python
def complete(user_prompt, system_prompt):
completion = client.chat.completions.create(
model="gpt-3.5-turbo",
messages=[
{"role": "system", "content": system_prompt},
{"role": "user", "content": user_prompt}
]
)
def print_respo
function isURL(str) {
// Regular expression to match a URL
// Os caracteres ^ e $ fazem com que o regex retorne true apenas se a string inteira for uma URL, ou seja, não pode ter textos antes nem depois da URL.
var regex = /^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/;
// Test if the string matches the URL format
return regex.test(str);
}
function isWindowsPath(str) {
// Regular expression to match a Windows path
// Os caracteres ^ e $ fazem com que o regex retorne true apenas se a string inteira for um Path, ou seja, não pode ter textos antes nem depois do Path.
var regex = /^[a-zA-Z]:\\(?:[^\\/:*?"<>|\r\n]+\\)*[^\\/:*?"<>|\r\n]*$/;
// Test if the string matches the Windows path format
return regex.test(str);
}
// Clear file selection
cmd.deselect = true; // Ensure the command deselects files
cmd.RunCommand('Select NONE');
// Select a file
// Set the item focus to the selected file
cmd.RunCommand('Select arquivo.txt SETFOCUS');
$('#saveNewTasklist').on("click", function () {
const nestedQuery = '.nested-sortable';
const identifier = 'taskId';
const root = document.getElementById('tasks');
function serialize(tasks) {
var serialized = [];
var children = [].slice.call(tasks.children); // children == document property
/**
* [].slice.call() == Array.prototype.slice.call()
*
* call slice() as if it was a function of NodeList using call(). What slic
class Test {
constructor(el, options) {
this.el = el;
const defaultOptions = {
onHover: (element, e) => {
console.log(':)))', element, e);
},
};
this.options = { ...defaultOptions, ...options };
this.mouseOverHandler = this.handleMouseOver.bind(this); // Vytvoření odkazu na metodu handleMouseOver
}
init() {
this.el.addEventListener('mouseover', this.mouseOverHandler); // Přidání po