March 2014 update
This commit is contained in:
parent
09687c4926
commit
a25938f123
1846 changed files with 21876 additions and 5203 deletions
16
Task/Identity-matrix/AutoHotkey/identity-matrix.ahk
Normal file
16
Task/Identity-matrix/AutoHotkey/identity-matrix.ahk
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
msgbox % Clipboard := I(6)
|
||||
return
|
||||
|
||||
I(n){
|
||||
r := "--`n" , s := " "
|
||||
loop % n
|
||||
{
|
||||
k := A_index , r .= "| "
|
||||
loop % n
|
||||
r .= A_index=k ? "1, " : "0, "
|
||||
r := RTrim(r, " ,") , r .= " |`n"
|
||||
}
|
||||
loop % 4*n
|
||||
s .= " "
|
||||
return Rtrim(r,"`n") "`n" s "--"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue