This file contains 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-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<polymer-element name="my-element" attributes="foo bar"> | |
<template> | |
<style> | |
:host { |
This file contains 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
I am not here. |
This file contains 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
// Get Firebase value from a query as a Promise. | |
function getValue(ref, allowNull) { | |
return new Promise(function(resolve, reject) { | |
ref.once('value', | |
function(snap) { | |
var result = snap.val(); | |
if (result === null && !allowNull) { | |
reject(new Error("No data at location: " + ref.toString())); | |
return; | |
} |
This file contains 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
T-Mobile: We have received your information and will connect you with a T-Mobile Chat Specialist soon. | |
T-Mobile: A Chat Specialist will be with you soon. | |
T-Mobile: Thank you for waiting. A Chat Specialist will be available shortly. For assistance with payment processing or account cancellation, please call Customer Care at (877) 746-0909. | |
T-Mobile: We appreciate your patience. A Chat Specialist will be assigned to you soon. | |
DarrenC: Hi, Mike! | |
You: HI | |
You: Hello? | |
DarrenC: Thank you for contacting T-Mobile. I'm sorry to know that you're having issues with your order. | |
DarrenC: No worries, I am here to help you out. | |
DarrenC: Let me pull up your account real quick. |
This file contains 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
The master repository for the AppEngine-Base project is stored on GitHub: | |
http://github.com/mckoss/appengine-base | |
Windows users can install the Git client: http://code.google.com/p/msysgit/ | |
I use these settings: | |
- Add Git Bash Here, Add Git GUI Here | |
- Run Git and included Unix tools from the Windows Command Prompt | |
- Use OpenSSH |
This file contains 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
""" | |
The McNugget Problem | |
Find the smallest n s.t. there exists a solution to: | |
n = 6x + 9y + 20z | |
for n, n+1, n+2, ... , n+5 | |
Result is: |
This file contains 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
def Select(a, i, first=0, last=None): | |
if last is None: | |
last = len(a)-1 | |
p = Pivot(a, first, last) | |
if p == i: | |
return a[p] | |
if p < i: | |
return Select(a, i, p+1, last) | |
return Select(a, i, first, p-1) |
This file contains 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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html> | |
<head> | |
<title>Twitter Rate Calculator - Find the rate that any keyword is being Twittered.</title> | |
<style> | |
table { | |
border-collapse:collapse; | |
} | |
p { |
This file contains 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 httplib | |
import urllib2 | |
import sys | |
# TODO: Speed up by searching on multiple connections, say, 10 | |
def DictSearch(sAfter): | |
dict = open("dict.txt") | |
f = open("output.csv", 'a') |
This file contains 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
""" | |
Simple twitter API wrapper for python | |
Useage: | |
twitter = Twitter() | |
twitter.set_user_pass(user, passwd) - Set the user password for authenticated requests | |
twitter.friends_ids(user) - pass username or id to get list of all friend ids | |
twitter.update(text) - send an update for the current user ("tweet") |
OlderNewer