git clone <repo>
clone the repository specified by ; this is similar to "checkout" in some other version control systems such as Subversion and CVS
Add colors to your ~/.gitconfig file:
| #!/bin/bash | |
| if [ ! -r "/usr/local/git" ]; then | |
| echo "Git doesn't appear to be installed via this installer. Aborting" | |
| exit 1 | |
| fi | |
| echo "This will uninstall git by removing /usr/local/git/**/*, /etc/paths.d/git, /etc/manpaths.d/git" | |
| printf "Type 'yes' if you sure you wish to continue: " | |
| read response | |
| if [ "$response" == "yes" ]; then | |
| sudo rm -rf /usr/local/git/ |
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |
| /* | |
| * Copyright (c) 2013 Calvin Rien | |
| * | |
| * Based on the JSON parser by Patrick van Bergen | |
| * http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html | |
| * | |
| * Simplified it so that it doesn't throw exceptions | |
| * and can be used in Unity iPhone with maximum code stripping. | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining |
| [merge] | |
| keepBackup = false | |
| tool = p4merge | |
| [mergetool "p4merge"] | |
| cmd = /Applications/p4merge.app/Contents/Resources/launchp4merge "\"$PWD/$BASE\"" "\"$PWD/$REMOTE\"" "\"$PWD/$LOCAL\"" "\"$PWD/$MERGED\"" | |
| keepTemporaries = false | |
| trustExitCode = false | |
| keepBackup = false | |
| [diff] | |
| tool = p4merge |
| $ brew remove git | |
| $ brew remove curl | |
| $ brew install openssl | |
| $ brew install --with-openssl curl | |
| $ brew install --with-brewed-curl --with-brewed-openssl git |
Setting up p4merge
as diff and merge tool on Windows. Tried for Git version 1.8.4.msysgit.0.
Two alternatives are explained: using the command line, and directly editing the config file.
Being the installation path "C:Program Files\Perforce\p4merge.exe", just run:
$ git config --global diff.tool p4merge
Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.
| var g = 400; | |
| var h = 10; | |
| var m = 1; | |
| var totalTime = 0; | |
| var engine = m * g * h; | |
| var t = Math.sqrt((2 * h)/g); | |
| var vt = 0; | |
| var v0 = 0; | |
| function startYoYo(dt) | |
| { |
| var myColor0 = new THREE.Color(0xff0000); | |
| var myColor1 = new THREE.Color(0x00ff00) | |
| var cube = new THREE.Mesh( | |
| new THREE.BoxGeometry(1,1,1), | |
| new THREE.ShaderMaterial({ | |
| uniforms: { | |
| fade: { type: 'f', value: 0 }, | |
| myColor0: {value : myColor0}, |