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 directReplace = (function () { | |
var escapeExp = /[&<>"]/, escapeAmpExp = /&/g, escapeLtExp = /</g, escapeGtExp = />/g, escapeQuotExp = /"/g; | |
return function (text) { | |
if (text == null) { | |
return ''; | |
} | |
var result = text.toString(); | |
if (!escapeExp.test(result)) { | |
return result; | |
} |
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
class CoffeeScriptLangInfo(_JSLikeLangInfo): | |
name = "CoffeeScript" | |
exts = ['.coffee'] | |
common_keywords = set(["true", "false", "null", "this", | |
"new", "delete", "typeof", "in", "instanceof", | |
"return", "throw", "break", "continue", "debugger", | |
"if", "else", "switch", "for", "while", "do", "try", "catch", "finally", | |
"class", "extends", "super", | |
"undefined", "then", "unless", "until", "loop", "of", "by", "when", | |
"and", "or", "is", "isnt", "not", "yes", "no", "on" "off", |
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
class CoffeeScriptLangInfo(_JSLikeLangInfo): | |
name = "CoffeeScript" | |
exts = ['.coffee'] | |
common_keywords = set(["true", "false", "null", "this", | |
"new", "delete", "typeof", "in", "instanceof", | |
"return", "throw", "break", "continue", "debugger", | |
"if", "else", "switch", "for", "while", "do", "try", "catch", "finally", | |
"class", "extends", "super", | |
"undefined", "then", "unless", "until", "loop", "of", "by", "when", | |
"and", "or", "is", "isnt", "not", "yes", "no", "on" "off", |
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
[ | |
{ | |
"data": "<!DOCTYPE html>", | |
"type": "doctype" | |
}, | |
{ | |
"data": "\r\n", | |
"type": "whitespace" | |
}, | |
{ |
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
[ | |
{ | |
"data": "<!DOCTYPE html>", | |
"index": 0, | |
"type": "doctype", | |
"indent": 0 | |
}, | |
{ | |
"data": "\r\n", | |
"index": 15, |
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
1 | |
00:02:11,500 --> 00:02:12,980 | |
Okay, got it. | |
2 | |
00:02:14,570 --> 00:02:16,600 | |
They've found the Mother Maguar. | |
3 | |
00:02:18,100 --> 00:02:20,050 |
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
public byte[] Delta() { | |
// Make a snapshot of the pixels in RGBA format. | |
byte[] Snapshot = _Capturer.Snapshot(); | |
// Check if the previous snapshot is invalid. | |
if (_PreviousSnapshot != null) { | |
// Initialize a new instance of the MemoryStream class. | |
using (MemoryStream MemoryStream = new MemoryStream()) { | |
using (var zipper = new GZipStream(MemoryStream, CompressionLevel.Fastest)) { | |
// Initialize a new instance of the BinaryWriter class. | |
using (BinaryWriter BinaryWriter = new BinaryWriter(zipper)) { |
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 HtmlAgilityPack; | |
using System; | |
using System.Collections.Generic; | |
using System.Net; | |
using System.Threading.Tasks; | |
namespace Crawl { | |
class Crawlie { | |
private HashSet<string> _crawled; | |
private List<string> _matches; |
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.Linq; | |
using System.Reflection; | |
namespace reflectos { | |
// interface to implement a command | |
interface ICommand { | |
string Name { get; } | |
void Run(); | |
} |
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.Linq; | |
using System.Reflection; | |
namespace reflectos { | |
// interface to implement a command | |
interface ICommand { | |
void Run(); | |
} |
OlderNewer