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
using System.Web.Mvc; | |
using _8Ball.Common; | |
using TwilioSharp.MVC3.Controllers; | |
using TwilioSharp.Request; | |
public class TextController : TwiMLController | |
{ | |
[HttpPost] | |
public ActionResult New(TextRequest request) | |
{ |
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
using System.Web.Mvc; | |
using _8Ball.Common; | |
using TwilioSharp.MVC3.Controllers; | |
using TwilioSharp.Request; | |
public class CallController : TwiMLController | |
{ | |
[HttpPost] | |
public ActionResult New(CallRequest request) | |
{ |
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
<dialog> | |
<dt class="chatTitle">Me</dt> | |
<dd class="chatMsg"> | |
<p>yo</p> | |
<span>1:39 PM</span> | |
<div class="arrow"></div> | |
<div class="arrow arrowOver"></div> | |
</dd> | |
<dt class="chatTitle reply">Expert</dt> | |
<dd class="chatMsg reply"> |
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
//You need an anonymous function to wrap around your function to avoid conflict | |
(function($){ | |
//Attach this new method to jQuery | |
$.fn.extend({ | |
//This is where you write your plugin's name | |
pluginName: function(options) { | |
var defaults = { |
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
<body> | |
<div id="container"> | |
<header> | |
<h1>Best Site Evar</h1> | |
<nav> | |
<ul> | |
<li class="first selected"><a href="index.html" transition-link="" transition-name="slide">Home</a></li> | |
<li><a href="about.html" transition-link="" transition-name="slide">About</a></li> | |
<li><a href="contact.html" transition-link="" transition-name="slide">Contact</a></li> |
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
// Get our transition links in the nav | |
opts.$navLinks = $('nav a[transition-link]'); | |
// Attach click handlers for all links with our special transition attribute. | |
opts.$navLinks.click(function(e) { | |
// Prevent navigation... | |
e.preventDefault(); | |
opts.toggleLoading(true); |
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
opts.transitionHandler = function(name, $to, $from, cb) { | |
$from.hide(name, {direction: 'left', easing: 'easeOutQuad'}, 350, function() { | |
// Transition in the to element | |
opts.getContentHolder().append($to); | |
$to.show(name, {direction: 'right', easing: 'easeOutQuad'}, 350, function() { | |
// Remove the from element | |
$from.detach(); | |
if($.isFunction(cb)) { cb(); } | |
}); | |
}); |
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
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using System.Text.RegularExpressions; | |
using System.Threading.Tasks; | |
// http://bingsharp.codeplex.com/ | |
using Bing; | |
// http://nuget.org/List/Packages/HtmlAgilityPack | |
using HtmlAgilityPack; |
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
// Create our namespace object, use one that already exists if it's available, fall back to new object "{}". | |
var MYAPP = MYAPP || {}; | |
(function($, ns) { | |
// .. This is a closure, so we don't muddy up our global namespace. | |
// .. $ = jQuery, ns = MYAPP (For those playing along at home) | |
// Extend our namespace with some stuff we're going to add later. | |
ns = $.extend(ns, { |