Skip to content

Instantly share code, notes, and snippets.

On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
Untracked files:
(use "git add <file>..." to include in what will be committed)
gitlog
status
<p>Experience the Divine, explore spirituality, act on social justice and create community with others who follow the
way of Jesus Christ. Plymouth Church is located in the heart of downtown Seattle. Join us!</p>
<p>
<a href="https://fast.wistia.net/embed/iframe/mfcuv4jefj?controlsVisibleOnLoad=true&amp;playerColor=333333&amp;plugin%5Bsocialbar-v1%5D%5BbadgeImage%5D=http%3A%2F%2Fembed.wistia.com%2Fdeliveries%2F3574f7f1910ee97739ad806a18fc577d0475301f.jpg%3Fimage_resize%3D100&amp;plugin%5Bsocialbar-v1%5D%5BbadgeUrl%5D=http%3A%2F%2Fdatasphere.com%3Futm_source%3Dembedvideo%3Futm_source%3Dembedvideo&amp;plugin%5Bsocialbar-v1%5D%5Bbuttons%5D=facebook-twitter&amp;plugin%5Bsocialbar-v1%5D%5Blogo%5D=true&amp;plugin%5Bsocialbar-v1%5D%5BpageUrl%5D=http%3A%2F%2Fmy.datasphere.com%2Fnode%2F1485914%3Futm_source%3Dembedvideo&amp;version=v1&amp;videoHeight=360&amp;videoWidth=640&amp;volumeControl=true"
title="VIDEO WELCOME TO PLYMOUTH CHURCH">
<img src="http://plymouthchurchseattle.org/img/welcome.jp
<?php
$pn = $_GET['page'];
$page_arr = fetchPageByName($pn);
//echo $page_arr["page_id"];
$meta_title=strip_tags($page_arr['varchar1']);$meta_title_defined="yes";
$meta_description=strip_tags($page_arr['text2']);$meta_description_defined="yes";
$meta_keywords=strip_tags($page_arr['text1']);$meta_keywords_defined="yes";
@davidimoore
davidimoore / 0_reuse_code.js
Last active September 10, 2015 20:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# == Schema Information
#
# Table name: users
#
# id :integer not null, primary key
# email :string(255) default(""), not null
# encrypted_password :string(255) default(""), not null
# reset_password_token :string(255)
# reset_password_sent_at :datetime
# remember_created_at :datetime
Started POST "/sessions/new" for ::1 at 2015-12-06 18:29:21 -0600
ActionController::RoutingError (No route matches [POST] "/sessions/new"):
actionpack (4.2.5) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
web-console (2.2.1) lib/web_console/middleware.rb:39:in `call'
newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
actionpack (4.2.5) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
newrelic_rpm (3.14.0.305) lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
railties (4.2.5) lib/rails/rack/logger.rb:38:in `call_app'
@davidimoore
davidimoore / jwt_breakdown.json
Last active January 14, 2016 01:33
JWT Breakdown
//header
{
"typ":"JWT",
"alg":""
}
//payload - claims
{
"iss":"http://myapi.com", //reserved claim
"user":"david" //public claim
User
id: 113911,
email: "[email protected]",
encrypted_password: "$2a$04$L1eidjS45VphqXzWz9xgeeHz1Q2/fxdgHoyJcyw2uy6...",
reset_password_token: nil,
reset_password_sent_at: nil,
remember_created_at: nil,
sign_in_count: 0,
current_sign_in_at: nil,
last_sign_in_at: nil,
# == Schema Information
#
# Table name: users
#
# id :integer not null, primary key
# email :string(255) default(""), not null
# encrypted_password :string(255) default(""), not null
# reset_password_token :string(255)
# reset_password_sent_at :datetime
# remember_created_at :datetime
#!/usr/bin/env python
# Eulerian Tour Ver 1
#
# Write a function, `create_tour` that takes as
# input a list of nodes
# and outputs a list of tuples representing
# edges between nodes that have an Eulerian tour.
#