Skip to content

Instantly share code, notes, and snippets.

View minya92's full-sized avatar

Mikhail Lapshin minya92

View GitHub Profile
function CompsList(comps) {
<select className="form-control">
comps.forEach(function(comp){
<option>{this.comp.name}</option>
})
</select>
}
import React, { Component } from 'react';
import 'bootswatch/cerulean/bootstrap.css';
import { Navbar, NavItem, Nav, Grid, Row, Col } from 'react-bootstrap';
import { Route, Link, Redirect} from 'react-router-dom';
import { LinkContainer } from 'react-router-bootstrap';
import {Reg, Login} from './Auth';
var loggined = true;
const Home = () => (
/**
* Created by lapsh on 16.05.2017.
*/
import React, { Component } from 'react';
import { FormGroup, ControlLabel, FormControl, HelpBlock, Button} from 'react-bootstrap';
function FieldGroup({ id, label, help, ...props }) {
return (
<FormGroup controlId={id}>
<ControlLabel>{label}</ControlLabel>
with qq as (
select 11
union all
select 12
union all
select 11
),
ww as (
select 1
union all
var els = document.getElementsByClassName('_4xev')
for (var i in els) {
els[i].click();
setTimeout(function(){
var a = document.getElementsByClassName('_54nh')
a[a.length -1].click()
}, 0)
setTimeout(function(){
var b = document.getElementsByClassName('uiOverlayButton')
b[1].click()
package main
import (
"time"
"github.com/tucnak/telebot"
)
func main() {
bot, err := telebot.NewBot("TOKEN")
if err != nil {
@minya92
minya92 / gist:7073622eff5f337b1f75bcda3581bd5f
Last active July 18, 2016 08:03
Операции в сессии
/**
*
* @author Alexey
* @module
*/
function TradeOperationsInSession(aContainer, aSessionId, aReturn) {
console.log(aSessionId);
var self = this, model = this.model;
if(aReturn)
var header = ["Время", "Позиция", "Сумма", "Возврат"];