-
Do the math yourself. Too many people take numbers from unreliable sources.
-
There are 4 levels of learning: Awareness, Awkwardness, Application, Assimilation
-
Customer-Solution Profit: Know your customers incredibly well and create a solution specifically for them.
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
denominator = @xs.reduce(0) do |sum, x| | |
sum + ((x - x_mean) ** 2) | |
end |
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
import scrapy | |
class StackOverflowSpider(scrapy.Spider): | |
name = 'stackoverflow' | |
start_urls = ['http://stackoverflow.com/questions?sort=votes'] | |
def parse(self, response): | |
for href in response.css('.question-summary h3 a::attr(href)'): |
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
# source: http://multithreaded.stitchfix.com/blog/2016/01/13/market-watch/ | |
# https://github.com/klarsen1/MarketMatching | |
# from terminal command line: | |
sudo apt-get install libcurl4-openssl-dev | |
# from R command line: | |
# install CausalImpact package: | |
install.packages("devtools") |
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
# How to build your own NN classifier in r | |
# source: http://www.r-bloggers.com/build-your-own-neural-network-classifier-in-r/ | |
# reference: http://junma5.weebly.com/data-blog/build-your-own-neural-network-classifier-in-r | |
# project: | |
# 1) build simple NN with 2 fully-connected layers | |
# 2) use NN to classify a dataset of 4-class 2D images & visualize decision boundary. | |
# 3) train NN with MNIST dataset | |
# ref: stanford CS23 source: http://cs231n.github.io/ |
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
import sys | |
reload(sys) | |
sys.setdefaultencoding("utf-8") | |
import requests | |
import bs4 | |
import zipcode | |
import threading | |
import re | |
import json | |
import time |
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
import dash | |
import dash_core_components as dcc | |
import dash_html_components as html | |
external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css'] | |
app = dash.Dash(__name__, external_stylesheets=external_stylesheets) | |
app.layout = html.Div(children=[ | |
html.H1(children='Hello Dash'), |
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
Bundler, the underlying system Vagrant uses to install plugins, | |
reported an error. The error is shown below. These errors are usually | |
caused by misconfigured plugin installations or transient network | |
issues. The error from Bundler is: | |
conflicting dependencies fog-core (~> 1.43.0) and fog-core (= 1.45.0) | |
Activated fog-core-1.45.0 | |
which does not match conflicting dependency (~> 1.43.0) | |
Conflicting dependency chains: |
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
31: from -e:1:in `<main>' | |
30: from /home/<myname>/.rbenv/versions/2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:72:in `require' | |
29: from /home/<myname>/.rbenv/versions/2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:72:in `require' | |
28: from /home/<myname>/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:55:in `load' | |
27: from /home/<myname>/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:55:in `load' | |
26: from /home/<myname>/projects/ideas/factory-inabox/v20200501/bin/rails:9:in `<top (required)>' | |
25: from /home/<myname>/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require' | |
24: from /home/<myname>/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' | |
23: from /home/<myname>/.rbenv/versions/2.5.1/lib/ru |
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
# Rails 6.0.2.3 | |
# 'Behavior' = std Rails scaffold with one name:string attribute. | |
# rails db:migrate = no problem. | |
# rails test = 2 fails below. other controllers (~60, identical except for object name) pass. | |
Error: | |
BehaviorsControllerTest#test_should_destroy_behavior: | |
NoMethodError: undefined method `count' for ActionDispatch::IntegrationTest::Behavior:Module | |
test/controllers/behaviors_controller_test.rb:42:in `block in <class:BehaviorsControllerTest>' | |
test/controllers/behaviors_controller_test.rb:42:in `block in <class:BehaviorsControllerTest>' |
OlderNewer