This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main exposing (..) | |
-- Using let..in, newWhatever and inline functions | |
import Dict exposing (Dict) | |
type alias Model = | |
{ something : String | |
, somethingElse : String |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xs, { Stream } from 'xstream'; | |
import { initModule, MyMsg } from './module_injecting'; | |
// Stuff | |
init( | |
xs.create({ | |
start: function(listener) { | |
someSource$.subscribe(msg => { | |
// do stuff with someSource$ to get it in shape |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>PouchDB Replication</title> | |
</head> | |
<body> | |
<script src="https://unpkg.com/[email protected]/dist/pouchdb.js"></script> | |
<script src="https://unpkg.com/[email protected]/dist/pouchdb.memory.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import styled, { css } from 'emotion/react' | |
import { space, width, fontSize, color, responsiveStyle } from 'styled-system' | |
export const display = responsiveStyle('display') | |
export const flex = responsiveStyle('flex') | |
export const order = responsiveStyle('order') | |
const wrap = responsiveStyle('flex-wrap', 'wrap', 'wrap') | |
const direction = responsiveStyle('flexDirection', 'direction') | |
const align = responsiveStyle('alignItems', 'align') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use the todoist API to get tasks from the current day | |
import todoist | |
from datetime import datetime | |
# Log user in; switch to OAuth eventually... | |
api = todoist.TodoistAPI() | |
def get_todays_tasks(email, password): |
NewerOlder