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-family: Helvetica, Verdana | |
} | |
p { | |
padding: 7px 10px; | |
} | |
#demo { | |
border: 1px solid #999; | |
} |
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
1 | |
00:00:01,000 --> 00:00:05,000 | |
Hello, World! | |
2 | |
00:00:05,000 --> 00:00:12,000 | |
The second subtitle. |
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
WEBVTT | |
00:01.000 --> 00:05.000 | |
Hello, World! | |
00:05.000 --> 00:12.000 | |
The second subtitle. |
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
# > install.packages("gridExtra") | |
require(gridExtra) | |
require(ggplot2) | |
# read kaggle data | |
stores <- read.csv("raw/stores.csv", header = T) | |
features <- read.csv("raw/features.csv", header = T) | |
train <- read.csv("raw/train.csv", header = T) | |
# create list of stores by splitting train data by store number |
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
{ | |
"cards": {}, | |
"externalIds": { | |
"imdbId": "tt1596343" | |
}, | |
"uuid": "692e5796-ea3f-4446-ad7d-d0fefd9d6615", | |
"duration": 7843000, | |
"title": "Fast Five", | |
"isoStartDateUtc": "2014-10-24T23:38:03.000Z", | |
"startDateUtc": 1414193883000, |
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 ClbhObject = function(win, doc) { | |
function sendGaEvent(p1, p2, p3, p4) { | |
win.ga_cbh && ga_cbh(p1, p2, p3, p4), win.ga && ga(p1, p2, p3, p4) | |
} | |
function initGA() { | |
return "undefined" != typeof h_params.ga_disable && 1 == h_params.ga_disable ? !1 : (ga_cbh = null, function(i, s, o, g, r, a, m) { | |
i.GoogleAnalyticsObject = r, i[r] = i[r] || function() { | |
(i[r].q = i[r].q || []).push(arguments) | |
}, i[r].l = 1 * new Date, a = s.createElement(o), m = s.getElementsByTagName(o)[0], a.async = 1, a.src = g, m.parentNode.insertBefore(a, m) |
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
> iris.fit <- lm(Petal.Width ~ Petal.Length, data=iris) | |
> summary(iris.fit) | |
Call: | |
lm(formula = Petal.Width ~ Petal.Length, data = iris) | |
Residuals: | |
Min 1Q Median 3Q Max | |
-0.56515 -0.12358 -0.01898 0.13288 0.64272 |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
class RightTriangle { | |
// a и b -- длинны катетов | |
private final double a, b; | |
// конструктор класса | |
RightTriangle(double a, double b) { | |
// проверка на то, что катеты заданы положительными числами | |
if(a <= 0 || b <= 0) { | |
// выдаем ошибку, если любои из катетов задан не положительным числом | |
throw new IllegalArgumentException("a and b should be positive"); |
OlderNewer