cd /Library/Preferences
sudo rm com.sophos.sav.plist
cd /Library/Application\ Support/Sophos/cloud/Installer.app/Contents/MacOS/tools/
sudo ./InstallationDeployer —force_remove
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.7; | |
contract ElectionVote { | |
address public owner; | |
mapping(address => bool) adminLookup; | |
Candidate[] candidateLookup; | |
mapping(address => bytes32) vouter; |
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.7; | |
contract TodoList { | |
struct Task { | |
bytes32 id; | |
string title; | |
string description; |
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
import axios from "axios"; | |
(async () => { | |
const req = axios.create({ baseURL: "https://jsonplaceholder.typicode.com" }); | |
const json = (await req.get("/todos")).data | |
const newItems = [] | |
for(let i = 0; i < json.length; i++) { | |
if (json[i].completed === false) { | |
newItems.push(json[i]) | |
} |
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 sortMin2Max = (items: number[]): number[] => { | |
let temp = 0; | |
for (let i = 0; i < items.length; i++) { | |
for (let j = 0; j < items.length; j++) { | |
if (items[j] > items[j + 1]) { | |
temp = items[j]; | |
items[j] = items[j + 1]; | |
items[j + 1] = temp; | |
} |
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
// File: @openzeppelin/contracts/math/SafeMath.sol | |
// SPDX-License-Identifier: MIT | |
pragma solidity >=0.6.0 <0.8.0; | |
/** | |
* @dev Wrappers over Solidity's arithmetic operations with added overflow | |
* checks. | |
* |
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
/******************************\ | |
!!! คำเตือน โปรดระวัง !!! | |
การใช้บอท มีความเสี่ยงที่จะถูกแบนได้ | |
แนะนำให้สร้างบัญชีใหม่มาบอทโดยเฉพาะ | |
\******************************/ | |
class TLMBot { | |
constructor(minWaitTime = 5000, maxWaitTime = 15000) { | |
this.minWaitTime = minWaitTime; | |
this.maxWaitTime = maxWaitTime; |
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
startActivity(Intent(this, WebViewActivity::class.java).apply{ | |
putExtra(KEY_TITLE, getString("Title")) | |
putExtra(KEY_URL_WEBVIEW, URL) | |
}) | |
// AndroidManifest.xml | |
<uses-permission android:name="android.permission.INTERNET" /> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical"> | |
<androidx.cardview.widget.CardView | |
android:layout_width="match_parent" |
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
typealias WebViewClientUrlCallback = (url: String?) -> Unit | |
typealias WebChromeClientLoading = (progress: Int) -> Unit | |
class WebViewActivity : AppCompatActivity() { | |
private val mWebViewClient: WebViewClient by lazy { WebViewClient() } | |
private val mWebViewChromeClient: WebChromeClient by lazy { WebChromeClient() } | |
@SuppressLint("SetJavaScriptEnabled") | |
override fun onCreate(savedInstanceState: Bundle?) { |
NewerOlder