System: Fedora 43 Linux Desktop Hardware: Intel Core Ultra 7 268V (Meteor Lake) with NPU, Intel Arc iGPU, NVIDIA RTX 4060 Laptop GPU Setup Date: 2026-01-10 Author: Claude Code Version: 2.0 - Comprehensive Edition Purpose: Run 4 independent Ollama instances simultaneously on different hardware accelerators for optimal power/performance/cost flexibility
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <div class="row"> | |
| <div class="col-lg-12"> | |
| <!-- This is where we are going to put the graph --> |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <div class="row"> | |
| <div class="col-lg-12"> | |
| <!-- This is where we are going to put the graph --> |
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
| // To see this run, you first stub out these imports. Then put the file in a Uint8Array. | |
| // let slice = new Slice(array); | |
| // let font = new OTFFont(slice); | |
| // Then you can call methods like font.drawText(canvasContext, ) | |
| // | |
| // | |
| import { ICanvasContext } from "./ICanvasContext" | |
| import { log as Log } from "./log" | |
| const log = Log.create("OPENTYPE"); |
Sometimes, debugging with console.log is not enough to find out what is
happening in the code, as console.log prints only plain objects but neither
functions nor objects with circular references. Besides, it's possible you
may need to know the context and flow of the code.
Read more about debugging with VS Code in VS Code: Debugging.
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
| // Component example | |
| // ContentWrapper.jsx | |
| import React from "react"; | |
| import Main from "./Main"; | |
| import { withRouter } from "react-router-dom"; | |
| const ContentWrapper = ({ children, match }) => ( | |
| <Main> | |
| <p>Match id: {match.params.id}</p> | |
| {children} |
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
| // polyfill for event.offsetX/offsetY | |
| // Firefox is the only browser that doesn't support it (IE has since 4) | |
| (function() { | |
| var evt = document.createEvent('MouseEvent'); | |
| if (evt.offsetX === void 0) { | |
| Object.defineProperties(MouseEvent.prototype, { | |
| 'offsetX': { | |
| get: function() { | |
| return this.layerX - this.target.offsetLeft; | |
| } |
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
| CREATE PROCEDURE [dbo].[usp_CreateTypeFromTable] @TableName SYSNAME, | |
| @TypeName SYSNAME | |
| AS | |
| BEGIN | |
| DECLARE @sql NVARCHAR(MAX) = N''; | |
| SELECT @sql = @sql + N',' + CHAR(13) + CHAR(10) + CHAR(9) + | |
| QUOTENAME(c.name) + ' ' + s.name + | |
| IIF(LOWER(s.name) LIKE '%char', | |
| '(' + |
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
| $('#GetFile').on('click', function () { | |
| $.ajax({ | |
| url: 'https://s3-us-west-2.amazonaws.com/s.cdpn.io/172905/test.pdf', | |
| method: 'GET', | |
| xhrFields: { | |
| responseType: 'blob' | |
| }, | |
| success: function (data) { | |
| var a = document.createElement('a'); | |
| var url = window.URL.createObjectURL(data); |
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
| [Fact] | |
| public void First() | |
| { | |
| var tokenHandler = new JWTSecurityTokenHandler(); | |
| var symmetricKey = GetRandomBytes(256/8); | |
| var now = DateTime.UtcNow; | |
| var tokenDescriptor = new SecurityTokenDescriptor | |
| { | |
| Subject = new ClaimsIdentity(new Claim[] |
NewerOlder