Skip to content

Instantly share code, notes, and snippets.

View BEaStia's full-sized avatar
💭
Да ты просто конченый, если что-то здесь забыл

Igor Pavlov BEaStia

💭
Да ты просто конченый, если что-то здесь забыл
View GitHub Profile
@BEaStia
BEaStia / external_api.md
Created October 7, 2019 18:36
External API with Paid actions

Worki External API

Внешнее API Worki предоставляет возможности для автоматизированного добавления новых вакансий, управления статусами вакансий, получения списка откликов и управления статусами откликов.

Аббревиатуры

VAS - Value Added Service. Услуга, которую мы предоставляем. VAS'ы бывают:

  1. размещение вакансии. Код: job_publication.
  2. поднятие вакансии в поиске. Код job_refresh.
  3. выделение вакансии на 24 часа. Код job_highlight.
  4. вакансия дня на 1/3/7 дней. Код 7 дней - elevation_plus, 3 дней - elevation_3d, 1 день - elevation_1d.
@BEaStia
BEaStia / Gemfile
Created August 14, 2018 07:00
ActiveRecord without rails(for rails 5.1)
source 'https://rubygems.org'
gem 'activerecord'
gem 'rake'
gem 'pg'
@BEaStia
BEaStia / shit.rb
Last active October 3, 2017 08:20
oh my god
def extract_info_from_query_or_vars(query)
input_hash = eval(extract_values_from_mutation(query))
if @variables.present?
return { device_id: @variables[:deviceId],
email: @variables[:email],
password: @variables[:password],
fb_token: @variables[:fbToken] }
end
{ device_id: input_hash[:deviceId],
email: input_hash[:email],
# frozen_string_literal: true
require 'singleton'
# Factory for building
class HumanBuilder
include Singleton
COUNTRIES = %i(RU BY US).freeze
TYPES = %i(cities names streets surnames).freeze
attr_accessor :fails_count, :files_data, :records
str1 = 'abc def fegh '
str2 = 'feg qwe eerwr feg'
class WordDivider
MAX_WORD_SIZE = 15
MIN_WORD_SIZE = 1
attr_accessor :text, :substrings
def initialize(string)
class CreateProjects < ActiveRecord::Migration[5.0]
def change
create_table :projects do |t|
t.string :name
t.timestamps
end
end
end
1: [Unity] Initialize engine version: 5.4.0f3 (a6d8d714de6f)
2: [Unity] -----CompilerOutput:-stdout--exitcode: 1--compilationhadfailure: True--outfile: Temp/Assembly-CSharp.dll
3: [Unity] Compilation failed: 127 error(s), 0 warnings
4: [Unity] error CS2001: Source file `Assets/NGUI/Scripts/Interaction/LanguageSelection.cs' could not be found
5: [Unity] error CS2001: Source file `Assets/NGUI/Scripts/Interaction/UIButton.cs' could not be found
6: [Unity] error CS2001: Source file `Assets/NGUI/Scripts/Interaction/UIButtonActivate.cs' could not be found
7: [Unity] error CS2001: Source file `Assets/NGUI/Scripts/Interaction/UIButtonColor.cs' could not be found
8: [Unity] error CS2001: Source file `Assets/NGUI/Scripts/Interaction/UIButtonKeyBinding.cs' could not be found
9: [Unity] error CS2001: Source file `Assets/NGUI/Scripts/Interaction/UIButtonKeys.cs' could not be found
10: [Unity] error CS2001: Source file `Assets/NGUI/Scripts/Interaction/UIButtonMessage.cs' could not be found
@BEaStia
BEaStia / test.rb
Created January 28, 2016 13:55
solution to quiz
#input array was [1, 11, 21, 1211, 111221, 312211]
require 'benchmark'
class Record
attr_accessor :digit, :count
def initialize params
@digit = params[:digit]
@count = params[:count]