- download the dependencies of the project
./gradlew assemble
- start a java gradle project
gradle init --type “java-library"
- add the gradle wrapper to the project
gradle wrapper --gradle-version 2.0
- build
./gradlew build
- test
./gradlew test
setup name and email
for a specific repository, navigate into it and type
git config user.name "your username"
git config user.email "[email protected]"
note add --global to make it global for new repositories
change your editor for commits
git config --global core.editor "pico"
get the remote repository url
This file contains 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
package main | |
import "fmt" | |
// fibonacci is a function that returns | |
// a function that returns an int. | |
func fibonacci() func() int { | |
var n, f_n_1, f_n_2 = -1, 1, 1 |
This file contains 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/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
echo -e "testing \033[48;5;88mCOLOR1\033[38;208;48;5;159mCOLOR2\033[m"
The color range of a 256 color terminal consists of 4 parts, often 5, in which case you actually get 258 colors:
- Color numbers 0 to 7 are the default terminal colors, the actual RGB value of which is not standardized and can often be configured.
- Color numbers 8 to 15 are the "bright" colors. Most of the time these are a lighter shade of the color with index - 8. They are also not standardized and can often be configured. Depending on terminal and shell, they are often used instead of or in conjunction with bold font faces.
- Color numbers 16 to 231 are RGB colors. These 216 colors are defined by 6 values on each of the three RGB axes. That is, instead of values 0 - 255, each color only ranges from 0 - 5.
cmake -H. -Bbuild
- will creates CMake configuration files inside folder build.-H.
refers to source directory wherecmakelists.txt
is at.-Bbuild
is th folder to where to put all of the generated cmake config.cmake --build build -- -j3
- will generate the output program
- add c++ files recursively - https://stackoverflow.com/questions/27992346/how-to-use-cmake-glob-recurse-for-only-some-subdirectories
- very good guide - http://derekmolloy.ie/hello-world-introductions-to-cmake/
- also good - https://medium.com/@onur.dundar1/cmake-tutorial-585dd180109b