This gist provides the learning-python3.ipynb notebook file, which can be viewed and edited in a Jupyter Notebook server to learn Python 3.
Once you load the notebook file to your local jupyter server, you can edit any
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.8.8/brython.js" integrity="sha256-rA89wPrTJJQFWJaZveKW8jpdmC3t5F9rRkPyBjz8G04=" crossorigin="anonymous"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.8.8/brython_stdlib.js" integrity="sha256-Gnrw9tIjrsXcZSCh/wos5Jrpn0bNVNFJuNJI9d71TDs=" crossorigin="anonymous"></script> |
This gist provides the learning-python3.ipynb notebook file, which can be viewed and edited in a Jupyter Notebook server to learn Python 3.
Once you load the notebook file to your local jupyter server, you can edit any
This works in a python 3.6 environment with bokeh and flask installed. To use this you need the following directory structure:
app/
- templates/
- hello.html
- bokeh-slider.py
- hello.py
After that you need to open two terminals at app/, in the first one you need to run the bokeh server with the command:
| #!/usr/bin/python3 | |
| """ Demonstrating APScheduler feature for small Flask App. """ | |
| from apscheduler.schedulers.background import BackgroundScheduler | |
| from flask import Flask | |
| def sensor(): | |
| """ Function for test purposes. """ | |
| print("Scheduler is alive!") |
| import redis | |
| import threading | |
| class Listener(threading.Thread): | |
| def __init__(self, r, channels): | |
| threading.Thread.__init__(self) | |
| self.redis = r | |
| self.pubsub = self.redis.pubsub() | |
| self.pubsub.subscribe(channels) | |
| # web_page_logger.py | |
| import logging | |
| class WebPageHandler(logging.Handler): | |
| def __init__(self): | |
| logging.Handler.__init__(self) | |
| self.messages = [] | |
| def emit(self, record): |
| /** | |
| * Google Apps Script - List all files & folders in a Google Drive folder, & write into a speadsheet. | |
| * - Main function 1: List all folders | |
| * - Main function 2: List all files & folders | |
| * | |
| * Hint: Set your folder ID first! You may copy the folder ID from the browser's address field. | |
| * The folder ID is everything after the 'folders/' portion of the URL. | |
| * | |
| * @version 1.0 | |
| * @see https://github.com/mesgarpour |
| #!/usr/bin/perl | |
| # Create index.html with a list of all files. | |
| # Written by Ilya Zverev, licensed WTFPL. | |
| use strict; | |
| use POSIX qw(strftime); | |
| use HTML::Template; | |
| use File::Basename; | |
| use Getopt::Long; |
| """ | |
| VCF.py | |
| Kamil Slowikowski | |
| October 30, 2013 | |
| Read VCF files. Works with gzip compressed files and pandas. | |
| Note: This module ignores the genotype columns because | |
| I didn't need them at the time of writing. |
| // Module dependencies | |
| var express = require('express'), | |
| mysql = require('mysql'); | |
| // Application initialization | |
| var connection = mysql.createConnection({ | |
| host : 'localhost', | |
| user : 'root', |