$3x^2-5x+2=x^2+x+2$
2; 3
4; 5
1; -2
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
// https://www.codewars.com/kata/52dc4688eca89d0f820004c6/ | |
class Stack { | |
constructor() { | |
this.stack = [] | |
} | |
push(x) { | |
return this.stack.push(x) | |
} | |
pop() { | |
if (!this.len) throw Error |
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
<!DOCTYPE html> | |
<html lang='en'> | |
<head> | |
<meta charset='utf-8'> | |
<title>Rate</title> | |
<style> | |
.stars { | |
position: relative; | |
display: inline-block; | |
} |
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
.star { | |
float: left; | |
color: #aaa; | |
border-style: solid; | |
border-color: currentColor transparent; | |
border-width: 8px 10px 0; | |
margin-top: 6px; | |
transition: all 0.15s ease-in-out; | |
} | |
.star::before, |
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
body { | |
font-size: 48px; | |
font-family: arial; | |
} | |
p { | |
margin: 0 | |
} |
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
.main { | |
height: 300px; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
} | |
.box { | |
background: #000; | |
box-shadow: 0 0 0 50px; |
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
/** | |
* clearfix | |
*/ | |
.left, .right { | |
width: 200px; | |
margin: 20px; | |
} | |
.left { |
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
var css = [ | |
["background: url('pic.png');", "background: url('../../common.blocks/pic/pic.png');"], | |
["background: #fff url('pic.png');", "background: #fff url('../../common.blocks/pic/pic.png');"], | |
["background: url('pic.png') #fff;", "background: url('../../common.blocks/pic/pic.png') #fff;"], | |
["background: url('http://ya.ru/pic.png');", "background: url('http://ya.ru/pic.png');"], | |
["background: url('//ya.ru/pic.png');", "background: url('//ya.ru/pic.png');"], | |
["background-image: url('pic.png');", "background-image: url('../../common.blocks/pic/pic.png');"], | |
["background: url('pic.png');background: url('pic.png');", "background: url('../../common.blocks/pic/pic.png');background: url('../../common.blocks/pic/pic.png');"], | |
["background: url(pic.png);", "background: url(../../common.blocks/pic/pic.png);"], |
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
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
class Board(): | |
def __init__(self, chars=[]): | |
self.SIZE = 8 | |
self.board = [[0 for i in range(self.SIZE)] for i in range(self.SIZE)] | |
self.CHARS = { | |
'Q': self.__queen, |