create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| # simple form usage in view | |
| def my_view(request, template_name='home.html'): | |
| # sticks in a POST or renders an empty form | |
| form = MyForm(request.POST or None) | |
| if form.is_valid(): | |
| do_something() | |
| return redirect('/') | |
| return render_to_response(template_name, {'form':form}) | |
| # form with files |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
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.
| <?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)) { |
| #!/bin/sh | |
| SEP= | |
| SEPE= | |
| CLOCK=⌚ | |
| CALENDAR=☼ | |
| MUSIC=♫ | |
| WIDTH=${1} |
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!
\
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({| <Project> | |
| <Target Name="VSTestIfTestProject"> | |
| <CallTarget Targets="VSTest" Condition="'$(IsTestProject)' == 'true'" /> | |
| </Target> | |
| </Project> |
| <?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> |