In this workshop, we'll add a new in expression to C#, with example use cases shown below:
x in 1..10 // x >= 1 && x < 10
'a' in "bar" // "bar".IndexOf('a') >= 0 -or- "bar".Contains('a')
x in xs // xs.Contains(x)| <Project> | |
| <Target Name="InternalsVisibleToTask" BeforeTargets="GenerateAdditionalSources" Condition="@(InternalsVisibleTo) != ''"> | |
| <ItemGroup> | |
| <AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> | |
| <_Parameter1>%(InternalsVisibleTo.Identity)</_Parameter1> | |
| </AssemblyAttribute> | |
| </ItemGroup> | |
| </Target> |
| <?xml version="1.0" encoding="utf-8"?> | |
| <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
| <CodeSnippet Format="1.0.0"> | |
| <Header> | |
| <SnippetTypes> | |
| <SnippetType>Expansion</SnippetType> | |
| </SnippetTypes> | |
| <Title>A Fact</Title> | |
| <Shortcut>afact</Shortcut> | |
| <Description>Code snippet for an async xUnit fact</Description> |
| <Project> | |
| <Target Name="VSTestIfTestProject"> | |
| <CallTarget Targets="VSTest" Condition="'$(IsTestProject)' == 'true'" /> | |
| </Target> | |
| </Project> |
Recently when refactoring a Vue 1.0 application, I utilized ES6 arrow functions to clean up the code and make things a bit more consistent before updating to Vue 2.0. Along the way I made a few mistakes and wanted to share the lessons I learned as well as offer a few conventions that I will be using in my Vue applications moving forward.
The best way to explain this is with an example so lets start there. I'm going to throw a rather large block of code at you here, but stick with me and we will move through it a piece at a time.
<script>
// require vue-resource...
new Vue({I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
| #!/bin/sh | |
| SEP= | |
| SEPE= | |
| CLOCK=⌚ | |
| CALENDAR=☼ | |
| MUSIC=♫ | |
| WIDTH=${1} |
| <?php | |
| /** | |
| * Convert a multi-dimensional array into a single-dimensional array. | |
| * @author Sean Cannon, LitmusBox.com | [email protected] | |
| * @param array $array The multi-dimensional array. | |
| * @return array | |
| */ | |
| function array_flatten($array) { | |
| if (!is_array($array)) { |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.