Skip to content

Instantly share code, notes, and snippets.

View iurevych's full-sized avatar
💭
Helping great companies grow 🚀

Sergii Iurevych iurevych

💭
Helping great companies grow 🚀
View GitHub Profile
// Функция принимает всего лишь один аргумент: порядковый номер коммента, который надо найти
// Она сама тыкает на плюсик если надо еще подгрузить комеентов
// Найденный коммент выделяется желтым и страница сама к нему проскролится
// 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"]')
export const SomeStore = types
.model('SomeStore', {
settings: types.optional(Settings, {}),
key1: '',
key2: false,
})
.actions(self => ({
load: () => {
makeYourAjaxCall().then(response => self.update(response.data))
},
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";
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'
{% 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 is an example of a code snippet that you can
// share with anyone publicly, or secretly by pressing "Create secret gist"
$(".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
});
// 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();
});
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
[BliVakker.no] Talkable integration error detected
The reason was because:
The request to create a new origin received: {"email":"sr36083@gmail.com","order_number":"9698245","subtotal":448.0}.
Talkable has existing origin: {"email":"sr36083@gmail.com","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