Skip to content

Commit 8200393

Browse files
authored
Merge branch 'metafy-social:master' into master
2 parents cbacc19 + 61e5131 commit 8200393

14 files changed

Lines changed: 413 additions & 38 deletions

File tree

.github/workflows/greetings.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
2222
We at Metafy have some special rewards and swags for the top contributors in general repos and every contributor in web3 repos
2323
For being eligible for that, please authenticate yourself using this link:
24-
https://hacktoberfest.auth.metafy.social
24+
https://metafy.social/signup
2525
2626
Rewards : T-shirts & NFT ( for blockchain contributions )
2727
@@ -34,7 +34,7 @@ jobs:
3434
3535
We at Metafy have some special rewards and swags for the top contributors in general repos and every contributor in web3 repos
3636
For being eligible for that, please authenticate yourself using this link:
37-
https://hacktoberfest.auth.metafy.social
37+
https://metafy.social/signup
3838
3939
Rewards : T-shirts & NFT ( for blockchain contributions )
4040

README.md

Lines changed: 72 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,21 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
202202
<sub><b>Mohd Afzal Khan</b></sub>
203203
</a>
204204
</td>
205+
<td align="center">
206+
<a href="https://github.com/MSVelan">
207+
<img src="https://avatars.githubusercontent.com/u/92083282?v=4" width="100;" alt="MSVelan"/>
208+
<br />
209+
<sub><b>Null</b></sub>
210+
</a>
211+
</td>
212+
<td align="center">
213+
<a href="https://github.com/rahulkarda">
214+
<img src="https://avatars.githubusercontent.com/u/76204863?v=4" width="100;" alt="rahulkarda"/>
215+
<br />
216+
<sub><b>Rahul Karda</b></sub>
217+
</a>
218+
</td></tr>
219+
<tr>
205220
<td align="center">
206221
<a href="https://github.com/kriptonian1">
207222
<img src="https://avatars.githubusercontent.com/u/74916308?v=4" width="100;" alt="kriptonian1"/>
@@ -215,8 +230,7 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
215230
<br />
216231
<sub><b>Sourodip Kar</b></sub>
217232
</a>
218-
</td></tr>
219-
<tr>
233+
</td>
220234
<td align="center">
221235
<a href="https://github.com/varunKT001">
222236
<img src="https://avatars.githubusercontent.com/u/83509023?v=4" width="100;" alt="varunKT001"/>
@@ -244,7 +258,8 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
244258
<br />
245259
<sub><b>Dishant Nagpal</b></sub>
246260
</a>
247-
</td>
261+
</td></tr>
262+
<tr>
248263
<td align="center">
249264
<a href="https://github.com/Kunalp02">
250265
<img src="https://avatars.githubusercontent.com/u/95534553?v=4" width="100;" alt="Kunalp02"/>
@@ -258,22 +273,14 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
258273
<br />
259274
<sub><b>Mysterious-Owl</b></sub>
260275
</a>
261-
</td></tr>
262-
<tr>
276+
</td>
263277
<td align="center">
264278
<a href="https://github.com/PritamP20">
265279
<img src="https://avatars.githubusercontent.com/u/102867939?v=4" width="100;" alt="PritamP20"/>
266280
<br />
267281
<sub><b>Null</b></sub>
268282
</a>
269283
</td>
270-
<td align="center">
271-
<a href="https://github.com/rahulkarda">
272-
<img src="https://avatars.githubusercontent.com/u/76204863?v=4" width="100;" alt="rahulkarda"/>
273-
<br />
274-
<sub><b>Rahul Karda</b></sub>
275-
</a>
276-
</td>
277284
<td align="center">
278285
<a href="https://github.com/Tiagupt03">
279286
<img src="https://avatars.githubusercontent.com/u/98590820?v=4" width="100;" alt="Tiagupt03"/>
@@ -294,15 +301,15 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
294301
<br />
295302
<sub><b>Drk1rd</b></sub>
296303
</a>
297-
</td>
304+
</td></tr>
305+
<tr>
298306
<td align="center">
299307
<a href="https://github.com/lordvader501">
300308
<img src="https://avatars.githubusercontent.com/u/60027612?v=4" width="100;" alt="lordvader501"/>
301309
<br />
302310
<sub><b>Null</b></sub>
303311
</a>
304-
</td></tr>
305-
<tr>
312+
</td>
306313
<td align="center">
307314
<a href="https://github.com/rohitgarud21">
308315
<img src="https://avatars.githubusercontent.com/u/115347445?v=4" width="100;" alt="rohitgarud21"/>
@@ -337,15 +344,15 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
337344
<br />
338345
<sub><b>Nishant Pacharne</b></sub>
339346
</a>
340-
</td>
347+
</td></tr>
348+
<tr>
341349
<td align="center">
342350
<a href="https://github.com/thegeekyb0y">
343351
<img src="https://avatars.githubusercontent.com/u/84658112?v=4" width="100;" alt="thegeekyb0y"/>
344352
<br />
345353
<sub><b>Aditya Tiwari</b></sub>
346354
</a>
347-
</td></tr>
348-
<tr>
355+
</td>
349356
<td align="center">
350357
<a href="https://github.com/BassCoder2808">
351358
<img src="https://avatars.githubusercontent.com/u/65075935?v=4" width="100;" alt="BassCoder2808"/>
@@ -367,13 +374,21 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
367374
<sub><b>Mayuri Kolhe</b></sub>
368375
</a>
369376
</td>
377+
<td align="center">
378+
<a href="https://github.com/theadeyemiolayinka">
379+
<img src="https://avatars.githubusercontent.com/u/64863320?v=4" width="100;" alt="theadeyemiolayinka"/>
380+
<br />
381+
<sub><b>Olayinka Adeyemi</b></sub>
382+
</a>
383+
</td>
370384
<td align="center">
371385
<a href="https://github.com/parinzee">
372386
<img src="https://avatars.githubusercontent.com/u/30139280?v=4" width="100;" alt="parinzee"/>
373387
<br />
374388
<sub><b>Parinthapat P.</b></sub>
375389
</a>
376-
</td>
390+
</td></tr>
391+
<tr>
377392
<td align="center">
378393
<a href="https://github.com/iamrahul8">
379394
<img src="https://avatars.githubusercontent.com/u/72541381?v=4" width="100;" alt="iamrahul8"/>
@@ -387,15 +402,21 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
387402
<br />
388403
<sub><b>Sayan Roy</b></sub>
389404
</a>
390-
</td></tr>
391-
<tr>
405+
</td>
392406
<td align="center">
393407
<a href="https://github.com/Tanya-1109">
394408
<img src="https://avatars.githubusercontent.com/u/107848751?v=4" width="100;" alt="Tanya-1109"/>
395409
<br />
396410
<sub><b>Tanya Mohanka</b></sub>
397411
</a>
398412
</td>
413+
<td align="center">
414+
<a href="https://github.com/YashIndane">
415+
<img src="https://avatars.githubusercontent.com/u/53041219?v=4" width="100;" alt="YashIndane"/>
416+
<br />
417+
<sub><b>Yash Indane</b></sub>
418+
</a>
419+
</td>
399420
<td align="center">
400421
<a href="https://github.com/ambushneupane">
401422
<img src="https://avatars.githubusercontent.com/u/56769633?v=4" width="100;" alt="ambushneupane"/>
@@ -409,7 +430,8 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
409430
<br />
410431
<sub><b>Aswin Shailajan</b></sub>
411432
</a>
412-
</td>
433+
</td></tr>
434+
<tr>
413435
<td align="center">
414436
<a href="https://github.com/jrafaaael">
415437
<img src="https://avatars.githubusercontent.com/u/70046023?v=4" width="100;" alt="jrafaaael"/>
@@ -430,8 +452,7 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
430452
<br />
431453
<sub><b>Aarya Chopkar</b></sub>
432454
</a>
433-
</td></tr>
434-
<tr>
455+
</td>
435456
<td align="center">
436457
<a href="https://github.com/aimanaisha">
437458
<img src="https://avatars.githubusercontent.com/u/94171436?v=4" width="100;" alt="aimanaisha"/>
@@ -452,7 +473,8 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
452473
<br />
453474
<sub><b>Arijit Ghosh</b></sub>
454475
</a>
455-
</td>
476+
</td></tr>
477+
<tr>
456478
<td align="center">
457479
<a href="https://github.com/Danuragtiwari">
458480
<img src="https://avatars.githubusercontent.com/u/86867000?v=4" width="100;" alt="Danuragtiwari"/>
@@ -473,8 +495,14 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
473495
<br />
474496
<sub><b>Gokul_Zuzu</b></sub>
475497
</a>
476-
</td></tr>
477-
<tr>
498+
</td>
499+
<td align="center">
500+
<a href="https://github.com/KuSantosh100">
501+
<img src="https://avatars.githubusercontent.com/u/97560663?v=4" width="100;" alt="KuSantosh100"/>
502+
<br />
503+
<sub><b>KUMAR SANTOSH</b></sub>
504+
</a>
505+
</td>
478506
<td align="center">
479507
<a href="https://github.com/Manice18">
480508
<img src="https://avatars.githubusercontent.com/u/91601706?v=4" width="100;" alt="Manice18"/>
@@ -488,7 +516,8 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
488516
<br />
489517
<sub><b>Null</b></sub>
490518
</a>
491-
</td>
519+
</td></tr>
520+
<tr>
492521
<td align="center">
493522
<a href="https://github.com/LEO1612D">
494523
<img src="https://avatars.githubusercontent.com/u/46849277?v=4" width="100;" alt="LEO1612D"/>
@@ -516,8 +545,7 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
516545
<br />
517546
<sub><b>Riya Jaiswal</b></sub>
518547
</a>
519-
</td></tr>
520-
<tr>
548+
</td>
521549
<td align="center">
522550
<a href="https://github.com/sarthakroy2002">
523551
<img src="https://avatars.githubusercontent.com/u/47187468?v=4" width="100;" alt="sarthakroy2002"/>
@@ -531,7 +559,8 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
531559
<br />
532560
<sub><b>Shreejan Dolai</b></sub>
533561
</a>
534-
</td>
562+
</td></tr>
563+
<tr>
535564
<td align="center">
536565
<a href="https://github.com/Tejaswi-Kumar">
537566
<img src="https://avatars.githubusercontent.com/u/67323842?v=4" width="100;" alt="Tejaswi-Kumar"/>
@@ -559,8 +588,7 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
559588
<br />
560589
<sub><b>Arpit Bhardwaj</b></sub>
561590
</a>
562-
</td></tr>
563-
<tr>
591+
</td>
564592
<td align="center">
565593
<a href="https://github.com/artemis-i-guess">
566594
<img src="https://avatars.githubusercontent.com/u/65388018?v=4" width="100;" alt="artemis-i-guess"/>
@@ -574,7 +602,8 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
574602
<br />
575603
<sub><b>Null</b></sub>
576604
</a>
577-
</td>
605+
</td></tr>
606+
<tr>
578607
<td align="center">
579608
<a href="https://github.com/codeswithroh">
580609
<img src="https://avatars.githubusercontent.com/u/77570394?v=4" width="100;" alt="codeswithroh"/>
@@ -602,15 +631,22 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
602631
<br />
603632
<sub><b>Michele Mazza</b></sub>
604633
</a>
605-
</td></tr>
606-
<tr>
634+
</td>
607635
<td align="center">
608636
<a href="https://github.com/mer747">
609637
<img src="https://avatars.githubusercontent.com/u/84189502?v=4" width="100;" alt="mer747"/>
610638
<br />
611639
<sub><b>Null</b></sub>
612640
</a>
613641
</td>
642+
<td align="center">
643+
<a href="https://github.com/MubeenAhmad571">
644+
<img src="https://avatars.githubusercontent.com/u/56739319?v=4" width="100;" alt="MubeenAhmad571"/>
645+
<br />
646+
<sub><b>Mubeen Ahmad</b></sub>
647+
</a>
648+
</td></tr>
649+
<tr>
614650
<td align="center">
615651
<a href="https://github.com/nabroleonx">
616652
<img src="https://avatars.githubusercontent.com/u/84567489?v=4" width="100;" alt="nabroleonx"/>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## Caeser Cipher files ADDED #348
2+
3+
## Caeser Cipher
4+
Easilly Generate Caecer Cipher equivalent for any text
5+
6+
7+
## Installation
8+
- Clone the repo
9+
- download the requirements
10+
- run `python cc.py`

scripts/Caeser_Cipher_sage/cc.py

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# @author https://github.com/theadeyemiolayinka
2+
3+
from statistics import mode
4+
5+
6+
class Caesar():
7+
8+
def __init__(self):
9+
self.LETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10+
self.translated = ''
11+
12+
def __crypt(self, mode):
13+
for symbol in self.message.upper():
14+
if symbol in self.LETTERS:
15+
num = self.LETTERS.find(symbol)
16+
if mode == 'encrypt':
17+
num = num + self.key
18+
elif mode == 'decrypt':
19+
num = num - self.key
20+
21+
if num >= len(self.LETTERS):
22+
num = num - len(self.LETTERS)
23+
elif num < 0:
24+
num = num + len(self.LETTERS)
25+
26+
self.translated = self.translated + self.LETTERS[num]
27+
else:
28+
self.translated = self.translated + symbol
29+
30+
return self.translated
31+
32+
def encrypt(self, message, key=0):
33+
self.translated = ''
34+
self.key = key
35+
self.message = message
36+
return self.__crypt('encrypt')
37+
38+
def decrypt(self, message, key=0):
39+
self.translated = ''
40+
self.key = key
41+
self.message = message
42+
return self.__crypt('decrypt')
43+
44+
def invokeCipher(cipher, key, text, e_mode):
45+
if e_mode == 'E' or e_mode == 'e':
46+
print('\n====================RESULT====================')
47+
return cipher.encrypt(text, key)
48+
elif e_mode == 'D' or e_mode == 'd':
49+
print('\n====================RESULT====================')
50+
return cipher.decrypt(text, key)
51+
else:
52+
print('Ivalid mode.')
53+
n_mode = str(input("Enter mode: [E] for encryption and [D] for decryption:\n>"))
54+
return invokeCipher(cipher, key, text, n_mode)
55+
56+
cipher = Caesar()
57+
key = int(input('Enter encryption key:\n>'))
58+
text = str(input('Enter text:\n>'))
59+
e_mode = str(input("Enter mode: [E] for encryption and [D] for decryption:\n>"))
60+
61+
print(invokeCipher(cipher, key, text, e_mode))
62+
print('==============================================')

scripts/Confusion_Matrix/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
The function makes a labelled confusion matrix comparing predictions and ground truth labels.
2+
3+
If classes is passed, confusion matrix will be labelled, if not, integer class values will be used.
4+
5+
Args:
6+
7+
* `y_true`: Array of truth labels (must be same shape as y_pred).
8+
* `y_pred`: Array of predicted labels (must be same shape as y_true).
9+
* `classes`: Array of class labels (e.g. string form). If `None`, integer labels are used.
10+
* `figsize`: Size of output figure (default=(10, 10)).
11+
* `text_size`: Size of output figure text (default=15).
12+
* `norm`: normalize values or not (default=False).
13+
* `savefig`: save confusion matrix to file (default=False).
14+
15+
Returns: A labelled confusion matrix plot comparing y_true and y_pred.
16+
17+
### Example usage:
18+
19+
> """make_confusion_matrix(y_true=test_labels, # ground truth test labels
20+
y_pred=y_preds, # predicted labels
21+
classes=class_names, # array of class label names
22+
figsize=(15, 15),
23+
text_size=10)"""
24+
25+
#### CODE BY ZeroToMastery TensorFlow course.

0 commit comments

Comments
 (0)