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: GPL-3.0 | |
pragma solidity >=0.8.2 <0.9.0; | |
/** | |
* @title Storage | |
* @dev Store & retrieve value in a variable | |
* @custom:dev-run-script ./scripts/deploy_with_ethers.ts | |
*/ | |
contract C3Solana { |
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
async function switchN(){ | |
const provider = window.ethereum; | |
const binanceTestChainId = '0x61'; | |
if(!provider){ | |
console.log("Metamask is not installed, please install!"); | |
}else{ | |
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
pragma solidity ^0.8.0; | |
contract SlitherDemo{ | |
address public king; | |
uint public balance; | |
function claimThrone() external payable { | |
require(msg.value > balance, "Need to pay more to become the king"); | |
(bool sent, ) = king.call{value: balance}(""); |
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
public class MainActivity extends AppCompatActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
Hover.initialize(this);// Initialisation de Hover | |
final EditText numero = findViewById(R.id.edNumber); |
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
!#/bin/bash | |
start=$SECONDS #for duration | |
echo " installing apk ...." | |
log=log.txt | |
printf "" > $log | |
result=$(adb -d install -r livinggoods.apk) #installing apk on one device | |
imei=$(adb shell service call iphonesubinfo 1 | awk -F "'" '{print $2}' | sed '1 d'| tr -d '\n' | tr -d '.' | tr -d ' ') #IMEI | |
battery=$(adb shell dumpsys battery | grep level) #battery level |
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
val stringNumber = "100" | |
val intValue = stringNumber.toInt() |
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
val ticketPaye = true | |
val matchGagne = false | |
| |
val jhonSalaire = 5000 | |
val samSalaire = 4000 | |
| |
val gagnePlus = jhonSalaire > samSalaire// true |
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
val monString = " je suis une chaine de charactere" | |
val escapeString = "ceci est une chaine de charactere avec une nouvelle ligne \n" |
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
val multipleStringLignes = """ | |
la premeire ligne | |
la seconde ligne | |
la troisieme ligne""" |
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
val balance = 200 | |
val creditAlertMessage = " le solde de votre compte est de $balance" //le solde de votre compte est de 200 |
NewerOlder