Skip to content

Instantly share code, notes, and snippets.

View creeonix's full-sized avatar
🇫🇮
Working from home

Serge Bondar creeonix

🇫🇮
Working from home
  • ThredUP
  • Niagara Falls, Canada
  • 01:36 (UTC -04:00)
View GitHub Profile
{"status": "ok"}
@creeonix
creeonix / cloudSettings
Last active August 7, 2019 17:43
Settings VSC
{"lastUpload":"2019-08-07T17:43:01.639Z","extensionVersion":"v3.4.1"}
@creeonix
creeonix / react_upgrading.md
Last active March 14, 2019 19:51 — forked from hoblin/react_upgrading.md
Roadmap to upgrade react from 0.13 to 16

This document is a short how-to. It doesn't contain a lot of details about each change you need to implement, but it contains lots of links to the corresponding documents. Please read these docs for refetence.

Upgrade process in general.

1. Setup eslint

ESLint is the main tool to find deprecations in the code so first of all we need to configure it properly.

Prerequisites

@creeonix
creeonix / first_assignment.erl
Created February 28, 2017 16:35
First week future learn assignment
-module(first_assignment).
-export([perimeter/1, area/1, enclosing/1, bits/1, tbits/1]).
%%%%%%%%%%%%%%%%%%%%%
% shapes
%%%%%%%%%%%%%%%%%%%%%
% all shapes are represented by one point and parameters
% {rectangle, {x, y}, {width, height}}
% {circle, {x, y}, radius}
По умолчанию в винде включена функция оптимизации доставки обновлений.
Это означает, что скачанные вами обновления будут раздаваться другим пользователям. Отключить:
Start–Settings–Update&Security–Windows Update–Advanced Options–Choose how updates are delivered
Параметры > Обновление и безопасность > Центр обновления Windows и выберите Дополнительные параметры.
На странице Дополнительные параметры выберите Способ доставки обновлений и отключите оптимизацию доставки с помощью переключателя. После отключения этой функции вы по–прежнему будете получать обновления и приложения из Центра обновления Windows и Магазина Windows.
В Параметры — Конфиденциальность можно отключить некоторые параметры слежки.
Для параноиков заблочить телеметрию:
В файл C:\Windows\System32\Drivers\etc\hosts добавить следующее (дефисы, возможно, нужно будет перебить руками):
@creeonix
creeonix / irb.rb
Last active August 29, 2015 14:16
eval ["011001100100111010000110101101101010011011001110000001001011110000000100110110100100010000010100010001111010100111110101010000110000110101000111011010011000010101000011000011011111011100111101100100010100011110101001111101011111011100011101101011010000010001000111001010011101110101000111001010011000000101000111001010011101110100000100000001000000010000000100000001000100011110101001101101010000010000010100110100110101100111111010110100110101100101000111101010011011010110010100010001000011010001000100000101000100011110101001011101010100001100001101010001110110100110000101010000110000110111110111001111011001000101000111101010010111010100000100000001000000010000000100000001000000010000000100010001110010100111001101010001110010100110000001010001110010100111001101000001000100011110101001101101010000010000010100110100110101100111111010110100110101100101000111101010011011010110010100010001000011010001000100000101000100011110101001011101010100001100001101111110100100001100001101111101110011110110010001010001111
@creeonix
creeonix / release
Last active August 29, 2015 14:16
#!/bin/bash
git stash
git checkout release
git pull --tags
git checkout master
git pull
last_version=$(git for-each-ref --sort=taggerdate --format '%(refname)' refs/tags | tail -1 | grep -Eo '\d{1,2}\.\d{1,2}\.')
patch_level=$(git for-each-ref --sort=taggerdate --format '%(refname)' refs/tags | tail -1 | grep -Eo '[0-9]{1,2}$')
patch_level=$((patch_level+1))
# This is updated version for RSpec 3, orgiginaly taken from here:
# https://gist.github.com/fotinakis/3a532a0929f64b4b5352
#
# Custom rspec matcher for testing CanCan abilities.
# Originally inspired by https://github.com/ryanb/cancan/wiki/Testing-Abilities
#
# Usage:
# expect.to have_abilities(:create).on(Post.new)
# expect.to have_abilities([:read, :update]).on(post)
# expect.to have_abilities({manage: false, destroy: true}).on(post)
@creeonix
creeonix / cover-letter.md
Created May 14, 2011 23:08 — forked from jcoglan/cover-letter.md
How to write a cover letter

Dear XCorp / Hi, XCorp depending on familiarity

I'm writing in response to X, where you advertised a vacancy for Y. I am interested in applying for this role -- please find my CV attached.

My current employment position is X, which means I'm responsible for delivering/organising/producing A, B, and C. I was previously the Y at Z where I did D. My main responsibility / largest project here has been P, which is a Widget that produces Doo-dads.

While I enjoy working at X for reasons K and L, I find M frustrating. I'm also looking to move on into areas such as N, P and Q, without losing touch with K. I find K valuable but I would prefer to change my working environment to include P.

I'm particularly interested in XCorp because, as well as providing the career experience I'm after, I use your product / admire your work / look up to your staff for these reasons: ...

@creeonix
creeonix / rails_3_1_beta_1_changes.md
Created May 11, 2011 23:34 — forked from ryanb/rails_3_1_rc4_changes.md
The Changelogs for Rails 3.1 Beta 1

Railties 3.1 Beta 1

  • The -j option of the application generator accepts an arbitrary string. If passed "foo", the gem "foo-rails" is added to the Gemfile, and the application JavaScript manifest requires "foo" and "foo_ujs". As of this writing "prototype-rails" and "jquery-rails" exist and provide those files via the asset pipeline. Default is "jquery". [fxn]

  • jQuery is no longer vendored, it is provided from now on by the jquery-rails gem. [fxn]

  • Prototype and Scriptaculous are no longer vendored, they are provided from now on by the prototype-rails gem. [fxn]

  • The scaffold controller will now produce SCSS file if Sass is available [Prem Sichanugrist]