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
| for f in *; do; | |
| mv "$f" "${f}.png"; | |
| done |
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
| # selects a single genome proportionally based on its fitness using a | |
| # roulette wheel-style selection procedure | |
| def select_parents(src_pop): | |
| # pick random number between 0 and total fitness | |
| ran = random.uniform(0.0, total_fitness(src_pop)) | |
| # set a counter | |
| count = 0 | |
| for i in src_pop: | |
| # add fitness total from [3] position to counter |
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
| def normalize(lst): | |
| norm = [] | |
| tot = sum(lst) | |
| for i in lst: | |
| temp = ((i*100)/tot)/100 | |
| norm.append(temp*1) | |
| return norm |
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
| \b(\w+)\s+\1\b |
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
| data:text/html;charset=utf-8, <title>TextEditor</title><body contenteditable style="font-size:1rem;font-family:monaco;line-height:1.4;max-width:60rem;margin:0 auto;padding:4rem;" spellcheck="true"> |
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
| { | |
| "name": "App Name", | |
| "description": "App description", | |
| "version": "App Version", | |
| "manifest_version": 2, | |
| "icons": { | |
| "128": "Large Icon File", | |
| "16": "Small Icon File" | |
| }, | |
| "app": { |
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
| <div> | |
| <svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 600 800" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink"> | |
| <image height="800" width="600" xlink:href="../Images/name.jpg"></image> | |
| </svg> | |
| </div> |