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
if ( | |
document.getElementById("btnSignCommon-1") && | |
document.getElementById("btnSignCommon-2") | |
) { | |
document | |
.getElementById("btnSignCommon-1") | |
.addEventListener("click", function () { | |
window.location.href = "login.html"; | |
}); |
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
const readline = require("readline"); | |
const rl = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout, | |
}); | |
console.log("Game Started"); | |
const options = ["tas", "kagit", "makas"]; |
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" | |
) | |
type Item struct { | |
Name string | |
Price float64 | |
discount float64 |
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
```go | |
package main | |
import ( | |
"fmt" | |
) | |
type Item struct { | |
Name string | |
Price float64 |
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; | |
void swap(int * array, int index1, int index2) { | |
int temp = array[index1]; | |
array[index1] = array[index2]; | |
array[index2] = temp; | |
} | |
bool willMoveNext(int number, int nextNumber) { |
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
{ | |
"extends": [ | |
"next", | |
"eslint:recommended", | |
"next/core-web-vitals", | |
"eslint:recommended", | |
"plugin:@typescript-eslint/recommended", | |
"plugin:prettier/recommended" | |
], | |
"parser": "@typescript-eslint/parser", |
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
import React from "react"; | |
import {useSetThemeRelatedToSystem } | |
export default App = () => { | |
const {theme} = useSetThemeRelatedToSystem(); | |
return <div> {theme ? theme : "getting system theme" } </div> | |
} |
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
const setThemeRelatedToSystem = () => { | |
// ... rest of the function's code | |
} | |
// Plain JS | |
document.addEventListener("DOMContentLoad", () => { | |
setThemeRelatedToSystem(); | |
}) |
NewerOlder