- Create directory
- Go into new directory
- Create bare repo
git init --bare
- Clone repo somewhere
git clone <repo>
- Go into repo folder
- Create .gitignore file
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
## Ignore Visual Studio temporary files, build results, and | |
## files generated by popular Visual Studio add-ons. | |
## | |
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore | |
# User-specific files | |
*.suo | |
*.user | |
*.userosscache | |
*.sln.docstates |
See how a minor change to your commit message style can make a difference. Examples
Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs
Douglas Crockford showed a slide showing how he creates JavaScript objects in 2014.
He no longer uses Object.create(), avoids 'this' and doesn't even care about memory reduction by using prototypes.
https://www.youtube.com/watch?v=bo36MrBfTk4 (skip ahead to 35 mins for relevant section)
Here is the pattern described on the slide:
function constructor(spec) {
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 Microsoft.Extensions.PlatformAbstractions; | |
using System.IO; | |
using Microsoft.Extensions.FileProviders; | |
using Microsoft.AspNetCore.Hosting; | |
namespace Microsoft.AspNetCore.Builder | |
{ | |
public static class ApplicationBuilderExtensions | |
{ | |
public static IApplicationBuilder UseNodeModules( |
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
function getEvents(sel) { | |
return $(sel).toArray().reduce(function(acc, el) { | |
var events = $._data(el, 'events'); | |
if (events) acc.push(events); | |
return acc; | |
}, []); | |
} | |
function calculateEvents(acc, obj) { | |
for (key in obj) { |