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 Moq; | |
| using NUnit.Framework; | |
| using RestSharp; | |
| using System; | |
| using System.Net; | |
| namespace RestsharpTests | |
| { | |
| [TestFixture] | |
| public class RestsharpExecuteAsyncMoq |
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.Text.RegularExpressions; | |
| namespace mrstebo | |
| { | |
| internal static class StringExtensions | |
| { | |
| public static string Slugify(this string s) | |
| { | |
| return s | |
| .ReplaceSpecialSymbols() |
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/sh | |
| echo -n "Please enter the username you want to add: " | |
| read USERNAME | |
| echo -n "Please enter the password for ${USERNAME} (will not be shown): " | |
| read -s PASSWORD | |
| echo "" | |
| psql -U postgres -c "create user ${USERNAME} with password '${PASSWORD}';" | |
| psql -U postgres -c "alter user ${USERNAME} superuser;" |
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
| FROM microsoft/windowsservercore | |
| ENV DEVKITFILENAME DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe | |
| ENV APPDIR c:\\app | |
| ENV DEVKITDIR devkit | |
| RUN powershell -Command \ | |
| $ErrorActionPreference = 'Stop'; \ | |
| Invoke-WebRequest -Method Get -Uri http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-2.3.3-x64.exe -OutFile c:\rubyinstaller-2.3.3-x64.exe; \ | |
| Start-Process c:\rubyinstaller-2.3.3-x64.exe -ArgumentList '/verysilent' -Wait; \ |
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
| <% | |
| Class Header | |
| Public Function Render | |
| Dim filename : filename = Server.MapPath("/components/Header/Template.html") | |
| Dim fso : Set fso = CreateObject("Scripting.FileSystemObject") | |
| Dim fs : Set fs = fso.OpenTextFile(filename, 1) | |
| If Not fs.AtEndOfStream Then Render = fs.ReadAll | |
| Set fs = Nothing | |
| Set fso = Nothing | |
| End Function |
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
| <% | |
| Class BodyContainer | |
| Public Function Render | |
| Dim filename : filename = Server.MapPath("/components/BodyContainer/Template.html") | |
| Dim fso : Set fso = CreateObject("Scripting.FileSystemObject") | |
| Dim fs : Set fs = fso.OpenTextFile(filename, 1) | |
| If Not fs.AtEndOfStream Then Render = fs.ReadAll | |
| Set fs = Nothing | |
| Set fso = Nothing | |
| End Function |
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
| <!--#include FILE=Header/Header.asp--> | |
| <!--#include FILE=BodyContainer/BodyContainer.asp--> |
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
| <!--#include VIRTUAL=/components/includes.asp--> | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Classic ASP Component Test</title> | |
| <link type="text/css" rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" /> | |
| </head> | |
| <body> | |
| <% response.write((New Header).Render) %> |
OlderNewer