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
;(function(){
angular.module('myAppUsers.controllers', [])
.controller('ListController', function(){
console.log("users");
});
}());
;(function(){
angular.module('myAppArticles.controllers', [])
.controller('ListController', function(){
<?php
class IWithStatic {
public static function create(){
$a = new static;
var_dump($a);
}
}
class IWithSelf {
public static function create(){
$a = new self;
@mkusher
mkusher / receiver.c
Last active August 29, 2015 14:06
ekz
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
//Это ключ для создания ipc-ключа. Должен быть одинаковый в двух процессах
//+Надо создать файл с таким именем
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
"use strict";
describe("login page", function() {
browser.get("/login");
it("should have page title EHR", function(){
expect(browser.getTitle()).toEqual('EHR');
});
});
@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
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"
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
@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
var config = require('./app/config/gulp/');
var gulp = require('./bin/build/')([
'browserify',
'parameters',
'resources',
'test',
'styles',
'globals',
'watch'