This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Функция принимает всего лишь один аргумент: порядковый номер коммента, который надо найти | |
// Она сама тыкает на плюсик если надо еще подгрузить комеентов | |
// Найденный коммент выделяется желтым и страница сама к нему проскролится | |
// With <3 from iurevych | |
function findComment(commentToFind) { | |
const commentsCount = document.querySelectorAll('ul [role="button"]').length - 1 | |
if (commentsCount < (commentToFind - 1)) { | |
const expandMore = document.querySelector('[aria-label="Load more comments"]') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const SomeStore = types | |
.model('SomeStore', { | |
settings: types.optional(Settings, {}), | |
key1: '', | |
key2: false, | |
}) | |
.actions(self => ({ | |
load: () => { | |
makeYourAjaxCall().then(response => self.update(response.data)) | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require("./app.scss"); | |
import React from "react"; | |
import ReactDOM from "react-dom"; | |
import createReactClass from "create-react-class"; | |
import ColorPicker from "../../src/"; | |
import ColorSwatch from "./ColorSwatch"; | |
import colors from "./colors.json"; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved | |
set nocompatible | filetype indent plugin on | syn on | |
filetype off " required! | |
call plug#begin('~/.vim/plugged') | |
"Plug 'rstacruz/vim-hyperstyle' | |
Plug 'tpope/vim-fugitive' | |
Plug 'kchmck/vim-coffee-script' | |
Plug 'mileszs/ack.vim' | |
Plug 'rking/ag.vim' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% comment %} | |
subtotal check (>= 1499) is hardcoded on back-end | |
{% endcomment %} | |
{% if tiered.advocate_referrals.approved_count == 1 %} | |
true | |
{% else %} | |
Advocate's referrals count should equal 1 | |
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is an example of a code snippet that you can | |
// share with anyone publicly, or secretly by pressing "Create secret gist" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".js-countdown").countdown({ | |
until: "{{ friend_offer.valid_until_including_offset | format_date: "%s" }}", | |
labels: ["year", "month", "week", "days", "hours", "minutes", "seconds"], | |
layout: "Deal expires in {d<}{dn} {dl}, {d>} {hnn} {hl}, {mnn} {ml}, {snn} {sl}.", | |
onExpiry: hideCountdown | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Pop-up and its toggle | |
$('[data-toggle]').click(function(e) { | |
var element = $(this).attr('data-toggle'); | |
var $popup = $('[data-popup="' + element + '"]'); | |
$popup.hasClass('is-shown') ? $popup.hide().removeClass('is-shown') : $popup.show().addClass('is-shown'); | |
e.preventDefault(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ip: 84.48.236.85 | |
time: 05:41:45 | |
request: /public/blivakker/purchases/create.js?campaign_tags[]=desk | |
v=0.4 | |
p[order_number]=9698245 | |
p[order_date]=28.10.2014+12%3a30%3a20 | |
p[email]=sr36083%40gmail.com | |
p[subtotal]=448.00 | |
p[customer_id]=3696467 | |
p[i][1][product_id]=3012976 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[BliVakker.no] Talkable integration error detected | |
The reason was because: | |
The request to create a new origin received: {"email":"[email protected]","order_number":"9698245","subtotal":448.0}. | |
Talkable has existing origin: {"email":"[email protected]","order_number":"9698245","subtotal":419.0}. | |
ip: 84.48.236.85 | |
time: 05:30:22 | |
request: /public/blivakker/purchases/create.js?campaign_tags[]=desk | |
v=0.4 |
NewerOlder