Skip to content

Instantly share code, notes, and snippets.

@uniconstructor
uniconstructor / SketchSystems.spec
Last active October 3, 2022 15:00 — forked from lynaghk/SketchSystems.spec
# начальный статус
# начальный статус
OnModeration*
# профиль корректно заполнен
CHECK -> Checked
REJECT -> Rejected
Checked
REMODERATE -> OnModeration
# данные профиля подтверждены
CONFIRM -> Confirmed
FROM php:7.0.4-fpm
RUN apt-get update && apt-get install -y libmcrypt-dev \
mysql-client libmagickwand-dev --no-install-recommends \
&& pecl install imagick \
&& docker-php-ext-enable imagick \
&& docker-php-ext-install mcrypt pdo_mysql
@uniconstructor
uniconstructor / currency_symbols.php
Created November 16, 2017 09:58 — forked from gibbs/currency_symbols.php
An array of currency symbols as HTML entities
<?php
$currency_symbols = array(
'AED' => '&#1583;.&#1573;', // ?
'AFN' => '&#65;&#102;',
'ALL' => '&#76;&#101;&#107;',
'AMD' => '',
'ANG' => '&#402;',
'AOA' => '&#75;&#122;', // ?
'ARS' => '&#36;',
'AUD' => '&#36;',
@uniconstructor
uniconstructor / sync.bat
Created April 24, 2016 20:31 — forked from voronoy/sync.bat
sync s3
aws s3 sync s3://source s3://target --acl public-read
@uniconstructor
uniconstructor / c.md
Last active August 29, 2015 14:20 — forked from SerafimArts/tips.md
  • На iOS устройствах числовые значения подчёркиваются синим. Эта проблема возникает из-за того, что iOS устройства по умолчанию считают все числа похожие на телефонные номера - телефонными номерами. Решается добавлением <meta name="format-detection" content="telephone=no" /> Тоже самое касается адреса: <meta name="format-detection" content="address=no" />

  • Пользователь может уменьшать и увеличивать приложение. Решается добавляением тега <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />

  • Ссылки нажимаются с задержкой (примерно 300ms). Решается подпиской на событие touchstart и принудительной инициализацией события click после него. Если проблема всё равно возникает - ничего не поделать, надо облегчать dom.

  • В android появляется синяя обводка вокруг ссылок с характерным звуком. Решение:

<html>
<head>
</head>
<body>
<script type="text/javascript">
var __db = {};
__db.key = 'YOUR_KEY_HERE';
__db.conditions = [
{ name: 'IndustryIsSoftware', attribute: 'industry', operator: '=', value: 'Software & Technology' }
,{ name: 'AudienceIsSMB', attribute: 'audience', operator: 'equals', value: 'SMB', standalone: false }
The MIT License (MIT)
Copyright (c) 2014 bluecloudy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: