Skip to content

Instantly share code, notes, and snippets.

@mrukhlov
mrukhlov / app.py
Created July 27, 2019 03:17 — forked from maccman/app.py
Stripe Flask Example
import os
from flask import Flask, render_template, request
import stripe
stripe_keys = {
'secret_key': os.environ['SECRET_KEY'],
'publishable_key': os.environ['PUBLISHABLE_KEY']
}
stripe.api_key = stripe_keys['secret_key']
@mrukhlov
mrukhlov / main.dart
Created June 11, 2019 09:23
TodoApp widget
class TodoCard extends StatelessWidget {
final String task;
final String type;
final bool isCompleted;
final Function delete;
final Function toggleIsCompleted;
const TodoCard(
{Key key,
this.task,
this.type,
class TodoCard extends StatelessWidget {
final String task;
final String type;
final bool isCompleted;
final Function delete;
final Function toggleIsCompleted;
const TodoCard(
{Key key,
this.task,
this.type,
class TodoCard extends StatelessWidget {
final String task;
final String type;
final bool isCompleted;
final Function delete;
final Function toggleIsCompleted;
const TodoCard(
{Key key,
this.task,
this.type,