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
| ''' | |
| This is directly borrowed from Yannick Kilcher's work | |
| Amended to work on Collab and accept some alternate engine sizes | |
| ''' | |
| #/usr/bin/env python3 | |
| # Taken from here: https://github.com/huggingface/pytorch-pretrained-BigGAN | |
| # MIT License | |
| # |
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
| ''' | |
| This is directly borrowed from Yannick Kilcher's work | |
| Amended to work on Collab and accept some alternate engine sizes | |
| ''' | |
| from dall_e import map_pixels, unmap_pixels | |
| import numpy as np | |
| import torchvision | |
| import tempfile | |
| import imageio | |
| import random |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE policymap [ | |
| <!ELEMENT policymap (policy)+> | |
| <!ELEMENT policy (#PCDATA)> | |
| <!ATTLIST policy domain (delegate|coder|filter|path|resource) #IMPLIED> | |
| <!ATTLIST policy name CDATA #IMPLIED> | |
| <!ATTLIST policy rights CDATA #IMPLIED> | |
| <!ATTLIST policy pattern CDATA #IMPLIED> | |
| <!ATTLIST policy value CDATA #IMPLIED> | |
| ]> |
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
| #!/usr/bin/env python | |
| import re | |
| import sys | |
| import itertools | |
| import numpy as np | |
| from mogli import * |
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
| molecule = Mogli.Molecule() | |
| metal = Mogli.Atom() | |
| metal.symbol = "Fe" | |
| cyclopentadienyl = Mogli.Atom() | |
| cyclopentadienyl.symbol = "Cp" | |
| cyclopentadienyl.charge = -1 | |
| methyl = Mogli.Atom() |
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 python and mogli code a complete app whose output is the rendering of an oxygen molecule. Generate required xyz files via a shell script in bash. | |
| #!/bin/bash | |
| #PBS -l nodes=1:ppn=1 | |
| #PBS -l walltime=48:00:00 | |
| #PBS -l mem=1gb |
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
| q is there a nodejs library to download youtube subtitles? | |
| There is not currently a node.js library to download youtube subtitles. | |
| q and is https://libraries.io/npm/node-youtube-subtitles a node.js library to download youtube subtitles? | |
| No, this is not a node.js library. | |
| q yes it is. why do you say it is not? | |
| It appears that this library is no longer maintained and does not work with the current version of YouTube. |
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 youtube_dl | |
| import time | |
| import re | |
| import requests | |
| import os | |
| import sys | |
| # Get the arguments from the command-line except the filename | |
| argv = sys.argv[1:] | |
| Url = "" |
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 youtube_dl | |
| import time | |
| import re | |
| import requests | |
| import os | |
| def downSub(video_url,language): | |
| # check if valid youtube_link and remove playlist ID from url if exists. | |
| _temp = video_url.lower() | |
| if 'youtube.com' in _temp or 'youtu.be' in _temp: |
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 youtube_dl | |
| import time | |
| import re | |
| import requests | |
| import os | |
| def downSub(video_url,language): | |
| # check if valid youtube_link and remove playlist ID from url if exists. | |
| _temp = video_url.lower() | |
| if 'youtube.com' in _temp or 'youtu.be' in _temp: |