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 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 |
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
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 |
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
/// 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); | |
} |
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 '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. |
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
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" |
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
name: woven | |
description: The Woven platform. | |
dependencies: | |
# From the Dart team. | |
browser: 0.8.10+4 | |
intl: 0.8.10+4 | |
http: 0.8.10+4 | |
path: 0.8.10+4 | |
yaml: 0.8.10+4 | |
logging: 0.8.10+4 |
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
/** | |
* BEFORE | |
*/ | |
static facebook(App app, HttpRequest request) { | |
var code = Uri.encodeComponent(request.uri.queryParameters['code']); | |
var appId = Uri.encodeComponent(config['authentication']['facebook']['appId']); | |
var appSecret = Uri.encodeComponent(config['authentication']['facebook']['appSecret']); | |
var callbackUrl = Uri.encodeComponent(config['authentication']['facebook']['url']); | |
var url = 'https://graph.facebook.com/oauth/access_token?client_id=$appId&redirect_uri=$callbackUrl&client_secret=$appSecret&code=$code'; |
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
class RegexHelper { | |
static String domain = '[a-zA-Z.]+'; | |
static String protocol = '[a-zA-Z]+:\\/\\/'; | |
static String www = 'www\\.'; | |
static String emailName = '[a-zA-Z.+]+'; | |
static String email = '\\b${emailName}@${domain}\\b'; | |
static String queryPath = '\\/[-~+=%_a-zA-Z0-9.]+[-~+=%_a-zA-Z0-9]'; | |
static String searchString = '\\?[-+=&;%@_.a-zA-Z0-9]+[-+=&;%@_a-zA-Z0-9]'; |
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> | |
<!-- Run in full-screen mode. --> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<!-- Make the status bar black with white text. --> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black"> |
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
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<polymer-element name="my-element"> |
NewerOlder