Skip to content

Instantly share code, notes, and snippets.

View sbassi's full-sized avatar

Sebastian Bassi sbassi

View GitHub Profile
from bokeh.plotting import figure, show
from pandas import read_csv
from bokeh.models.markers import marker_types
from bokeh.transform import factor_cmap, factor_mark
df = read_csv('samples/fishdata.csv')
all_markers = [mt for mt in marker_types]
SPECIES = list(set(df['species']))
MARKERS = all_markers[:len(SPECIES)]
from bokeh.plotting import figure, output_file, show
from pandas import read_csv
df = read_csv('../samples/fishdata.csv')
p = figure(plot_height=600, plot_width=700,
title = 'Metabolic variations based on 1H NMR profiling of fishes')
p.xaxis.axis_label = 'Principal Component 1: 35.8%'
p.yaxis.axis_label = 'Principal Component 2: 15.1%'
p.scatter('PC1', 'PC2', source=df, size=12, fill_alpha=0.3)
Superintendent Stephens superintendent@berkeley.net via spe.schoolmessenger.com
8:49 PM (13 minutes ago)
to me
Dear Berkeley Community Members,
<este mensaje se encuentra en español a continuación>
As you may know, many local school districts are choosing to close schools, beginning next week, in order to address concerns about the spread of the coronavirus. I’m writing to let you know that Berkeley Unified will close our preschools, elementary and middle schools, as well as Berkeley Adult School, starting on Monday, March 16.
We have decided to cancel classes for our high school students sooner, and we apologize for the short notice, but as of Friday, March 13, all high school classes will be closed, so that high school staff can have time to work on options for students to do home learning while they are away from school.
@sbassi
sbassi / conv.py
Last active February 5, 2020 22:11
# License:
# Copyright 2020 Toyoko LLC
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR T
@sbassi
sbassi / get all s3
Last active February 5, 2020 22:11
# License:
# Copyright 2020 Toyoko LLC
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR T
@sbassi
sbassi / gist:d55dd89c29c5e67ad0cceb6e2f9745ff
Created December 7, 2019 18:55
installing Jupyter notebook
C:\Users\Administrator>jupyter notebook
[I 18:51:07.103 NotebookApp] Writing notebook server cookie secret to C:\Users\Administrator\AppData\Roaming\jupyter\runtime\notebook_cookie_secret
Traceback (most recent call last):
File "c:\users\administrator\appdata\local\programs\python\python38\lib\runpy.py", line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\administrator\appdata\local\programs\python\python38\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\Scripts\jupyter-notebook.EXE\__main__.py", line 9, in <module>
File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\jupyter_core\application.py", line 268, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
Good afternoon BHS Families,
I want to provide you with an update on the developing Climate Strike plans since I last wrote on Friday 9/13. Some things have not changed: our understanding remains that students will meet at 8:30 in Civic Center Park, and along with any other supporting adults, travel via BART to the location of the rally in San Francisco. What has changed is that over the course of the last week, we have been monitoring the number of planned staff absences, and we will have a large number of staff out tomorrow, about half of which are covered by substitutes. We simply do not have enough substitutes to cover on a day like this, and even with support from district office staff, we know for certain that it will not be a business-as-usual day at BHS. We have made plans to open the Donahue Gym, Library, and Little Theater throughout the day, and will of course make sure that students are safe and supervised. But I want to be clear that many classes tomorrow will not be proceeding as they normal
from flask import Flask, request
import graphene
import json
app = Flask(__name__)
class Query(graphene.ObjectType):
hello = graphene.String(
name=graphene.Argument(graphene.String, default_value="stranger"),
age=graphene.Argument(graphene.Int)
Requirements:
Undergraduate or graduate degrees in Computer Science, Software Engineering or relevant experience.
3+ years of experience implementing or supporting RWD-based sites
1+ years of experience with popular React.js workflows (such as Flux or Redux)
1+ years of experience with data structure libraries (e.g., Immutable.js)
1+ years of experience with common front-end development tools such as Babel, Webpack, NPM, etc.
1+ years of Opensource contributions experience (Preferred)
1+ years of real Fintech development experience (academic or practical) (Preferred)
Expert level with JavaScript frameworks such as React.js. Knowledge of isomorphic React is a plus
Ubuntu 16.04
$ pip3 install --upgrade -r requirements.txt
Ignoring colorama: markers 'sys_platform == "win32"' don't match your environment
Ignoring pypiwin32: markers 'sys_platform == "win32"' don't match your environment
Collecting aiohttp==3.3.2 (from -r requirements.txt (line 1))
Could not find a version that satisfies the requirement aiohttp==3.3.2 (from -r requirements.txt (line 1)) (from versions: 0.1, 0.2, 0.3, 0.4, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.5.0, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.7.0, 0.7.1, 0.7.2, 0.7.3, 0.8.0, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.10.0, 0.10.1, 0.10.2, 0.11.0, 0.12.0, 0.13.0, 0.13.1, 0.14.0, 0.14.1, 0.14.2, 0.14.3, 0.14.4, 0.15.0, 0.15.1, 0.15.2, 0.15.3, 0.16.0, 0.16.1, 0.16.2, 0.16.3, 0.16.4, 0.16.5, 0.16.6, 0.17.0, 0.17.1, 0.17.2, 0.17.3, 0.17.4, 0.18.0, 0.18.1, 0.18.2, 0.18.3, 0.18.4, 0.19.0, 0.20.0, 0.20.1, 0.20.2, 0.21.0, 0.21.1, 0.21.2, 0.21.4, 0.21.5, 0.21.6, 0.22.0a0, 0.22.0b0, 0.22.0b1, 0.22.0b2, 0.22.0b3, 0.22.0b4, 0.22.0b5, 0.22.0b6,