Skip to content

Instantly share code, notes, and snippets.

Call:
lm(formula = Data1$view_time_live_hr ~ Data1$after + Data1$premium +
(Data1$after * Data1$premium))
Residuals:
Min 1Q Median 3Q Max
-3.3128 -2.5293 -0.7593 1.7121 19.8460
Coefficients:
Estimate Std. Error t value Pr(>|t|)

Keybase proof

I hereby claim:

  • I am trident523 on github.
  • I am trident (https://keybase.io/trident) on keybase.
  • I have a public key ASCqUMYciH1EvD4QRHR1dXy4DesWBOqe58nOlx2pUaGMJAo

To claim this, I am signing this object:

@trident523
trident523 / Alternate
Last active August 29, 2015 14:19
IC - 438
db.categories.drop()
db.categories.insert( { _id: "MongoDB", parent: "Databases" } )
db.categories.insert( { _id: "dbm", parent: "Databases" } )
db.categories.insert( { _id: "Databases", parent: "Programming" } )
db.categories.insert( { _id: "Languages", parent: "Programming" } )
db.categories.insert( { _id: "Programming", parent: "Books" } )
db.categories.insert( { _id: "Books", parent: null } )
---
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../code-mirror/code-mirror.html">
<link rel="import" href="../chart-js/chart-js.html">
@trident523
trident523 / discourse.conf
Last active February 3, 2019 16:18
Simple NGINX forwarding
upstream discourse {
#fail_timeout is optional; I throw it in to see errors quickly
server 127.0.0.1:4578 fail_timeout=5;
}
# configure the virtual host
server {
# replace with your domain name
server_name discourse.example.com;
@trident523
trident523 / ajax.html
Created December 28, 2013 19:53
Ajax and non-ajax discourse post creator.
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
<form class="form-horizontal" method="post">
<fieldset>
<!-- Form Name -->
<legend>Form Name</legend>
@trident523
trident523 / gist:6128004
Last active December 20, 2015 12:00
Additional CSS Rules
#comments>div[id*='post']{
position: relative;
padding: 15px;
margin: 1em 0 3em;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
margin-left: 25px;
}
@trident523
trident523 / discourse.conf
Last active December 20, 2015 07:48
502 handling on discourse.conf
upstream discourse {
server unix:/home/discourse/discourse/tmp/sockets/thin.0.sock;
server unix:/home/discourse/discourse/tmp/sockets/thin.1.sock;
server unix:/home/discourse/discourse/tmp/sockets/thin.2.sock;
server unix:/home/discourse/discourse/tmp/sockets/thin.3.sock;
}
server {
listen 80;
@trident523
trident523 / production.log
Created July 8, 2013 21:53
Related API error.
Started POST "/posts" for <local IP> at 2013-07-08 17:39:13 -0400
Processing by PostsController#create as HTML
Parameters: {"api_key"=>"<snip>", "api_username"=>"trident", "title"=>"Welcome to Jekyll!", "raw"=>"This is just a post from jekyll. \n", "category"=>"meta", "skip_validations"=>true, "post"=>{"raw"=>"This is just a post from jekyll. \n"}}
WARNING: Can't verify CSRF token authenticity
Redirected to http://discourse.trid.in/
Completed 302 Found in 18ms (ActiveRecord: 10.1ms)
Started GET "/" for <local IP> at 2013-07-08 17:39:13 -0400
Processing by ListController#latest as HTML
Parameters: {"api_key"=>"<snip>", "api_username"=>"trident", "title"=>"Welcome to Jekyll!", "raw"=>"This is just a post from jekyll. \n", "category"=>"meta", "skip_validations"=>true, "list"=>{"api_key"=>"<snip>", "api_username"=>"trident", "title"=>"Welcome to Jekyll!", "raw"=>"This is just a post from jekyll. \n", "category"=>"meta", "skip_validations"=>true}}
Rendered list/list.erb within layouts/application (0.5ms)