Skip to content

Instantly share code, notes, and snippets.

View andrejIka's full-sized avatar

Andrej B. andrejIka

View GitHub Profile
@andrejIka
andrejIka / js-task-1.md
Created May 19, 2018 18:23 — forked from codedokode/js-task-1.md
Задания на яваскрипт (простые)
@andrejIka
andrejIka / Тестирование.md
Created May 22, 2018 16:03 — forked from codedokode/Тестирование.md
Автоматизированное тестирование

Автоматизированное тестирование

Если ты пишешь код, то наверняка его тестируешь. Если речь о какой-то функции, то ты можешь вызывать ее с разными аргументами, и смотреть, что она вернет. Если ты сверстал сайт, то ты открываешь его в браузере, жмешь ссылки и кнопки, проверяешь что все сделано верно. Это называется ручное тестирование — человек проверяет работу программы. Нельзя ли эту задачу переложить на плечи роботов? Обычно можно, и это называется автоматизированное тестирование.

Тестирование позволяет сделать твой код надежнее, а твою жизнь проще. Ведь согласись, лучше когда ты сам обнаруживаешь и исправляешь ошибку до релиза, чем когда рассерженный заказчик звонит на выходных и требует срочно исправить неработающий функционал.

Тестирование особенно полезно при разработке больших приложений в большой команде, когда ты можешь нечаянно сломать какую-то функцию, которую делал другой человек, и о которой ты не знал. Или когда надо доработать написанный ранее сложный проект.

В больших компаниях может быт

@andrejIka
andrejIka / list.txt
Created May 25, 2018 06:33
php functions
bool isset ( mixed $var [, mixed $... ] )<br>isset — Determine if a variable is set and is not NULL
void echo ( string $arg1 [, string $... ] )<br>echo — Output one or more strings
bool empty ( mixed $var )<br>empty — Determine whether a variable is empty
string substr ( string $string , int $start [, int $length ] )<br>substr — Return part of a string
int count ( mixed $array_or_countable [, int $mode = COUNT_NORMAL ] )<br>count — Count all elements in an array, or something in an object
bool is_array ( mixed $var )<br>is_array — Finds whether a variable is an array
int strlen ( string $string )<br>strlen — Get string length
string sprintf ( string $format [, mixed $args [, mixed $... ]] )<br>sprintf — Return a formatted string
void unset ( mixed $var [, mixed $... ] )<br>unset — Unset a given variable
mixed str_replace ( mixed $search , mixed $replace , mixed $subject [, int &$count ] )<br>str_replace — Replace all occurrences of the search string with the replacement string
@andrejIka
andrejIka / README.md
Created September 26, 2018 14:07 — forked from kerryboyko/README.md
VueJS Best Practices Guide

Deverus Vue.js Style Guide

Guide for developing Vue.js applications.

v. 0.0.1

Vue.js is an amazing framework, which can be as powerful as Angular or React, the two big heavy hitters in the world of front-end frameworks.

However, most of Vue's ease-of-use is due to the use of Observables - a pattern that triggers re-renders and other function calls with the reassignment of a variable.

@andrejIka
andrejIka / README.md
Created December 21, 2018 06:30 — forked from ngryman/README.md
intellij javascript live templates

intellij javascript live templates

Just a dump of handy live templates I use with IntelliJ. They should also work with WebStorm.

How to

  • Go to settings.
  • Search for live templates.
  • Under the javascript section you should be able to manage your templates.
@andrejIka
andrejIka / osx_setup.md
Created December 21, 2018 06:32 — forked from mcls/osx_setup.md
Setup mac for ruby dev
@andrejIka
andrejIka / WordPress Standalone PHP
Created February 7, 2019 12:25 — forked from karlazz/WordPress Standalone PHP
Running WordPress functions as a standalone php file
<!DOCTYPE HTML>
<!-- attribution -- this blog provided the code
http://blog.makingsense.com/2011/03/create-stand-alone-web-pages-or-widgets-that-use-wordpress-functions/
-->
<?php
//required include files
require('wp-blog-header.php');
require_once("wp-config.php");
require_once("wp-includes/wp-db.php");
@andrejIka
andrejIka / Free O'Reilly Books.md
Created February 24, 2019 18:44 — forked from augbog/Free O'Reilly Books.md
Free O'Reilly Books

Free O'Reilly books and convenient script to just download them.

Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post

How to use:

  1. Take the download.sh file and put it into a directory where you want the files to be saved.
  2. cd into the directory and make sure that it has executable permissions (chmod +x download.sh should do it)
  3. Run ./download.sh and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.