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
set UnixPath to POSIX path of (path to me as text) | |
set jarPath to UnixPath & "mars.jar" | |
set iconPath to UnixPath & "/Contents/Resources/applet.icns" | |
set runMars to UnixPath & "runMars" | |
set unameM to do shell script "uname -m" | |
set unameA to do shell script "uname -a" | |
# Detect architecture | |
if (unameM contains "x86_64") then | |
if (unameA contains "ARM64") then |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBFvemhcBEAD6aviG1i3EdgHCMlinIFytaih72WN1CMlAu0ToS2BEockYwpPd | |
w5H8A38R6mhvawNHutCMdpbtK8XlFElkXDnZVo07Bkc8j6/m/aukqDSgxosN29HU | |
B5huXCuKvk3UArNQ/Bp3MLKnwRMtyURn4BXqPR4dTTKq2FuZgfYUMA3hlWN1+yLU | |
0F9HODTAJT4d0oRHKCNf3b0jrtjEqoisNltkjmuujaQBpkV1cGO2fODg4hW7HBr+ | |
8tj2AhyOQfk+UgJTcga9jzF/vnOOcZvzJaA46aTHq5u44KCC8zBbw3Yq2yb1IloN | |
g6iwPRGJSSwp4sA6SL66xPTfz/RRYuxok46hFcVpQMZyvAnQLM8O3gD5PH7rUi21 | |
FqbdUU7rA9vnj14rkr8dcbsV36zGB4t0VlaBBa2COSXq1qL1DUCnkiSEDKRDVQgR | |
jiP+6pdNsf2z9iXrdsTMChxBRfp6B78KzUZ2vcKgNu6SdN26Oj0HAsfQ4pyQzuTG |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<title>嘿嘿嘿嘿嘿嘿</title> | |
<meta name="description" content="SaltedFish Network Status" /> | |
<link href="https://fonts.googleapis.com/css?family=Inconsolata:400,700&subset=latin-ext,vietnamese"rel="stylesheet" /> | |
<style> |
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
/* | |
* This code is intended to use with Arduinix Shield | |
* | |
* 2019-12-22: Basic functionalities by Kay Lin | |
* | |
* This is free and unencumbered software released into the public domain. | |
* | |
* Anyone is free to copy, modify, publish, use, compile, sell, or | |
* distribute this software, either in source code form or as a compiled | |
* binary, for any purpose, commercial or non-commercial, and by any |
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/env run-cargo-script | |
//! USAMTS - 3/2/31 | |
//! | |
//! ```cargo | |
//! [dependencies] | |
//! num = "~0.2" | |
//! ``` | |
const LIMIT: u128 = 100; | |
const NUM_THREADS: usize = 8; |
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 HTMLResponse = `<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="description" content="白学家关起来"> | |
<title>白学家关起来</title> | |
</head> | |
<body style="margin:0;padding:0;"> |
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/env run-cargo-script | |
//! A verification of the question with boxes and balls. | |
//! | |
//! ```cargo | |
//! [dependencies] | |
//! rand = "0.6" | |
//! num_cpus = "1.10" | |
//! ``` | |
extern crate rand; |
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
[Unit] | |
Description=Telegram nickname updater | |
After=network-online.target | |
[Service] | |
User=yourname | |
Type=oneshot | |
WorkingDirectory=/path/to/updater | |
ExecStart=/path/to/updater/venv/bin/python3 /path/to/updater/updater.py |
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/env python3 | |
# -*- encoding: utf-8 -*- | |
import time | |
FIRST_NAME = '咸鱼' | |
LAST_NAME = '@ %H:%M GMT' # Follow the rules of Python's strftime | |
START_TIME = time.time() |
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/env python3 | |
# -*- encoding: utf-8 -*- | |
# Telegram Spammer as a Service - Test how fast your anti-spam bot is | |
# Copyright (C) 2018 Kay Lin <[email protected]> | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
NewerOlder