Various tweaks related to the Windows Registry
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
{ | |
"inbounds": [ | |
{ | |
"tag": "outlook-ws", | |
"port": 80, | |
"protocol": "vmess", | |
"settings": { | |
"clients": [ | |
{ | |
"id": "5b5b3c61-dfba-5cc2-b2c2-f02a199ae2be" |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Drawing; | |
using System.Windows.Forms; | |
namespace ShittyMouse | |
{ |
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 Sing99Bottles { | |
$total = 99 | |
Add-Type -AssemblyName System.speech | |
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer | |
$speak.selectvoice('Microsoft Zira Desktop') | |
$speak.rate = 4 | |
1..100 | ForEach-Object { | |
$Words = "$total bottles of beer on the wall, $total bottles of beer. Take one down and pass it around, $($total - 1) bottles of beer on the wall." | |
$speak.Speak($Words) | |
$total = $($total - 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 ntpath | |
def path_leaf(path): | |
head, tail = ntpath.split(path) | |
return tail or ntpath.basename(head) | |
if __name__ == '__main__': | |
path = '/content/My Drive/ocr_demo_test/act_data/Page_1.jpg' | |
print(path_leaf(path)) |
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
clear; clc; | |
n_dim = input('Nhap so chieu: '); | |
n_vector = input('Nhap so vecto: '); | |
if n_dim == 0 || n_vector == 0 | |
clc; | |
disp('Ma tran khong hop le'); | |
return; | |
end |