Skip to content

Instantly share code, notes, and snippets.

View tvorogme's full-sized avatar

Andrey Tvorozhkov tvorogme

View GitHub Profile
import React from 'react';
import './App.css';
class B extends React.Component {
constructor(props) {
super(props);
this.state = {};
this.state.b = this.props.lolkek
}
0: jdbc:hive2://localhost:10000/default> EXPLAIN select ch.basesum, chl.baseprice from check ch full join (select baseprice, checkuid from checkline limit 10) chl on chl.checkuid = ch.checkuid limit 10;
INFO : Compiling command(queryId=hadoop_20190429141949_636504bd-fc56-451c-9406-7a2640327d42): EXPLAIN select ch.basesum, chl.baseprice from check ch full join (select baseprice, checkuid from checkline limit 10) chl on chl.checkuid = ch.checkuid limit 10
INFO : Concurrency mode is disabled, not creating a lock manager
INFO : Semantic Analysis Completed (retrial = false)
INFO : Returning Hive schema: Schema(fieldSchemas:[FieldSchema(name:Explain, type:string, comment:null)], properties:null)
INFO : Completed compiling command(queryId=hadoop_20190429141949_636504bd-fc56-451c-9406-7a2640327d42); Time taken: 0.51 seconds
INFO : Concurrency mode is disabled, not creating a lock manager
INFO : Executing command(queryId=hadoop_20190429141949_636504bd-fc56-451c-9406-7a2640327d42): EXPLAIN select ch.basesum, chl
0: jdbc:hive2://localhost:10000/default> EXPLAIN select ch.basesum from check ch full join (select baseprice, checkuid from checkline limit 10) chl on chl.checkuid = ch.checkuid limit 10;
INFO : Compiling command(queryId=hadoop_20190428185334_b3e15ce0-71d2-4b24-89dc-7fbc475b0208): EXPLAIN select ch.basesum from check ch full join (select baseprice, checkuid from checkline limit 10) chl on chl.checkuid = ch.checkuid limit 10
INFO : Concurrency mode is disabled, not creating a lock manager
INFO : Semantic Analysis Completed (retrial = false)
INFO : Returning Hive schema: Schema(fieldSchemas:[FieldSchema(name:Explain, type:string, comment:null)], properties:null)
INFO : Completed compiling command(queryId=hadoop_20190428185334_b3e15ce0-71d2-4b24-89dc-7fbc475b0208); Time taken: 0.219 seconds
INFO : Concurrency mode is disabled, not creating a lock manager
INFO : Executing command(queryId=hadoop_20190428185334_b3e15ce0-71d2-4b24-89dc-7fbc475b0208): EXPLAIN select ch.basesum from check ch full join (select b
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tvorogme
tvorogme / exception.py
Created August 31, 2018 11:26
Python exception into string
try:
from lol import f
f()
except:
exc_type, exc_value, exc_traceback = sys.exc_info()
with io.StringIO() as buf:
traceback.print_exception(exc_type, exc_value, exc_traceback, file=buf)
print(buf.getvalue())
#!/bin/bash
if screen -ls | grep $SCREEN_NAME
then
screen -X -S $SCREEN_NAME quit
else
echo "Session doesn't exist, going on..."
fi
screen -dmS $SCREEN_NAME
{
"presets": ["env", "react"]
}
import React, {Component} from 'react'
import {connect} from 'react-redux'
import {updateLol} from './Redux'
class App extends Component {
constructor(props) {
super(props);
const a = updateLol("lolkekcheburek");
console.log(a);
# LS_COLORS
# Maintainers: Magnus Woldrich <m@japh.se>,
# Ryan Delaney <ryan.delaney@gmail.com> OpenGPG: 0D98863B4E1D07B6
# URL: https://github.com/trapd00r/LS_COLORS
# Version: 0.254
# Updated: Tue Mar 29 21:25:30 AEST 2016
#
# This is a collection of extension:color mappings, suitable to use as your
# LS_COLORS environment variable. Most of them use the extended color map,
# described in the ECMA-48 document; in other words, you'll need a terminal