This file contains 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
{ | |
"frameworks": { | |
"net46":{ | |
"dependencies": { | |
"StackExchange.Redis": "1.2.1" | |
} | |
} | |
} | |
} |
This file contains 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.Net; | |
using StackExchange.Redis; | |
public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log) | |
{ | |
log.Info("C# HTTP trigger function processed a request."); | |
// **** REDIS CODE STARTS HERE | |
var connString = System.Configuration.ConfigurationManager.ConnectionStrings["mycats"].ConnectionString; | |
var redis = ConnectionMultiplexer.Connect(connString); |
This file contains 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
mkdir timelapse | |
cd timelapse | |
raspistill -o picture%04d.jpeg -tl 10000 -t 7200000 |
This file contains 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
sudo apt-get install build-essential checkinstall | |
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev |
This file contains 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
cd /usr/src | |
wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz | |
sudo tar xzf Python-3.6.0.tgz |
This file contains 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
cd Python-3.6.0 | |
sudo -s | |
bash configure | |
make altinstall | |
exit |
This file contains 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 lang="en"> | |
<head> | |
<meta charset="utf-8"/> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>@ViewData["Title"]</title> | |
<meta name="description" content="Sample code"> | |
<meta name="author" content="Test code limited"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no"> |
This file contains 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
<div class="app-content-inner"> | |
@RenderSection("MyContentHeader", required: true) | |
@RenderBody() | |
</div> |
This file contains 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
@section MyContentHeader { | |
<div class="content-toolbar content-toolbar-left"> | |
<h3 class="page-header">Dashboard</h3> | |
<ol class="content-breadcrumb breadcrumb breadcrumb-arrow"> | |
<li><a href="#"><i class="icon-home mr-1"></i> Home</a></li> | |
<li><a href="#">Collections</a></li> | |
<li class="active">Item</li> | |
</ol> | |
</div> | |
} |
This file contains 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 RegisterViewModel | |
{ | |
[Required] | |
[Display(Name = "First Name")] | |
[StringLength(100, ErrorMessage = "{0} must be at least {2} characters long.", MinimumLength = 2)] | |
public string FirstName { get; set; } | |
[Required] | |
[Display(Name = "Last Name")] | |
[StringLength(100, ErrorMessage = "{0} must be at least {2} characters long.", MinimumLength = 2)] |