These rules are adopted from the AngularJS commit conventions.
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
// in config/main.php | |
'params' => array( | |
'defaultPageSize' => 20, | |
), | |
// in controller action | |
public function actionIndex() | |
{ | |
if ( isset( $_GET[ 'pageSize' ] ) ) | |
{ |
apiVersion: v1 | |
kind: Template | |
metadata: | |
name: zalenium | |
annotations: | |
"openshift.io/display-name": "Zalenium" | |
"description": "Disposable Selenium Grid for use in OpenShift" | |
message: |- | |
A Zalenium grid has been created in your project. Continue to overview to verify that it exists and start the deployment. |
<?php | |
namespace common\exception; | |
use e96\sentry\ErrorHandler; | |
use yii\base\Exception; | |
use yii\db\ActiveRecord; | |
class CantSave extends Exception |
Git for Windows comes bundled with the "Git Bash" terminal which is incredibly handy for unix-like commands on a windows machine. It is missing a few standard linux utilities, but it is easy to add ones that have a windows binary available.
The basic idea is that C:\Program Files\Git\mingw64\
is your /
directory according to Git Bash (note: depending on how you installed it, the directory might be different. from the start menu, right click on the Git Bash icon and open file location. It might be something like C:\Users\name\AppData\Local\Programs\Git
, the mingw64
in this directory is your root. Find it by using pwd -W
).
If you go to that directory, you will find the typical linux root folder structure (bin
, etc
, lib
and so on).
If you are missing a utility, such as wget, track down a binary for windows and copy the files to the corresponding directories. Sometimes the windows binary have funny prefixes, so
<?php | |
/** | |
* Generates human-readable string. | |
* | |
* @param string $length Desired length of random string. | |
* | |
* retuen string Random string. | |
*/ | |
function readable_random_string($length = 6) |
Uncle Bob, the well known author of Clean Code, is coming back to us with a new book called Clean Architecture which wants to take a larger view on how to create software.
Even if Clean Code is one of the major book around OOP and code design (mainly by presenting the SOLID principles), I was not totally impressed by the book.
Clean Architecture leaves me with the same feeling, even if it's pushing the development world to do better, has some good stories and present robust principles to build software.
The book is build around 34 chapters organised in chapters.
<?php | |
/** | |
* Created by PhpStorm. | |
* User: fantomx1 | |
* Date: 22.9.2018 | |
* Time: 21:31 | |
*/ | |
require 'vendor/autoload.php'; |
Možnosti na zváženie, 1) veľa Vitamin-C vnútrožilne, 2) bakteriofágy, 3) omega-3 FA , 5) Staph. Aureus toxin antibodies | |
stručne v sumároch v pár vetách | |
https://diigo.com/0f5rux Why sepsis from a staph infection causes organ failure | |
"Normally, platelets coat bacteria to prevent the spread of a microbe throughout the patient. However, during sepsis caused by staph infection, as the amount of toxin in the bloodstream increases, the platelets aggregate to form clumps." | |
https://theconversation.com/new-device-uses-nano-magnets-to-cleanse-bad-blood-when-sepsis-strikes-31715 | |
But the reality is that there is circulating dead pathogen debris and many toxins, which are primary triggers of the inflammatory cascade that leads to sepsis. The power of this device is that it binds to dead pathogens and toxins as well as live bugs." | |
https://diigo.com/0f6ki8 "bacterial debris, apart from bacterial proliferation, triggers a septic response" |