Skip to content

Instantly share code, notes, and snippets.

View kopylovvlad's full-sized avatar
💭
I ❤️ Ruby

Kopylov Vladislav kopylovvlad

💭
I ❤️ Ruby
  • RamblerGroup
  • Moscow
View GitHub Profile
[
#<Selector
@name="nav ul, nav ol",
@declaration=[
#<Property
@name="margin",
@value= #<VirtualString @value="0">>,
#<Property
@name="padding",
@value= #<VirtualString @value="0px">>,
[
#<VarAssignAstNode
@class_name="VariableAssign.new",
@name="other-color",
@children=[],
@value= #<AstNodeValue @class_name="VirtualString.new", @value="red">>,
#<VarAssignAstNode
@class_name="VariableAssign.new",
@name="main_color",
@children=[],
/* example 2 */
$other-color: red;
$main_color: green;
@mixin border-radius {
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
-ms-border-radius: 10px;
border-radius: 10px;
}
div {
[
#<SelectorAstNode
@class_name="Selector.new”,
@name="nav ul, nav ol”,
@children=[
#<PropertyAstNode
@class_name="Property.new",
@name="margin",
@children=[],
@value= #<AstNodeValue
[
#<SelectorStartParserNode @name="selector start", @value="nav ul, nav ol {">,
#<PropertyParserNode @name="property", @value="margin: 0;">,
#<PropertyParserNode @name="property", @value="padding: 0px;">,
#<PropertyParserNode @name="property", @value="list-style: none;">,
#<PropertyParserNode @name="property", @value="font: 12pt/10pt sans-serif;">,
#<SelectorEndParserNode @name="selector end", @value="}">
]
[
'nav ul, nav ol {',
'margin: 0;',
'padding: 0px;',
'list-style: none;',
'font: 12pt/10pt sans-serif;’,
‘}’
]
/* example 1 */
nav ul, nav ol {
margin: 0;
padding: 0px;
list-style: none;
font: 12pt/10pt sans-serif;
}
import os
from flask import Flask, render_template, request, redirect, url_for, jsonify
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.multiclass import *
from sklearn.svm import *
import pandas
app = Flask(__name__)
global Classifier
global Vectorizer
from sklearn.naive_bayes import *
from sklearn.dummy import *
from sklearn.ensemble import *
from sklearn.neighbors import *
from sklearn.tree import *
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.feature_extraction.text import HashingVectorizer
from sklearn.calibration import *
from sklearn.linear_model import *
from sklearn.naive_bayes import *
from sklearn.dummy import *
from sklearn.ensemble import *
from sklearn.neighbors import *
from sklearn.tree import *
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.feature_extraction.text import HashingVectorizer
from sklearn.calibration import *
from sklearn.linear_model import *