Skip to content

Instantly share code, notes, and snippets.

View davenotik's full-sized avatar

David Notik davenotik

View GitHub Profile
@davenotik
davenotik / pubspec.yaml
Last active August 29, 2015 14:20
Woven's pubspec as of 4/28/15.
name: woven
version: 0.0.2
environment:
sdk: ">=1.9.1"
dependencies:
browser: any
polymer: ">=0.15.0 <0.16.0"
core_elements: ">=0.6.0+3 <0.7.0"
paper_elements: ">=0.6.0+4 <0.7.0"
firebase: ">=0.5.0 <0.6.0"
@davenotik
davenotik / util.dart
Last active December 2, 2018 10:57
Custom readHttp() as an alternative to http.read().
import 'dart:convert';
import 'dart:async';
import 'dart:io';
import 'package:http/http.dart' as http;
/**
* A utility method that reads HTTP response body and returns it as a string.
*
* The difference to http.read() is: send good headers, handle encodings better and have a timeout.
/// A stupid little Powerball number generator.
/// http://www.powerball.com/powerball/pb_howtoplay.asp
import 'dart:math';
void main() {
int timesToPlay = 20;
Powerball.playMultiple(timesToPlay);
}
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
dart 30841 root cwd DIR 8,1 4096 138033 /home/woven/web
dart 30841 root rtd DIR 8,1 4096 2 /
dart 30841 root txt REG 8,1 9859832 7488 /usr/lib/dart/bin/dart
dart 30841 root mem REG 8,1 80712 534173 /lib/x86_64-linux-gnu/libresolv-2.13.so
dart 30841 root mem REG 8,1 22928 534171 /lib/x86_64-linux-gnu/libnss_dns-2.13.so
dart 30841 root mem REG 8,1 47616 534155 /lib/x86_64-linux-gnu/libnss_files-2.13.so
dart 30841 root mem REG 8,1 1599504 534160 /lib/x86_64-linux-gnu/libc-2.13.so
dart 30841 root mem REG 8,1 89056 524678 /lib/x86_64-linux-gnu/libgcc_s.so.1
dart 30841 root mem REG 8,1 530736 534154 /lib/x86_64-linux-gnu/libm-2.13.so
import React, { Component } from "react";
import ReactDOM from "react-dom";
import Header from "./header";
import css from '../../../static/app.css';
import Entry from "./entry";
import firebase from 'firebase';
import 'firebase/firestore';
import {firebase as fb} from "../../../config/config";
//Initialize Firebase