Skip to content

Instantly share code, notes, and snippets.

View cbjuan's full-sized avatar

Juan Cruz-Benito cbjuan

View GitHub Profile
@tcvieira
tcvieira / setupFastaiV1.md
Last active October 12, 2021 13:10
Setup Fast.ai v1 on Paperspace Fast.ai Template

Setup Fastai v1 on Paperspace

Machine

  • Create a Fast.ai machine from public templates w/ P4000 and public IP

Connect to the machine

  • $ source deactivate fastai
  • $ pip install virtualenv
@ale0xb
ale0xb / .block
Last active April 19, 2017 15:33
Spain Modified Hit Area
license: mit
@ale0xb
ale0xb / .block
Last active April 18, 2017 17:38
Spain
license: mit
@d3noob
d3noob / index.html
Last active April 30, 2024 06:05
Sankey Diagram with v4
<!DOCTYPE html>
<meta charset="utf-8">
<title>SANKEY Experiment</title>
<style>
.node rect {
cursor: move;
fill-opacity: .9;
shape-rendering: crispEdges;
}
@micahstubbs
micahstubbs / README.md
Created August 30, 2016 18:02
es2015 d3v4 d3-sankey demo
@evanwill
evanwill / dualpythonnotebook.md
Created June 3, 2016 19:16
add more kernels to python 3 jupyter notebooks with anaconda

this assumes you have installed Python 3 via Anaconda distribution.

Make Python 2 kernel available to Jupyter Notebook

  1. open a terminal and create a new python 2 environment: conda create -n py27 python=2.7
  2. activate the environment: linux source activate py27 or windows activate py27
  3. install the kernel in the env: conda install notebook ipykernel
  4. install the kernel for outside the env: ipython kernel install --user
  5. close the env: source deactivate
@MichaelCurrie
MichaelCurrie / autopep8 Travis-CI.md
Last active April 26, 2021 17:18
Automatically fix PEP-8 issues using Travis-CI

PEP-8 is a set of Python style recommendations. pep8 is a module that checks your .py file for violations. To make your Travis-CI build fail if you have any violations, you could add these lines to your .travis.yml:

before_install:
    - pip install pep8
    
script:
    # Run pep8 on all .py files in all subfolders
    # (I ignore "E402: module level import not at top of file"
    # because of use case sys.path.append('..'); import <module>)
@nbremer
nbremer / .block
Last active March 23, 2024 21:03
Radar Chart Redesign
height: 600
license: mit
@nbremer
nbremer / .block
Last active November 8, 2021 14:22
Stretched Chord Diagram - From educations to occupations
height: 780
license: bsd-2-clause
@ihuston
ihuston / Flask on CF.md
Last active February 11, 2023 19:16
Simple Flask application for Cloud Foundry

Simple Python Flask app on Cloud Foundry

This is a (very) simple Flask application that shows how the built-in Python buildpack detection on Cloud Foundry works.

To push to Cloud Foundry, log in and then use

$ cf push myapp-name

Python on Cloud Foundry