This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(function(){ | |
angular.module('myAppUsers.controllers', []) | |
.controller('ListController', function(){ | |
console.log("users"); | |
}); | |
}()); | |
;(function(){ | |
angular.module('myAppArticles.controllers', []) | |
.controller('ListController', function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class IWithStatic { | |
public static function create(){ | |
$a = new static; | |
var_dump($a); | |
} | |
} | |
class IWithSelf { | |
public static function create(){ | |
$a = new self; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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-ключа. Должен быть одинаковый в двух процессах | |
//+Надо создать файл с таким именем |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
describe("login page", function() { | |
browser.get("/login"); | |
it("should have page title EHR", function(){ | |
expect(browser.getTitle()).toEqual('EHR'); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var config = require('./app/config/gulp/'); | |
var gulp = require('./bin/build/')([ | |
'browserify', | |
'parameters', | |
'resources', | |
'test', | |
'styles', | |
'globals', | |
'watch' |