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 | |
| set -e | |
| REPOSITORY_URL="$1" | |
| if [ -z "$REPOSITORY_URL" ]; then | |
| echo "Error: Repository URL is required" | |
| echo "Usage: $0 <repository_url>" | |
| exit 1 | |
| fi |
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 | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 <input_file.png>" | |
| exit 1 | |
| fi | |
| input_file="$1" | |
| filename=$(basename -- "$input_file") | |
| name="${filename%.*}" |
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
| use std::sync::{Arc, Mutex, OnceLock}; | |
| trait CalculationFunction<T>: Fn() -> T + Send {} | |
| impl<T, F> CalculationFunction<T> for F where F: Fn() -> T + Send {} | |
| struct Calculation<T, F> | |
| where | |
| F: CalculationFunction<T>, | |
| { |
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
| use std::ffi::CString; | |
| use std::mem::forget; | |
| use wasmtime::{Instance, Module, Store}; | |
| // | |
| // Code of module which have to be compiled to wasm library | |
| // | |
| // use std::alloc::{alloc, Layout}; | |
| // use std::ffi::CString; | |
| // use std::mem::forget; |
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
| use futures::future::BoxFuture; | |
| #[tokio::main] | |
| async fn main() { | |
| let words = vec!["one", "two"]; | |
| let result = add(words, |word| { | |
| Box::pin(async { | |
| let mut kw = word; | |
| kw.push("three"); | |
| kw |
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
| #[allow(dead_code)] | |
| #[derive(Debug, Copy, Clone)] | |
| struct A<'text> { | |
| foo: &'text str, | |
| baz: i32, | |
| } | |
| fn ptr_to_struct(p: *const A) { | |
| let b = unsafe { *p }; // main part of this example! | |
| println!("{:#?}", b); |
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
| { | |
| "configurations": { | |
| "run": { | |
| "adapter": "vscode-node", | |
| "configuration": { | |
| "type": "node", | |
| "request": "launch", | |
| "name": "Jest Current File", | |
| "program": "${workspaceFolder}/node_modules/.bin/jest", | |
| "args": [ |
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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
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
| error_log = /dev/stdout | |
| log_errors = On | |
| display_errors = On | |
| display_startup_errors = On | |
| error_reporting = -1 | |
| xdebug.remote_enable = On | |
| xdebug.remote_autostart = On | |
| xdebug.remote_host = 192.168.137.111 #Your pc network address | |
| xdebug.remote_port = 9001 |
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
| version: "2" | |
| services: | |
| application: | |
| image: php | |
| environment: | |
| — PHP_IDE_CONFIG=serverName=app.local #this is main part. And yes this is whitout quotation marks - it's requiring - wroted by blood :). |
NewerOlder