Skip to content

Instantly share code, notes, and snippets.

curl 'https://api.pluskassa.ru/billing/offers' -H 'Cookie: token-tail=1aeac93fe6a67db4; refresh_token=98d5418d976a7016297dfd29c3be97d1' -H 'Origin: https://pluskassa.ru' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: ru,en-US;q=0.8,en;q=0.6' -H 'Authorization: TokenHead f492ee95780e0acf' -H 'Accept: application/json' -H 'Referer: https://pluskassa.ru/account/apps' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36' -H 'Connection: keep-alive' -H 'DNT: 1' --compressed --insecure
import React from 'react'
import bem from 'bem'
import {
IconTools,
EditIcon,
DeleteIcon,
} from 'shared/components/molecules/IconTools'
import './cashbox.scss'
@Graf009
Graf009 / init.coffee
Last active September 5, 2016 16:40
Sync Atom settings
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
git commit --amend && git push --follow-tags
@Graf009
Graf009 / index.js
Created September 17, 2015 09:09
Example of a Header error, message: Uncaught TypeError: Cannot read property 'type' of null
import React from 'react';
import { Layout, Content, Navigation, Button, Header } from 'react-mdl';
import 'react-mdl/extra/material.js';
import 'react-mdl/extra/material.css';
React.render(
<Layout fixedHeader>
<Header transparent title="Demo">
{false && <Button raised colored>LOG IN</Button>}
<Navigation className="header-navigation">
@Graf009
Graf009 / demo.js
Created August 28, 2015 07:44
Demo error "firstChild" in react-mdl
import React, { Component } from 'react';
import Modal from 'react-modal';
import { Textfield, Button, Grid, Cell } from 'react-mdl';
import 'react-mdl/extra/material.js';
import 'react-mdl/extra/material.css';
const mountModal = document.getElementById('modal');
const mountApp = document.getElementById('app');
Modal.setAppElement(mountModal);
Modal.injectCSS();