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
| -- mod-version:3 | |
| local core = require "core" | |
| local common = require "core.common" | |
| local config = require "core.config" | |
| local DocView = require "core.docview" | |
| local command = require "core.command" | |
| local keymap = require "core.keymap" | |
| local www = require "libraries.www" | |
| local json = require "libraries.dkjson" |
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 random, raylib | |
| randomize() | |
| type | |
| Unit = object | |
| pos: Vector2 | |
| hp: int | |
| let size = rand(5..22) |
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 socket | |
| import requests | |
| import re | |
| import binascii | |
| import hashlib | |
| def get_salt(ip): | |
| response = requests.get(f"http://{ip}/cgi/getParm", headers={"Referer": f"http://{ip}/"}) | |
| match = re.search(r'var ss="([^"]+)"', response.text) | |
| return match.group(1) |
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 tables, strutils, os | |
| type | |
| TinyDB* = object | |
| filename: string | |
| data: Table[string, string] | |
| proc init*(filename: string): TinyDB = | |
| result.filename = filename | |
| result.data = initTable[string, string]() |
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 std/[times, math, strformat] | |
| const | |
| SIZE = 50_000_000 | |
| proc initSeqs(): (seq[float32], seq[float32], seq[float32]) = | |
| var A = newSeq[float32](SIZE) | |
| var B = newSeq[float32](SIZE) | |
| var D = newSeq[float32](SIZE) | |
| for i in 0..<SIZE: |
OlderNewer