Skip to content

Instantly share code, notes, and snippets.

View lasekio's full-sized avatar

Sławomir Laskowski lasekio

View GitHub Profile
<?php
// ...
$account = $accountRepo->getAccount($id);
$accountBalance = $account->getBalance();
// nawet w tym momencie balance moze sie zmienic przez inny wątek / request / przerwanie
// nie należy spodziewać się, że kod będzie wykonywany zawsze synchronicznie
$accountBalance += $transaction->getAmount();
setTimeout(function f1() {
/// Kod trwający dłużej niż 10 ms
}, 0);
setTimeout(function f2() {
/// Kod trwający dłużej niż 10 ms
}, 5);
describe('friends button', function() {
describe('when user is not friend for current user', function() {
it('should show text ...');
it('should ... on click');
});
describe('when user is friend of current user', function() {
it('should show text ...');
it('should ... on click');
});
describe('when user sent invite to current user', function() {
var link = $('.link');
link.addClass('active') === link; // true
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [],
"entries": [
{
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [],
"entries": [
{
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [],
"entries": [
{
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [
{
"startedDateTime": "2015-09-30T11:50:59.825Z",