- Add the
ExceptionUtility.csandErrorHandlerAttribute.cs - Add the
ErrorHandlerAttributeto your base controller to start logging errors. Like:
[ErrorHandler]
public class BaseController : Controller
{
// ...
| # Set the base image to stable version of node | |
| FROM node:0.12.2 | |
| # Install nodemon | |
| RUN npm install -g nodemon | |
| # Provides cached layer for node_modules | |
| COPY package.json /tmp/package.json | |
| RUN cd /tmp && npm install --production | |
| RUN mkdir -p /app && cp -a /tmp/node_modules /app/ |
A Pen by Jørn A. Myrland on CodePen.
A Pen by Jørn A. Myrland on CodePen.
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Web.UI.WebControls; | |
| using System.Web.UI.WebControls.WebParts; | |
| using Microsoft.SharePoint; | |
| using Microsoft.SharePoint.WebControls; | |
| using Microsoft.SharePoint.WebPartPages; | |
| namespace Example |
| data:text/html, <style type="text/css">.e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div class="e" id="editor"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("editor");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> | |
| <!-- | |
| For other language: Instead of `ace/mode/ruby`, Use | |
| Markdown -> `ace/mode/markdown` | |
| Python -> `ace/mode/python` | |
| C/C++ -> `ace/mode/c_cpp` | |
| Javscript -> `ace/mode/javascript` | |
| Java -> `ace/mode/java` | |
| Scala- -> `ace/mode/scala` |
| /** | |
| * Related to http://stackoverflow.com/questions/16528539/mongoose-query-for-an-array-of-dictionaries | |
| */ | |
| var mongoose = require('mongoose'), | |
| db = mongoose.connect('mongodb://localhost/test'); | |
| var blogSchema = new mongoose.Schema({ | |
| group: String, | |
| writing: [{ |
| /** | |
| * Modify the parts you need to get it working. | |
| */ | |
| var should = require('should'); | |
| var request = require('../node_modules/request'); | |
| var io = require('socket.io-client'); | |
| var serverUrl = 'http://localhost'; |
Provides functionality for:
Set the stores you want to list in the stores, for example:
protected static List<object> stores = new List<object>()
{