Skip to content

Instantly share code, notes, and snippets.

@fimak
fimak / sublimePluginsList.txt
Created July 23, 2016 09:32
sublime text 3 plugins
AutoFileName
Babel
BracketHighlighter
DocBlockr
Emmet
EncodingHelper
GitGutter
MarkdownEdititng
PackageControl
PyV8
@fimak
fimak / about.txt
Last active September 17, 2015 09:46
Code Samples for SberbankTechnologies
Примеры кода:
https://gist.github.com/fimak/17dd70253612ef7e98f1
Bookyou-booking.js
Отрывок кода backbone моделей и вьюх из проекта бронирования услуг.
bookyou-dhtmlx-calendar.js
Отрывок кода, этого же проектаю Переопределял и дополнял некоторые функций библиотеки dhtmlx-calendar
Ссылка на проект - https://bookyou.ch/ - но он в каком то странном ссостоянии сейчас
@fimak
fimak / delegate.php
Created March 5, 2015 10:33
PHP Delegate pattern. Object instead of performing one of its stated tasks, delegates that task to an associated helper object. It helps us to inherit 2 methods from 2 different classes.
<?php
class A
{
public function aFunc()
{
echo __CLASS__;
}
}
@fimak
fimak / ArraySplitter.php
Last active July 30, 2016 21:51
Test job - Split Array
<?php
class ArraySplitter
{
public $x; //the X
public $a; //array
public $n; //count of all elements
public $k; //index of searching
public $left; //count of $x in left part
public $right; //count of !$x in right part
@fimak
fimak / controller.SiteController.php
Last active August 29, 2015 14:06
highcharts test script
<?php
class SiteController extends Controller
{
/**
* Declares class-based actions.
*/
public function actions()
{
return array(
<?php
class CalcParser
{
public function parse($str)
{
$result = $this->PlusMinus($str);
if (!empty($result->rest)) {
echo "Error: can't parse all.<br />";
echo "rest: " . $result->rest;
}