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
if(message.toLowerCase() == "haha") { | |
var images = [ | |
"http://i.imgur.com/tyROdzN.gif", | |
"http://i.imgur.com/L24cy.gif", | |
"http://i.imgur.com/nJTgg7p.gif", | |
"http://i.imgur.com/VaAvSEj.gif", | |
"http://i.imgur.com/rU2jU8X.gif", | |
"http://i.imgur.com/cUqCb7Y.gif", | |
"http://i.imgur.com/yFtfY.gif", |
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
using System; | |
using System.Diagnostics; | |
namespace Stemmer | |
{ | |
internal class Benchmark : IDisposable | |
{ | |
private readonly string _name; | |
private Stopwatch _stopwatch; |
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
var doc = new HtmlDocument(); | |
doc.LoadHtml(html); | |
var nodes = doc.DocumentNode.SelectNodes("//span[contains(@class,'video-title')]"); | |
Console.WriteLine("Node count: {0}", nodes.Count); // 1 | |
Console.WriteLine("Title: {0}", nodes.First().InnerText); // Bob Marley - Buffalo soldier |
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
YZbDcQ2jHgpjhmID8QiJknFMQd5e2m8C9IBPJEzQ0pI= |
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
83ed1b47-4dc3-11e1-a216-000000008329 |
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
-- MySQL dump 10.13 Distrib 5.5.16, for Win32 (x86) | |
-- | |
-- Host: localhost Database: elmah | |
-- ------------------------------------------------------ | |
-- Server version 5.5.16-log | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
/*!40101 SET NAMES utf8 */; |
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
<html> | |
<head> | |
<style type="text/css"> | |
#drop { | |
width: 300px; | |
height: 46px; | |
border: 3px dashed #c9c9c9; | |
text-align: center; | |
padding-top: 25px; | |
} |
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
<html> | |
<head> | |
<title>Tablesorter</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script type="text/javascript"> | |
(function($) { | |
$.fn.fastSort = function() { | |
var DESC = 0, |
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
private static Dictionary<string, Dictionary<string, string>> Parse(string xpath) | |
{ | |
var results = new Dictionary<string, Dictionary<string, string>>(); | |
var parts = xpath.Split(new[] {'/'}, StringSplitOptions.RemoveEmptyEntries); | |
foreach(var part in parts) | |
{ | |
var itemName = part.Substring(0, part.IndexOf('[')); | |
var properties = Regex.Matches(part, "@([a-zA-Z]+)='([a-zA-Z]+)'"); |
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
$players = array(); | |
while($row = mysql_fetch_array($result)) | |
{ | |
extract($row); | |
$player = array ( | |
'cbs_id' => $cbs_id, | |
'fname' => $fname, | |
'lname' => $lname, | |
'stats' => array() |