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
#!/bin/bash | |
#First you update your system | |
sudo apt-get -y update && sudo apt-get -y upgrade | |
sudo apt-get -y install curl wget firefox | |
#Install Google Chrome | |
echo "Chrome" | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' | |
sudo apt-get -y update |
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
# Boxstarter options | |
$Boxstarter.RebootOk=$true # Allow reboots? | |
$Boxstarter.NoPassword=$false # Is this a machine with no login password? | |
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot | |
# Basic setup | |
Update-ExecutionPolicy Unrestricted | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -EnableShowFullPathInTitleBar | |
Enable-RemoteDesktop | |
Disable-InternetExplorerESC |
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
@if (Midway.Web.Helpers.PageHelper.IsDebug() == false) | |
{ | |
<script src="@Url.Content("~/assets/vendor/leaflet.draw.custom/examples/libs/leaflet-src.js")"></script> | |
<script src="@Url.Content("~/assets/js/build/built.min.js")" type="text/javascript"></script> | |
<script src="@Url.Content("~/assets/js/src/Midway.GeneralMapApplication.js")" type="text/javascript"></script> | |
} | |
else | |
{ | |
<script src="@Url.Content("~/assets/vendor/leaflet.draw.custom/examples/libs/leaflet-src.js")"></script> | |
<script src="assets/js/lib/handlebars/handlebars-v1.1.2.js" type="text/javascript"></script> |
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
<configuration> | |
<configSections> | |
... | |
</configSections> | |
<razor disableAutoIncludeModelNamespace="false"> | |
<assemblies> | |
<add assembly="MiniProfiler"/> | |
<add assembly="Nancy" /> | |
</assemblies> | |
<namespaces> |
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
public class Brand : IBrand | |
{ | |
public int Id { get; set; } | |
public string Name { get; set; } | |
public int? ParentBrandId { get; set; } | |
} |
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
Instead of | |
var drawControl = new L.Control.Draw({ | |
edit: { | |
featureGroup: drawnItems | |
} | |
}); | |
How about |
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; | |
using System.Collections.Generic; | |
using System.Web; | |
using tinyweb.framework; | |
using tinyweb.viewengine.spark; | |
using System.Text; | |
namespace Web.Handlers | |
{ |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using NUnit.Framework; | |
using Midway.Mobile.Web.Handlers; | |
using NSubstitute; | |
using Midway.Infrastructure.Logging; | |
using Midway.Infrastructure.Mappings; | |
using Midway.Infrastructure.Services; |
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
<viewdata model="tinyweb.viewengine.tests.UserModel" /> | |
<h1>${Model.ID}</h1> | |
<h2>${Model.Username}</h2> | |
<div>${SelectTag.For<countries>()}</div> |
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
public class CountryModel | |
{ | |
public string Code { get; set; } | |
public string Name { get; set; } | |
} | |
public class CountrieslistHandler | |
{ | |
public IResult Get() | |
{ |
NewerOlder