Skip to content

Instantly share code, notes, and snippets.

View josh-gree's full-sized avatar

Joshua Greenhalgh josh-gree

View GitHub Profile
[tool.poetry]
name = "prefect-flows"
version = "0.1.0"
description = ""
authors = ["josh-gree <blah>"]
packages = [
{include = "flows"}
]
[tool.poetry.dependencies]
use array2d::Array2D
use rand::prelude::*
#[derive(Debug)]
struct Board {
array: Array2D<bool>
}
impl Board {
fn new(n_rows: usize, n_cols: usize) -> Self {
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<!--
Hello Camper!
For now, the test suite only works in Chrome! Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding!
- The freeCodeCamp Team
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<!--
Hello Camper!
For now, the test suite only works in Chrome! Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding!
- The freeCodeCamp Team
@josh-gree
josh-gree / index.html
Created April 13, 2021 20:36
YANKEE CANDLE.
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js">
</script>
<header id="header">
<img
id="header-img"
class="logo-image"
src="https://s.clipartkey.com/mpngs/s/263-2635964_yankee-candle-logo-png.png"
alt="YANKee CANDLe"/>
We can't make this file beautiful and searchable because it's too large.
task_id,dag_id,execution_date,start_date,end_date,duration,state,try_number,hostname,unixname,job_id,pool,queue,priority_weight,operator,queued_dttm,pid,max_tries,executor_config,pool_slots,id,dag_id,execution_date,state,run_id,external_trigger,conf,end_date,start_date
cleanup_and_validation,type_5_jobtome,2020-01-01 14:00:00+00,2020-06-25 17:35:13.902196+00,2020-06-25 17:35:13.902213+00,<null>,upstream_failed,0,,root,<null>,default_pool,default,3,PandasGlueOperator,<null>,<null>,0,\x80049503000000000000007d942e,1,13,type_5_jobtome,2020-01-01 14:00:00+00,failed,scheduled__2020-01-01T14:00:00+00:00,False,<null>,2020-06-25 17:35:45.515867+00,2020-06-25 17:34:11.082214+00
store_cost,type_5_jobtome,2020-01-02 14:00:00+00,2020-06-25 17:37:21.431237+00,2020-06-25 17:37:21.431255+00,<null>,upstream_failed,0,,root,<null>,default_pool,default,1,StoreCostsOperator,<null>,<null>,0,\x80049503000000000000007d942e,1,27,type_5_jobtome,2020-01-02 14:00:00+00,failed,scheduled__2020-01-02T14:00:00+00:00,False,<null>,2020-06-25
A B C
1 2 3
4 5 6
@josh-gree
josh-gree / Foo.py
Last active January 29, 2020 21:06
def get_latest_file_from_sftp(*, local_file_location: str, config: dict) -> None:
host = config["host"]
password = config["password"]
username = config["username"]
base_folder = config["base_folder"]
conn = pysftp.Connection(host, username=username, password=password)
@josh-gree
josh-gree / index.html
Created May 4, 2019 16:36
Vue.js + d3.js (using virtual DOM)
<header>
<h1>Vue.js + d3.js</h1>
<span class="byline">Drawing charts in a purely Vue.js manner, instead of using DOM construction features of d3.js.<br /><a href="https://codepen.io/terrymun/full/peQpxJ/">See alternative example</a></span>
</header>
<section id="chart">
<d3__chart
:layout="layout"
:chart-data="chartData"
:axes="axes"></d3__chart>