Skip to content

Instantly share code, notes, and snippets.

View noff's full-sized avatar

Michael Kechinov noff

  • REES46
View GitHub Profile
@noff
noff / gist:8705086
Last active August 29, 2015 13:55
Тестовое задание HR
Здравствуйте.
Благодарю за то, что откликнулись на нашу вакансию: http://spb.hh.ru/vacancy/9856893
Попробуйте для начала выполнить небольшое тестовое задание.
Задача:
1. Найти информацию о пяти директорах нашей компании: ФИО, должность, контактная информация (телефон или e-mail).
2. Прислать эту информацию, а также свои ФИО, ссылку на резюме и сопроводительное письмо на e-mail исполнительного директора.
Итого, формат вашего письма:
1,101,5.0
1,102,3.0
1,103,2.5
2,101,2.0
2,102,2.5
2,103,5.0
2,104,2.0
3,101,2.5
3,104,4.0
3,105,4.5
@noff
noff / gist:10111433
Created April 8, 2014 11:22
CSS for Ortmen
.rees46-recommend .recommender-block-title {
width: 248px;
height: 23px;
background: url("/images/special_header.png") no-repeat 0 0;
font-size: 18px;
line-height: 23px;
font-weight: 500;
color: #FFF;
text-align: center;
margin: 15px auto 20px;
<?php
namespace Rees46\Component;
use CCatalogProduct;
use CFile;
use CModule;
use CCatalogDiscount;
use CCatalogSKU;
use Rees46\Options;
@noff
noff / gist:e035487c5f6926dfaf44
Created October 28, 2014 07:09
Определение цены товара
$item_id = intval($item_id);
$item = $libCatalogProduct->GetByIDEx($item_id);
$currency_code = 'RUB';
$picture = null;
// Получаем цену товара или товарного предложения
if(CCatalogSku::IsExistOffers($item_id)) {
// Для товарных предложений просто не показываем цену
//
// ViewController.m
// BunchTestObjectiveC
//
// Created by Михаил Кечинов on 16/12/14.
// Copyright (c) 2014 M.Kechinov's web-development studio, LLC. All rights reserved.
//
#import "ViewController.h"
#import "BNCHBunch.h"
@noff
noff / IRR
Created February 19, 2015 08:06
calculate = (valid = true) ->
# процент первого взноса от стоимости
calc_out.paid_pct = Math.round(100 * calc_in.paid / calc_in.total) + '%'
# подключаем библиотеку
calFinance = new Finance()
if calc_in.increase != null
@noff
noff / gist:6321451
Last active December 21, 2015 14:39
Daemon for track tweets by keywords
#!/usr/bin/env ruby
root = File.expand_path(File.dirname(__FILE__))
root = File.dirname(root) until File.exists?(File.join(root, 'config'))
Dir.chdir(root)
require File.join(root, "config", "environment")
require 'tweetstream'
@noff
noff / Code
Created September 14, 2013 08:15
Calls to graph_post_search_get have exceeded the rate of 10000 calls per 1 seconds. [HTTP 400]
app_id = "XXX";
app_secret = "YYY";
@oauth = Koala::Facebook::OAuth.new(app_id, app_secret)
app_oauth_token = @oauth.get_app_access_token
graph = Koala::Facebook::API.new(app_oauth_token)
while(true) do
@Override
public SimpleItemItemModel get() {
// Get the transposed rating matrix
// This gives us a map of item IDs to those items' rating vectors
Map<Long, ImmutableSparseVector> itemVectors = getItemVectors();
// Get all items - you might find this useful
LongSortedSet items = LongUtils.packedSet(itemVectors.keySet());
// Map items to vectors of item similarities