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
| "codeHelper.username": { | |
| "type": "string", | |
| "default": "", | |
| "description": "Username for API authentication." | |
| }, | |
| "codeHelper.password": { | |
| "type": "string", | |
| "default": "", | |
| "description": "Password for API authentication." | |
| } |
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
| async provideInlineCompletionItems(document, position, context, token) { | |
| console.log('provideInlineCompletionItems triggered'); | |
| // Read the configuration settings | |
| const config = vscode.workspace.getConfiguration('codeHelper'); | |
| const maxToGenerate = config.get<number>('maxToGenerate') || 128; | |
| const temperature = config.get<number>('temperature') || 0.6; | |
| const modelName = config.get<string>('modelName') || 'default_model'; | |
| // ... |
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
| { | |
| "enabledApiProposals": [ | |
| "inlineCompletionsAdditions" | |
| ], | |
| "name": "code-helper", | |
| "displayName": "Code Helper", | |
| "description": "Sample showing how to implement an inline completion provider", | |
| "version": "0.0.1", | |
| "publisher": "apurer", | |
| "repository": "https://github.com/Microsoft/vscode-extension-samples", |
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
| package main | |
| import ( | |
| "fmt" | |
| "net" | |
| "net/http" | |
| "sync" | |
| "time" | |
| ) |
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
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "sync" | |
| "time" | |
| ) | |
| type Task struct { |
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
| package main | |
| import "fmt" | |
| // Product contains the information about a product | |
| type Product struct { | |
| Name string | |
| Price int | |
| Quantity int | |
| } |
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 | |
| mkdir ~/Development/ | |
| cd ~/Development/ | |
| wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh -P ~/Development/ | |
| bash ~/Development/Miniconda3-latest-MacOSX-arm64.sh -b -p $HOME/miniconda | |
| source ~/miniconda/bin/activate | |
| conda install -c apple tensorflow-deps | |
| python -m pip install tensorflow-macos | |
| python -m pip install tensorflow-metal | |
| python -m pip install numpy --upgrade |
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
| package main | |
| import ( | |
| "crypto/tls" | |
| "fmt" | |
| "net" | |
| "time" | |
| "io/ioutil" | |
| "log" |
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
| #include <iostream> | |
| using namespace std; | |
| int main () { | |
| unsigned int T; | |
| unsigned long int N; | |
| unsigned long int K; | |
| unsigned long int AI; |
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
| package main | |
| import ( | |
| "crypto/tls" | |
| "crypto/x509" | |
| "fmt" | |
| "io" | |
| "log" | |
| ) |