This file contains 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::{OsStr, OsString}; | |
let as_ref1: OsString = OsString::from(OsString::from("stellar contract build")); | |
assert_eq!("stellar contract build", as_ref1); |
This file contains 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
$ curl --help | |
Usage: curl [options...] <url> | |
--abstract-unix-socket <path> Connect via abstract Unix domain socket | |
--alt-svc <file name> Enable alt-svc with this cache file | |
--anyauth Pick any authentication method | |
-a, --append Append to target file when uploading | |
--basic Use HTTP Basic Authentication | |
--cacert <file> CA certificate to verify peer against | |
--capath <dir> CA directory to verify peer against | |
-E, --cert <certificate[:password]> Client certificate file and password |
This file contains 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
fn miniMaxSum(arr: &[i32]) { | |
let len = arr.len(); | |
let mut list: Vec<i64> = vec![]; | |
for n in 0..len { | |
let &sum = &arr.iter() | |
.enumerate() | |
.filter(|(index, &y)| !index.eq(&n)) | |
.map(|(i, &y)| i64::from(y)) |
This file contains 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
65214908 |
This file contains 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
300068107 | |
621903189 |
This file contains 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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.17; | |
contract Primitives { | |
bool public boo = true; | |
/* | |
uint stands for unsigned integer, meaning non negative integers | |
different sizes are available | |
uint8 ranges from 0 to 2 ** 8 - 1 |
This file contains 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
gid:S8rNiPpqbqjzkYrsk6yH7f |
This file contains 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
const path = require("path"); | |
const HDWalletProvider = require("@truffle/hdwallet-provider"); | |
const mnemonic = ""; | |
module.exports = { | |
// See <http://truffleframework.com/docs/advanced/configuration> | |
// to customize your Truffle configuration! | |
contracts_build_directory: path.join(__dirname, "client/src/contracts"), | |
networks: { |
This file contains 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
open -na Google\ Chrome --args --user-data-dir=/tmp/temporary-chrome-profile-dir --disable-web-security --incognito --media-cache-size=1 --disk-cache-size=1 --new-window --allow-insecure-localhost --ignore-certificate-errors-spki-list --unsafely-treat-insecure-origin-as-secure --aggressive-cache-discard --cors-exempt-headers |
This file contains 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
@Override | |
public String toString() { | |
return lineSeparator() + Arrays.stream(matrix) | |
.map(a -> Arrays.toString(a) + lineSeparator()) | |
.collect(Collectors.joining(lineSeparator())); | |
} |
NewerOlder