A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.
One-line version to paste in your DevTools
Use $$
if your browser aliases it:
~ 108 byte version
// ==UserScript== | |
// @name Use Markdown, sometimes, in your HTML. | |
// @author Paul Irish <http://paulirish.com/> | |
// @link http://git.io/data-markdown | |
// @match * | |
// ==/UserScript== | |
// If you're not using this as a userscript just delete from this line up. It's cool, homey. |
public class StructureMapControllerFactory : DefaultControllerFactory | |
{ | |
public override IController CreateController(RequestContext requestContext, string controllerName) | |
{ | |
try | |
{ | |
var controllerType = base.GetControllerType(requestContext, controllerName); | |
return ObjectFactory.GetInstance(controllerType) as IController; | |
} | |
catch (Exception) |
(some notepad++'s theme) | |
http://wiki.macromates.com/Themes/UserSubmittedThemes | |
(Textmate theme to Notepad++ (.tmTheme converted to .xml, go to [users]/AppData/Roaming/Notepad++, replace the stylers.xml with the xml file)) | |
http://framework.lojcomm.com.br/tmTheme2nppStyler/ | |
public void MultipleSchemas() | |
{ | |
var validator = new XsdValidator(); | |
validator.AddSchema(@"SchemaDoc1.xsd"); | |
validator.AddSchema(@"SchemaDoc2.xsd"); | |
var isValid = validator.IsValid(@"ValidXmlDoc1.xml"); | |
} |
There are lots of cases that you can improve. The examples use nullable reference types, but only the WhenNotNull
example requires it.
Consider adopting the new property pattern, wherever you use IsNullOrEmpty
.
string? hello = "hello world";