This file contains hidden or 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
(function (Rev) { | |
'use strict'; | |
var keyobj = 'localdatakeyobj'; | |
Rev.LocalStorageAdapter.save = function (key, value) { | |
var data = JSON.parse(localStorage.getItem(keyobj)) || {}; | |
data[key] = value; | |
localStorage.setItem(keyobj, JSON.stringify(data)); |
This file contains hidden or 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
@model IEnumerable<WebApplication7.Controllers.User> | |
@{ | |
ViewBag.Title = "About"; | |
} | |
<h2>@ViewBag.Title.</h2> | |
<h3>@ViewBag.Message</h3> | |
<ul> | |
@foreach (var item in Model) |
This file contains hidden or 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 Ember = require('ember'); | |
var App = Ember.Application.create({ | |
Resolver: Ember.DefaultResolver.extend({ | |
resolveRoute: function(route) { | |
var requireName = '/app/routes/'+route.name+'_route'; | |
try { | |
return window['require'](requireName); | |
} | |
catch(e){ | |
return this._super(route); |
This file contains hidden or 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
window.App = App = Ember.Application.create() | |
App.Router.map( -> | |
@route('about') | |
@route('contact') | |
) | |
This file contains hidden or 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.Web; | |
using System.Web.Optimization; | |
namespace WebApplication4 | |
{ | |
public class BundleConfig | |
{ | |
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 | |
public static void RegisterBundles(BundleCollection bundles) | |
{ |
This file contains hidden or 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
{ | |
"name": "gistcamp", | |
"version": "0.4.0-57", | |
"private": true, | |
"scripts": { | |
"start": "node server.js" | |
}, | |
"dependencies": { | |
"express": "3.2.4", | |
"ejs": "*", |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
</body> | |
</html> |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
</body> | |
</html> |
This file contains hidden or 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
First, install grunt-cli in local project | |
> npm install grunt-cli | |
Then put following command in pre build event | |
cd $(SolutionDir)webapp\node_modules\.bin | |
grunt.cmd build | |
Note that "webapp" directory is just for my project, maske sure to put correct path for your case. |
This file contains hidden or 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
namespace NancyApplication1 | |
{ | |
using Nancy; | |
using Nancy.Conventions; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Serialization; | |
public class Bootstrapper : DefaultNancyBootstrapper | |
{ | |
protected override void ConfigureApplicationContainer(Nancy.TinyIoc.TinyIoCContainer container) |
NewerOlder