diff options
| -rw-r--r-- | csharp.html.markdown | 2 | ||||
| -rw-r--r-- | es-es/go-es.html.markdown | 12 | ||||
| -rw-r--r-- | git.html.markdown | 14 | ||||
| -rw-r--r-- | go.html.markdown | 2 | ||||
| -rw-r--r-- | ru-ru/c++-ru.html.markdown | 2 | ||||
| -rw-r--r-- | ru-ru/php-ru.html.markdown | 39 | 
6 files changed, 19 insertions, 52 deletions
| diff --git a/csharp.html.markdown b/csharp.html.markdown index 8a631e54..78f9db34 100644 --- a/csharp.html.markdown +++ b/csharp.html.markdown @@ -711,7 +711,7 @@ on a new line! ""Wow!"", the masses cried";          // Before .NET 4: (aBike.Accessories & Bicycle.BikeAccessories.Bell) == Bicycle.BikeAccessories.Bell          public BikeAccessories Accessories { get; set; } -        // Static members belong to the type itself rather then specific object. +        // Static members belong to the type itself rather than specific object.          // You can access them without a reference to any object:          // Console.WriteLine("Bicycles created: " + Bicycle.bicyclesCreated);          public static int BicyclesCreated { get; set; } diff --git a/es-es/go-es.html.markdown b/es-es/go-es.html.markdown index c41d693d..78267695 100644 --- a/es-es/go-es.html.markdown +++ b/es-es/go-es.html.markdown @@ -26,7 +26,7 @@ Es rápido compilando y rápido al ejecutar, añade una concurrencia fácil de  entender para las CPUs de varios núcleos de hoy día, y tiene  características que ayudan con la programación a gran escala. -Go viene con una biblioteca estándar muy buena y una entusiasta comunidad. +Go viene con una biblioteca estándar muy buena y una comunidad entusiasta.  ```go  // Comentario de una sola línea @@ -52,7 +52,7 @@ import (  // para el ejecutable. Te guste o no, Go utiliza llaves.  func main() {  	// Println imprime una línea a stdout. -	// Cualificalo con el nombre del paquete, fmt. +	// Llámalo con el nombre del paquete, fmt.  	fmt.Println("¡Hola mundo!")  	// Llama a otra función de este paquete. @@ -90,12 +90,12 @@ saltos de línea.` // mismo tipo cadena  	g := 'Σ' // Tipo rune, un alias de int32, alberga un carácter unicode.  	f := 3.14195 // float64, el estándar IEEE-754 de coma flotante 64-bit.  	c := 3 + 4i  // complex128, representado internamente por dos float64. -	// Sintaxis Var con iniciadores. +	// Sintaxis var con iniciadores.  	var u uint = 7 // Sin signo, pero la implementación depende del tamaño  	               // como en int.  	var pi float32 = 22. / 7 -	// Sintáxis de conversión con una declaración corta. +	// Sintaxis de conversión con una declaración corta.  	n := byte('\n') // byte es un alias para uint8.  	// Los Arreglos tienen un tamaño fijo a la hora de compilar. @@ -377,8 +377,8 @@ func aprendeConcurrencia() {  	go func() { c <- 84 }()       // Inicia una nueva rutinago solo para  											// enviar un valor.  	go func() { cs <- "verboso" }() // Otra vez, para cs en esta ocasión. -	// Select tiene una sintáxis parecida a la instrucción switch pero cada -	// caso involucra una operacion con un canal. Selecciona un caso de +	// Select tiene una sintaxis parecida a la instrucción switch pero cada +	// caso involucra una operación con un canal. Selecciona un caso de  	// forma aleatoria de los casos que están listos para comunicarse.  	select {  	case i := <-c: // El valor recibido se puede asignar a una variable, diff --git a/git.html.markdown b/git.html.markdown index 01dc92c1..1cd2578e 100644 --- a/git.html.markdown +++ b/git.html.markdown @@ -8,6 +8,7 @@ contributors:      - ["Bruno Volcov", "http://github.com/volcov"]      - ["Andrew Taylor", "http://github.com/andrewjt71"]      - ["Jason Stathopulos", "http://github.com/SpiritBreaker226"] +    - ["Milo Gilad", "http://github.com/Myl0g"]  filename: LearnGit.txt  --- @@ -23,7 +24,7 @@ manage your source code.  Version control is a system that records changes to a file(s), over time. -### Centralized Versioning VS Distributed Versioning +### Centralized Versioning vs. Distributed Versioning  * Centralized version control focuses on synchronizing, tracking, and backing   up files. @@ -157,6 +158,7 @@ $ git init --help  To intentionally untrack file(s) & folder(s) from git. Typically meant for  private & temp files which would otherwise be shared in the repository. +  ```bash  $ echo "temp/" >> .gitignore  $ echo "private_key" >> .gitignore @@ -189,6 +191,9 @@ $ git add /path/to/file/HelloWorld.c  # Regular Expression support!  $ git add ./*.java + +# You can also add everything in your working directory to the staging area. +$ git add -A  ```  This only adds a file to the staging area/index, it doesn't commit it to the @@ -226,7 +231,7 @@ Manage your tags  $ git tag  # Create a annotated tag -# The -m specifies a tagging message,which is stored with the tag. +# The -m specifies a tagging message, which is stored with the tag.  # If you don’t specify a message for an annotated tag,  # Git launches your editor so you can type it in.  $ git tag -a v2.0 -m 'my version 2.0' @@ -526,12 +531,13 @@ $ git reset --hard 31f2bb1  Reflog will list most of the git commands you have done for a given time period,  default 90 days. -This give you the a change to reverse any git commands that have gone wrong -for instance if a rebase is has broken your application. +This give you the chance to reverse any git commands that have gone wrong  +(for instance, if a rebase has broken your application).  You can do this:  1. `git reflog` to list all of the git commands for the rebase +  ```  38b323f HEAD@{0}: rebase -i (finish): returning to refs/heads/feature/add_git_reflog  38b323f HEAD@{1}: rebase -i (pick): Clarify inc/dec operators diff --git a/go.html.markdown b/go.html.markdown index 50692f9c..e5263cf6 100644 --- a/go.html.markdown +++ b/go.html.markdown @@ -99,7 +99,7 @@ can include line breaks.` // Same string type.  	// Arrays have size fixed at compile time.  	var a4 [4]int           // An array of 4 ints, initialized to all 0. -	a5 := [...]int{3, 1, 5, 10, 100} // An array initialized with a fixed size of fize +	a5 := [...]int{3, 1, 5, 10, 100} // An array initialized with a fixed size of five  	// elements, with values 3, 1, 5, 10, and 100.  	// Slices have dynamic size. Arrays and slices each have advantages diff --git a/ru-ru/c++-ru.html.markdown b/ru-ru/c++-ru.html.markdown index cef5ab7e..b9704fc3 100644 --- a/ru-ru/c++-ru.html.markdown +++ b/ru-ru/c++-ru.html.markdown @@ -853,7 +853,7 @@ pt2 = nullptr;  // Устанавливает pt2 в null.  // '=' != '=' != '='!  // Вызывает Foo::Foo(const Foo&) или некий вариант (смотрите "move semantics") -// копирования конструктора. +// конструктора копирования.  Foo f2;  Foo f1 = f2; diff --git a/ru-ru/php-ru.html.markdown b/ru-ru/php-ru.html.markdown index 181368de..2512201b 100644 --- a/ru-ru/php-ru.html.markdown +++ b/ru-ru/php-ru.html.markdown @@ -687,45 +687,6 @@ use My\Namespace as SomeOtherNamespace;  $cls = new SomeOtherNamespace\MyClass(); -*//********************** -* Позднее статическое связывание. -* -*/ - -class ParentClass -{ -    public static function who() -    { -        echo "I'm a " . __CLASS__ . "\n"; -    } - -    public static function test() -    { -        // self ссылается на класс в котором определен метод. -        self::who(); -        // static ссылается на класс в котором метод вызван. -        static::who(); -    } -} - -ParentClass::test(); -/* -I'm a ParentClass -I'm a ParentClass -*/ - -class ChildClass extends ParentClass -{ -    public static function who() -    { -        echo "But I'm " . __CLASS__ . "\n"; -    } -} - -ChildClass::test(); -/* -I'm a ParentClass -But I'm ChildClass  /**********************  * Позднее статическое связывание. | 
