These modules are meant to be used with my dotfiles.
They live in $Profile\profile.d
or ~/.config/zsh/.zshrc.d
of their respective shell.
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
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 |
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 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 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 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 | |
{ |