Skip to content

Instantly share code, notes, and snippets.

View alexshk's full-sized avatar
🙊
Forking from home

Alex S. alexshk

🙊
Forking from home
  • WB
  • Sydney
View GitHub Profile
@alexshk
alexshk / ps_scale_fix.sh
Last active October 3, 2020 02:12 — forked from thejoltjoker/ps_scale_fix.sh
Fix Adobe Photoshop CC 2019 default proportional scaling.
echo "TransformProportionalScale 0" > ~/Library/Preferences/Adobe\ Photoshop\ CC\ 2020\ Settings/PSUserConfig.txt
@alexshk
alexshk / constructor.json
Last active May 26, 2023 17:20
Astoria JSON
{
"products": [{
"value": 3,
"label": "Ветчина",
"group_id": 1,
"recipes": [1]
},
...
{
"value": 4,
@alexshk
alexshk / empty.html
Last active October 16, 2016 02:00
Swim
<div class="basket">
<div class="basket-container">
<h1>Order #1867<sup>13 July 2016</sup></h1><!-- Детали заказа, заполняются на сервере -->
<p>Check the correctness of the order and the number of leotards</p>
<div id="basket"></div>
<script>
# Переменная со списком заказанных моделей
window.basket = {
models: [
{
@alexshk
alexshk / basket.html
Last active September 15, 2016 14:50
<div class="basket">
<script type="text/javascript">
window.basket_data = {
models: [
{
id: 1,
title: 'Leotard',
item_price: 333,
{
"result": "success",
"total_objects": 4435 // всего объектов
"page": 1, // текущая страница в сортировке
"total_pages": 45 // всего страниц
"sort": "price" // сортировка
"sort_direction": "asc" // направление сортировки
"apartments": [ // массив квартир
{
"id": 133, // id квартиры
@alexshk
alexshk / deploy.rb
Created July 4, 2016 00:50
Deply Rails App with Puma and Nginx via Mina
require 'mina/bundler'
require 'mina/rails'
require 'mina/git'
require 'mina/rvm' # for rvm support. (http://rvm.io)
set :domain, 'esdb.cn'
set :identity_file, '/User/somebody/.ssh/somebody.pem'
set :deploy_to, '/home/ubuntu/apps/xxx.com'
set :repository, 'ssh://git@bitbucket.org/somebody/xxx.com.git'
set :branch, 'master'
// нужен ответ
.p
На протяжении многих веков клан ЧИМА передавал из поколения в поколение миф о сотворении мира -
.word.empty(data-id="1")
.text
%input(type="text" placeholder="...................")
.empty-word Историю.
// неправильный ответ
.p
{
"response": {
"type": "error",
"error_text": "текст ошибки",
"to_name": "",
"to_email": "",
"from_name": "",
"message": "",
"captcha": "",
"type": 1 // стиль открытки. 1 - розы, 2 - тюльпаны, 3 - полевые цветы
@alexshk
alexshk / popup_social.html
Last active December 28, 2015 20:39
Описание работы шаринга в соцсети
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Rich</title>
<meta property="og:title" content="<!-- тайтл сюда -->">
<meta property="og:image" content="<!-- картинка сюда -->"/>
{
"networks": [ //Массив сетей
{
"title": "36,6", //Название сети
"id": 1, //ID сети
"image": "/f/images/logo-366.png" //ccылка на логотип сети
}
],
"points": [ //Массив точек
{