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 S_Innovations.Projects.EFModel.Migrations | |
{ | |
using System.Data.Entity.Migrations; | |
using System.Data.Entity.Migrations.Model; | |
using System.Data.Entity.Migrations.Sql; | |
public class AzureSqlGenerator : SqlServerMigrationSqlGenerator | |
{ | |
protected override void Generate(CreateTableOperation op) | |
{ |
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 () { | |
"use strict"; | |
c1metro.setOptions( | |
function () { | |
c1metro.options = { | |
appTitle: "Open Cph Store Magazine App", // App title text | |
dataHostUrl: "http://c1gitmagazine.azurewebsites.net/", // Host part of URL where data is downloaded from | |
websiteUrl: "http://c1gitmagazine.azurewebsites.net/", // Your website URL | |
privacyUrl: "http://c1gitmagazine.azurewebsites.net/Privacy", // Privacy URL - your app won't be accepted by MS if this is not in place |
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
<%@ WebHandler Language="C#" Class="BlogSitemap" %> | |
using System; | |
using System.Globalization; | |
using System.Text; | |
using System.Web; | |
using System.Linq; | |
using Composite.Data; | |
using Composite.Data.Types; | |
using Composite.Core.Routing; | |
using Composite.Community.Blog; |
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
//http://stackoverflow.com/questions/5754153/zip-archives-in-node-js | |
var spawn = require('child_process').spawn; | |
app.get('/scripts/archive', function(req, res) { | |
// Options -r recursive -j ignore directory info - redirect to stdout | |
var zip = spawn('zip', ['-rj', '-', SCRIPTS_PATH]); | |
res.contentType('zip'); | |
// Keep writing stdout to res | |
zip.stdout.on('data', function (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
interface TwilioRestClient { | |
} | |
interface TwilioSmsInfo | |
{ | |
to: string; | |
from: string; | |
body: string; | |
} | |
interface TwilioSmsCallbackMessage { |
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 Composite.Core.WebApi | |
{ | |
using System.Web.Http; | |
public class TestController : ApiController | |
{ | |
public string Get() | |
{ |
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 Composite.Core.WebApi | |
{ | |
using System.Linq; | |
using System.Web.Http; | |
public static class WebApiConfig | |
{ | |
public static void Register(HttpConfiguration config) | |
{ | |
config.Routes.MapHttpRoute( |
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 Composite.Core.WebApi | |
{ | |
using System.Linq; | |
public interface IC1Repository<T> | |
{ | |
IQueryable<T> GetAll(); | |
T Add(T item); | |
void Remove(T item); | |
bool Update(T item); |
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 Composite.Core.WebApi | |
{ | |
using Composite.Data; | |
using System.Linq; | |
public class C1ApiRepository<T> : IC1Repository<T> where T : class, IData | |
{ | |
DataConnection conn = new DataConnection(); |
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 Composite.Core.WebApi | |
{ | |
using Composite.Data; | |
using System; | |
using System.Linq; | |
using System.Net; | |
using System.Net.Http; | |
using System.Web.Http; |
OlderNewer