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 / SublimeText 3 Plugins.md
Last active August 9, 2020 11:42
My stack Plugin's Sublime Text 3

User: Vladimir Pavlychev @vovs03

My stack : Ruby, RoR, HTML, CSS, JS, GIT

  • Emmet
  • BeautifyRuby
  • Better CoffeeScript
  • BracketHighlighter
  • Case Conversion
  • Rails Migrations List
@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 / 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 / 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 / factorio-current.log
Created November 10, 2017 13:05
Factorio log. Errors 2017-11-10
0.005 2017-11-10 15:51:12; Factorio 0.15.37 (build 30927, win64, steam)
0.005 Operating system: Windows 7 Service Pack 1
0.005 Program arguments: "F:\Program Files (x86)\steamapps\common\Factorio\bin\x64\Factorio.exe"
0.005 Read data path: F:/Program Files (x86)/steamapps/common/Factorio/data
0.005 Write data path: C:/Users/Minnion/AppData/Roaming/Factorio
0.005 Binaries path: F:/Program Files (x86)/steamapps/common/Factorio/bin
0.224 System info: [CPU: Intel(R) Core(TM)2 Duo CPU E6850 @ 3.00GHz, 2 cores, RAM: 4094MB]
0.416 Display options: [FullScreen: 1] [VSync: 0] [UIScale: 100%] [MultiSampling: OFF] [Screen: 255] [Lang: ru]
0.426 Available display adapters: 1
0.426 [0]: \\.\DISPLAY1 - NVIDIA GeForce 210 {0x05, [0,0], 2560x1080, 32bit, 60Hz}
@vovs03
vovs03 / import.html
Created November 22, 2017 10:23
HTML Imports
<template>
<h1>Hello World!</h1>
<!-- Img is not requested until the <template> goes live. -->
<img src="world.png">
<script>alert("Executed when the template is activated.");</script>
</template>
@vovs03
vovs03 / longest.rb
Last active December 8, 2017 10:25
Inspecting the logest words(string) [Выбор большего из аргументов]
#longest.rb
#puts "Now we can inspecting wich of words is longest"
puts "Input the first word."
a1 = gets.to_s
puts "Input the second word."
a2 = gets.to_s
@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) {