Skip to content

Instantly share code, notes, and snippets.

View argenisleon's full-sized avatar

Argenis Leon argenisleon

View GitHub Profile
## Workflow Orchestration
### 1. Plan Node Default
- Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions)
- If something goes sideways, STOP and re-plan immediately - don't keep pushing
- Use plan mode for verification steps, not just building
- Write detailed specs upfront to reduce ambiguity
### 2. Subagent Strategy
- Use subagents liberally to keep main context window clean
The first time just create a new a password
$ jupyter notebook --generate-config
$ jupyter notebook password
$ conda deactivate && byobu
This is after creating the conda envs
$ conda activate rapids_blazing && jupyter lab --ip=0.0.0.0 --port=8888 --no-browser
Press F2
conda create --name dask_cudf_013 python=3.7
conda activate dask_cudf_013
conda install -c rapidsai -c nvidia -c conda-forge -c defaults rapids=0.13 python=3.7
conda install -c conda-forge jupyterlab
ipython kernel install --user --name=dask_cudf_013
jupyter notebook --ip=0.0.0.0 --port=8888
ip = "xxx.xxx.xxx.xxx"
port = "8888"
# headers = {'Authorization': 'Token 4a72cb6f71e0f05a6aa931a5e0ec70109099ed0c35f1d840'}
headers={}
# The token is written on stdout when you start the notebook
base = "http://"+ ip+ ":" + port
url = base + '/api'
response = requests.get(url,headers=headers)
kernel = json.loads(response.text)
@argenisleon
argenisleon / bumblebee.py
Last active October 11, 2019 19:00
bumblebee.py
# Be sure to install >> pip install optimuspyspark
from optimus import Optimus
op= Optimus(master="local[*]", comm = True)
df = op.load.csv("https://raw.githubusercontent.com/ironmussa/Optimus/master/examples/data/crime.csv")
df.send("crime")
from optimus import Optimus
op= Optimus(master="local[*]", comm = True)
df = op.load.csv("https://raw.githubusercontent.com/ironmussa/Optimus/master/examples/data/crime.csv")
df.send("crime")
pip install opyimuspyspark
<script src="https://widget.picnow.org/mustache.min.js"></script>
<script src="https://widget.picnow.org/collections.min.js"></script>
<script>
picnow_detail("5bf0836275ac1c07187a3298")
</script>
<div class="picnow-container-image-list picnow-main-container">
<div id="5bf0836275ac1c07187a3298"></div>
</div>
<script src="https://widget.picnow.org/mustache.min.js"></script>
<script src="https://widget.picnow.org/collections.min.js"></script>
<script>
picnow_detail_grid("5bed767caa67c26bbb917b5b")
</script>
<div id="5bed767caa67c26bbb917b5b" class="grid"></div>
@argenisleon
argenisleon / gist:ef5e730890477496cd22d9cc5a2f4da6
Created November 20, 2018 16:40
Picnow slider widget code
<!--WIDGET SLIDER-->
<link rel="stylesheet" href="https://widget.picnow.org/sss/sss.min.css" type="text/css" media="all">
<script src="https://widget.picnow.org/sss/sss.min.js"></script>
<script src="https://widget.picnow.org/mustache.min.js"></script>
<script src="https://widget.picnow.org/collections.min.js"></script>
<script>
picnow_collection_slider("5bed767caa67c26bbb917b5b")
</script>