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
FROM rust | |
WORKDIR /usr/src/fakesas | |
COPY . . | |
RUN cargo build --release | |
CMD ["./target/release/fakesas"] |
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.0; | |
/** | |
* @dev ERC-721 non-fungible token standard. | |
* See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md. | |
*/ | |
interface ERC721 | |
{ |
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
### A Pluto.jl notebook ### | |
# v0.12.16 | |
using Markdown | |
using InteractiveUtils | |
# This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error). | |
macro bind(def, element) | |
quote | |
local el = $(esc(element)) |
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
#include <string> | |
#include <algorithm> | |
#include <optional> | |
#include <vector> | |
#include <cassert> | |
using namespace std; | |
optional<string_view> solve(string_view chars, size_t assume_len) { | |
if (assume_len >= chars.size()) { |
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
cmake_minimum_required(VERSION 3.16) | |
project(main NONE) | |
add_custom_command( | |
OUTPUT main.o | |
DEPENDS main.asm | |
COMMAND nasm -f elf64 main.asm -o main.o | |
) | |
add_custom_command( | |
OUTPUT main |
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
players: [] | |
groups: | |
- name: players | |
permissions: | |
bukkit.command.help: true | |
bukkit.command.tps: true | |
coreprotect.help: true | |
coreprotect.inspect: true | |
coreprotect.lookup: true | |
essentials.afk: 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
#!/usr/bin/python | |
import sys | |
sys.path.insert(0, '../setval') | |
import setval as v | |
for x in range(32, 126): | |
xt = v.genpt(v.tryns(x)) | |
print "(" + chr(x) + xt + ")" |
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 Data.List | |
toListNums :: Int -> [Int] | |
chrToInt :: Char -> Int | |
chrToInt chr = read ([chr]) | |
toListNums num = if length rs == 4 then rs else 0:rs where rs = map chrToInt (show num) | |
ifDistinct :: (Eq a) => [a] -> Bool | |
ifDistinct [] = True | |
ifDistinct (x:px) = x `notElem` px && ifDistinct px |
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
/* | |
* Problem 1 | |
* | |
* Write three functions that compute the sum of the numbers in a given list using a for-loop, a while-loop, and recursion. | |
*/ | |
/** | |
* Sum a integer list using `for`. | |
* @param list array list to sum | |
* @return the sum. |
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
setInterval(() => {try {let ele=Array.prototype.slice.call(document.querySelectorAll('.jsx-2732537345.options-image-wrapper'),-1)[0];ele.click();ele.remove();document.querySelector('.contextMenu-menuItem-delete').dispatchEvent(new MouseEvent('mousedown', {bubbles: true})); | |
document.querySelector('.button-base-kind-danger').click()} catch (e) {}}, 200) |
NewerOlder