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
// Subject: Complex object with set of properties and inner objectss | |
// Mission: Describe fluent DSL to define scheme and delegate action execution | |
// | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Text; | |
using System.Text.RegularExpressions; |
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
// Subject: Method that should replace first instance of Keyword with link in set set of strings | |
// Mission: Improve method performance | |
// | |
// | |
// *** Usage *** | |
// public string WordsToReplaceInThreadOnFirstInstance = new Dictionary<string,string>{...}; | |
// public string Message = "..."; | |
// public string RegExPatternWordNotInsideATag = @"\b{0}\b(?![^<]*?<[^>\/]*\/\s*a\s*>)"; | |
// Message = StringExtensions.Replace(Message, WordsToReplaceInThreadOnFirstInstance, true, StringExtensions.RegExPatternWordNotInsideATag); |
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
Server Error in '/' Application. | |
Object reference not set to an instance of an object. | |
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. | |
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. | |
Source Error: |
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
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> | |
<script> | |
function async(T, method){ | |
console.log('before async create'); | |
return function () { return method.apply(T); }; | |
console.log('after async create'); | |
}; |
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
HTTP Status 500 - java.lang.IllegalStateException: <pingQuery> not configured (consider registering PingRequestHandler with the name '/admin/ping' instead) org.apache.jasper.JasperException: java.lang.IllegalStateException: <pingQuery> not configured (consider registering PingRequestHandler with the name '/admin/ping' instead) at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:549) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:465) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684) at org.apache.catalina.cor |
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
System.NotSupportedException: Cannot serialize interface System.Collections.Generic.IEnumerable`1[[JA.Question.QuestionLink, library, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]. | |
at System.Xml.Serialization.TypeScope.GetTypeDesc(Type type, MemberInfo source, Boolean directReference, Boolean throwOnError) | |
at System.Xml.Serialization.ModelScope.GetTypeModel(Type type, Boolean directReference) | |
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace) | |
at Pearl.Core.Serialization.ContentSerializer.deSerializeObject[T](String serialized, Boolean xmlSerialization, Boolean logError) in c:\ja-legacy\Projects\Pearl\Pearl.Core\Serialization\ContentSerializer.cs:line 168 |
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 a = document.head || document.getElementsByTagName("head")[0] || document.documentElement, | |
b = document.createElement("script"); | |
b.type = "text/javascript"; | |
b.async = !0; | |
b.src = "//cdn3.optimizely.com/js/geo.js"; | |
a.insertBefore(b, a.firstChild); | |
optimizelyCode = function () { | |
var DATA = { | |
"log_host": "log.optimizely.com", |
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
optimizelyCode = function () { | |
var DATA = { | |
"log_host": "log.optimizely.com", | |
"goal_expressions": { | |
"791962898": ["^button\\/click\\/get\\_an\\_answer$"], | |
"789281734": ["^engagement$"] | |
}, | |
"experiments": { | |
"792022794": { | |
"name": "JA14745: [LEAP] Legal SIP page with new JA styles", |
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 expectedEvent = 'button/click/get_an_answer'; | |
var callback = function(){ alert(expectedEvent); }; | |
var hasExpectedEvent = false; | |
var areAllEventsSent = true; | |
var log = console.log; | |
console.log = function(){ | |
log.apply(console, arguments); |
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 expectedEvent = 'button/click/get_an_answer'; | |
var callback = function(){ alert(expectedEvent); }; | |
var hasExpectedEvent = false; | |
var areAllEventsSent = true; | |
var log = console.log; | |
console.log = function(){ | |
log.apply(console, arguments); |
OlderNewer