In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:
- Separate big codebases into multiple repositories.
# | |
# Project specific excludes | |
# | |
tomcat | |
# | |
# Default excludes | |
# |
package br.edu.ifrn.calculadora; | |
import org.antlr.v4.runtime.misc.NotNull; | |
import org.antlr.v4.runtime.tree.ParseTree; | |
import org.antlr.v4.runtime.tree.ParseTreeProperty; | |
public class MinhaCalculadora extends CalculadoraBaseListener { | |
ParseTreeProperty<Integer> values = new ParseTreeProperty<>(); | |
public void setValue(ParseTree node, int value) { |
# Make sure homebrew is installed and latest | |
brew update | |
# Run the brew doctor and read the instructions, it will make sure all paths are ready for write and all | |
brew doctor | |
# Start installing packages | |
brew install mongodb | |
brew install homebrew/versions/node010 #For Yeomen compatability later on | |
npm install express -g |
<html> | |
<head> | |
<!-- adapted from http://charlesleifer.com/blog/using-python-and-k-means-to-find-the-dominant-colors-in-images/ --> | |
<script type="text/javascript"> | |
function euclidean(p1, p2) { | |
var s = 0; | |
for (var i = 0, l = p1.length; i < l; i++) { | |
s += Math.pow(p1[i] - p2[i], 2) | |
} |
Getting Jekyll installed on Windows can be more complicated than on, say, OSX and Ubuntu, but not by much. This outlines the steps I use.
I have similar guidance (plus extra steps for my publishing tools) for OSX written up here.
Because each of the pieces that make Jekyll work is fussy, especially on Windows, which the developers of those pieces rarely use.
As of the lastest versions, just execute the following command .\cmder.exe /REGISTER ALL
per Documentation.
To add an entry in the Windows Explorer context menu to open Cmder
in a specific directory, paste this into a OpenCmderHere.reg
file
and double-click to install it.
You should not use the Open SSH client that comes with Git for Windows. Instead, Windows 10 has its own implementation of Open SSH that is integrated with the system. To achieve this:
ssh-agent
from Windows Services:Services
in the Start Menu
or Win+R
and then type services.msc
to launch the Services window;OpenSSH Authentication Agent
in the list and double click on it;OpenSSH Authentication Agent Properties
window that appears, choose Automatic
from the Startup type:
dropdown and click Start
from Service status:
. Make sure it now says Service status: Running
.git config --global core.sshCommand C:/Windows/System32/OpenSSH/ssh.exe