Skip to content

Instantly share code, notes, and snippets.

View staslysak's full-sized avatar
🚀
Working from home

Stas Lysak staslysak

🚀
Working from home
View GitHub Profile
@heygrady
heygrady / start-server.js
Last active July 12, 2022 15:47
create-react-app ssr dev script
// @remove-on-eject-begin
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// @remove-on-eject-end
'use strict';
@lopspower
lopspower / README.md
Last active July 23, 2024 13:00
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@dhoko
dhoko / templateSettings.js
Created February 18, 2014 14:37
Lodash/underscore custom template settings with {{ }}
_.templateSettings = {
evaluate: /{{([\s\S]+?)}}/g,
interpolate: /{{=([\s\S]+?)}}/g,
escape: /{{-([\s\S]+?)}}/g
};
@disolovyov
disolovyov / _readme.md
Created October 15, 2011 22:18
Объектно-ориентированное программирование. Лабораторная работа 2.

Вариант 1

  • На 6: Заставить мух равномерно вращаться в полёте.
  • На 7: Заставить мух циклически и плавно увеличиваться и уменьшаться.
  • На 8: Сделать муху, которая при наведении на неё курсора «отползает» в привычном направлении, а иначе стоит на месте.

Вариант 2

  • На 8: Согласовать направление движения мухи с её углом наклона. Иными