Skip to content

Instantly share code, notes, and snippets.

View davenotik's full-sized avatar

David Notik davenotik

View GitHub Profile
function Isolate() {}
init();
var $$ = {};
var $ = Isolate.$isolateProperties;
$$.ExceptionImplementation = {"":
["_msg"],
super: "Object",
toString$0: function() {
var t1 = this._msg;
SELECT
"NewsArticle"."id" AS "NewsArticle.id",
"NewsArticle"."title" AS "NewsArticle.title",
"NewsArticle"."votes" AS "NewsArticle.votes",
"NewsArticle"."taggedGroups" AS "NewsArticle.taggedGroups",
"NewsArticle"."sharedBy" AS "NewsArticle.sharedBy",
"NewsArticle"."numberOfComments" AS "NewsArticle.numberOfComments",
"NewsArticle"."url" AS "NewsArticle.url",
"NewsArticle"."visualGridThumbnail" AS "NewsArticle.visualGridThumbnail",
"NewsArticle"."visualGridThumbnailSize" AS "NewsArticle.visualGridThumbnailSize",
@davenotik
davenotik / designer-list.html
Last active August 29, 2015 14:03
designer, list
<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">
<link rel="import" href="../paper-toast/paper-toast.html">
<polymer-element name="my-element">
@davenotik
davenotik / designer-updates.html
Last active August 29, 2015 14:03
designer, updates
<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">
<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">
<!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">
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]';
/**
* 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';
@davenotik
davenotik / gist:d48bdb7c877fa5faf57a
Created April 28, 2015 05:25
The pubspec.yaml from an older iteration of Woven, build with Dart.
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