Skip to content

Instantly share code, notes, and snippets.

View vovs03's full-sized avatar
💭
λ Functional Pro | Haskell

Vλadimir Pavλychev vovs03

💭
λ Functional Pro | Haskell
View GitHub Profile
@vovs03
vovs03 / main.py
Created August 6, 2017 23:32 — forked from gurland/main.py
How to delete all your messages from chat in telegram? Easy, just use this program
from telethon import TelegramClient
from telethon.errors import SessionPasswordNeededError
from telethon.tl.functions.messages import GetHistoryRequest
from telethon.tl.functions.channels import DeleteMessagesRequest
from telethon.tl.types.channel import Channel
import shelve
from os import listdir
from time import sleep
# Просто утилиты
@vovs03
vovs03 / silver.md
Created September 7, 2017 13:48 — forked from sean2121/silver.md

Ruby Association Certified Ruby Examination Silver Sample Questions

Q1. Which of the following have true values in Ruby? (Choose two.)

  • (a) ""
  • (b) 0
  • (c) false
  • (d) nil

@vovs03
vovs03 / README.md
Created September 7, 2017 21:00 — forked from jodosha/README.md
Mount Hanami inside Rails

1. Setup

rails new blog
cd blog
hanami new bookshelf
vim Gemfile # add `hanami`
bundle
vim bookshelf/config/environment.rb # See Note 1
1. Знание основ Ruby, фреймворка Ruby on Rails
- http://guides.rubyonrails.org/
- http://rusrails.ru/
Вопросы:
1. Чем отличается статическая и динамическая типизации в языках программирования?
2. Какие виды наследования поддерживаются в Ruby?
3. Что такое модуль? Какая разница между классом и модулем?
4. Какие есть уровни контроля доступа к методам для классов и модулей?
5. Какие есть способы вызова методов в Ruby?
6. Что означает ключевое слово self?
@vovs03
vovs03 / change-favicon.js
Created December 26, 2017 20:38 — forked from mathiasbynens/change-favicon.js
Dynamically changing favicons with JavaScript
/*!
* Dynamically changing favicons with JavaScript
* Works in all A-grade browsers except Safari and Internet Explorer
* Demo: http://mathiasbynens.be/demo/dynamic-favicons
*/
// HTML5™, baby! http://mathiasbynens.be/notes/document-head
document.head || (document.head = document.getElementsByTagName('head')[0]);
function changeFavicon(src) {
@vovs03
vovs03 / Markdown-docs.md
Created December 27, 2017 07:43 — forked from Jekins/Markdown-docs.md
Руководство по оформление Markdown файлов

Настоящий документ предназначен для ознакомления пользователя с функциональными возможностями языка разметки Markdown. Markdown – это облегченный язык разметки, который является инструментом преобразования кода в HTML. Главной особенностью данного языка является максимально простой синтаксис, который служит для упрощения написания и чтения кода разметки, что, в свою очередь, позволяет легко его корректировать. Теперь рассмотрим более подробно функции языка разметки Markdown.

Markdown не является заменой HTML. Синтаксис Markdown достаточно ограничен, и соответствует лишь небольшому подмножеству элементов HTML. Он включает в себя следующие элементы:

  1. Блочные элементы
Your views:
=== show.html.erb ===
<% content_for :header do
stylesheet_link_tag 'blabla'
end %>
<% content_for :header do
javascript_include_tag 'blabla'
end %>
<div>
@vovs03
vovs03 / Gold.md
Created September 7, 2017 15:48 — forked from sean2121/Gold.md

Ruby Association Certified Ruby Examination Gold Sample Questions

Q1. Assume that the following code must have the stated execution result.

__(1)__
x.each_line { |line| puts line }

[Execution Result]
apple
@vovs03
vovs03 / gist:d66241a05041055b9c32aa15f3c8ba7f
Created February 1, 2018 16:29 — forked from ryansobol/gist:5252653
15 Questions to Ask During a Ruby Interview

Originally published in June 2008

When hiring Ruby on Rails programmers, knowing the right questions to ask during an interview was a real challenge for me at first. In 30 minutes or less, it's difficult to get a solid read on a candidate's skill set without looking at code they've previously written. And in the corporate/enterprise world, I often don't have access to their previous work.

To ensure we hired competent ruby developers at my last job, I created a list of 15 ruby questions -- a ruby measuring stick if you will -- to select the cream of the crop that walked through our doors.

What to expect

Candidates will typically give you a range of responses based on their experience and personality. So it's up to you to decide the correctness of their answer.

@vovs03
vovs03 / sublime_plugins.txt
Created February 2, 2018 09:24 — forked from fedorkk/sublime_plugins.txt
My list of plugins for Sublime3
"AdvancedNewFile",
"Alignment",
"All Autocomplete",
"BracketHighlighter",
"CJSX Syntax",
"Colorsublime",
"ESLint",
"FileDiffs",
"Gist",
"GitSavvy",