Skip to content

Instantly share code, notes, and snippets.

View mkusher's full-sized avatar
🥃
Ballmer's peak searching

Aleh Kashnikaў mkusher

🥃
Ballmer's peak searching
View GitHub Profile
Feature: Today.Visit page
As a doctor I need a page where I can enter patient's information about visit
Background:
Given I am "DOCTOR"
And I have an appointment
And I am on this appointment's page
@test
Scenario: Saving HPI form
Feature: Today.Visit page
As a doctor I need a page where I can enter patient's information about visit
Background:
Given I am DOCTOR
And I have an appointment
And I am on this appointment's page
Scenario: Saving HPI form
When I fill HPI form
import {Test, MyTest} from './test'
Test({t: 10});
let a = new MyTest;
export default class CoolWriter{
write(message) {
a.say(message);
}
var config = require('./app/config/gulp/');
var gulp = require('./bin/build/')([
'browserify',
'parameters',
'resources',
'test',
'styles',
'globals',
'watch'
@mkusher
mkusher / vimrc
Last active August 29, 2015 14:14
" Use Vim settings, rather than Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible
" allow backspacing over everything in insert mode
set backspace=indent,eol,start
set nobackup " do not keep a backup file, use versions instead
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
Looking in class: HttpKernel
This class has methods: __construct, handle, terminate, terminateWithException, handleRaw, filterResponse, finishRequest, handleException, varToString
Method __construct is public and have such arguments:
Method documentation:
Constructor
@param EventDispatcherInterface $dispatcher An EventDispatcherInterface instance
@param ControllerResolverInterface $resolver A ControllerResolverInterface instance
@param RequestStack $requestStack A stack for master/sub requests
@api
Name: $dispatcher, type: EventDispatcherInterface, default value: No default value
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
ModulePath "/usr/lib/nvidia-bumblebee,/usr/lib/xorg/modules"
@mkusher
mkusher / vimrc
Last active August 29, 2015 14:12
Vim configuraiton
" Use Vim settings, rather than Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible
" allow backspacing over everything in insert mode
set backspace=indent,eol,start
set nobackup " do not keep a backup file, use versions instead
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
"use strict";
describe("login page", function() {
browser.get("/login");
it("should have page title EHR", function(){
expect(browser.getTitle()).toEqual('EHR');
});
});
data Coords = Coords { x :: Integer
, y :: Integer
} deriving (Show)
data Relation = Relation Coords Coords deriving (Show)
data Vertex = Vertex { top :: Bool
, right :: Bool
, bottom :: Bool
, left :: Bool