Skip to content

Instantly share code, notes, and snippets.

:octocat:
Thinking about: Data & Collaboration

Idan Gazit idan

:octocat:
Thinking about: Data & Collaboration
View GitHub Profile
View gitcsvtest.ts
import Fiona from "https://deno.land/x/fiona/deno/index.js";
import { csvFormat, csvParse } from "https://cdn.pika.dev/d3-dsv";
const { writeTextFile, run, mkdir, stdout } = Deno;
const { now } = performance;
type Row = {
name: string;
date: Date;
bio: string;
p: number;
View helloargo.yml
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: artifact-passing-
spec:
entrypoint: artifact-example
templates:
- name: artifact-example
steps:
- - name: generate-artifact
View decaf_slack_theme.txt
#2D2525,#221C1C,#221C1C,#FFCB58,#221C1C,#968A8B,#99DF66,#FF935B,#221C1C,#968A8B
@idan
idan / Hospital Modeling Data.md
Created Mar 27, 2020
Data for Modeling COVID Things
View Hospital Modeling Data.md

Model and Underlying Data

Data about Hospitals

Total number of beds by state draws upon aggregates from this report from ESRI based on Definitive Healthcare.

View component.jsx.hbs
import './style.scss'
import React, { PropTypes } from 'react'
export default class {{ componentName }} extends React.Component {
static propTypes = {
};
static defaultProps = {
};
View clipActions.js
export function addClip (id) {
return (dispatch, getState) => {
// prevent adding duplicate clips
const state = getState()
if (state.Clips.has(id)) {
return
}
// create the entry with a asyncState of PENDING
dispatch({
View datastoreActions.js
import axios from 'axios'
import uuid from 'uuid'
import {datastoreConstants} from 'constants'
import * as backgroundTaskActions from './backgroundTaskActions'
export function fetchAllDatastores () {
return (dispatch, getState) => {
const taskId = uuid.v4()
dispatch(backgroundTaskActions.addTask(taskId, 'Fetching datastores…'))
axios.get('/graphql', {
@idan
idan / pattern.es6
Created Aug 3, 2015
ES6 object argument pattern
View pattern.es6
function foo ({required, optional='default!'} = {}) {
console.debug(`${required}, ${optional}`)
}
foo({required: 'lala', optional: 'lolo'})
// -> "lala, lolo"
foo({required: 'lala', optional: null})
// -> "lala, null"
@idan
idan / css_resources.md
Last active Aug 29, 2015 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.
View css_resources.md

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

You can’t perform that action at this time.