Skip to content

Instantly share code, notes, and snippets.

@kmamykin
kmamykin / git diff
Created April 27, 2018 18:30
react-hot-loader changes required
diff --git a/.babelrc b/.babelrc
index 73964ed..c552196 100644
--- a/.babelrc
+++ b/.babelrc
@@ -6,6 +6,7 @@
"add-module-exports",
"transform-decorators-legacy",
"transform-class-properties",
- "transform-react-display-name"
+ "transform-react-display-name",
`git remote set-head upstream master`
@kmamykin
kmamykin / plaidml.output
Created January 16, 2018 04:03
plaidbench for Macbook Pro
```
$ python plaidbench.py --no-plaid mobilenet
Current network being run : mobilenet
Running 1024 examples with mobilenet, batch size 1
~/Projects/plaidml-test/.direnv/python-3.5.2/lib/python3.5/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
Using TensorFlow backend.
2018-01-15 22:49:34.785024: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
Model loaded.
@kmamykin
kmamykin / README.md
Last active February 15, 2017 18:31
Asiago SEO architecture

Introduction

Goal: architect Brickwork front pages SEO such that:

  • Google is able to index and see content
  • Other search bots can index and see content (+)
  • Clients can install asiago on their site and enjoy benefits of SEO (++)

Option 1: Handle bot responses in rails app (outside of Asiago)

  • sitemap.xml is already served from rails app.
@kmamykin
kmamykin / README.md
Last active February 13, 2017 18:23
Site pre-rendering options

Introduction

What is prerendering? Pre-rendering a JavaScript heavy website refers to the process of using a proxy that loads the requested page and runs all JavaScript on the page, and then returning the content of the rendered page as the response to the page's request. The advantages of doing so are twofold:

Performance

Perfomance of the site is greatly improved as the browser is able to render the page without waiting for external scripts to load and external data api requests to finish. In Brickwork client site that means requesting a store page returns HTML that is already rendered with all the data about the store.

After the initial page HTML is rendered from the response, the browser asycronously request JavaScript scripts that load in the background, query the API for data and re-render the page in browser, adding interactivity to the page. Ideally the page pre-rendered on the server/proxy and the page rendered in the user's browser will be exactly the same (given the api data hasn't chang

@kmamykin
kmamykin / RRKbMa.markdown
Last active June 29, 2016 20:13
React Star Wars Characters
@kmamykin
kmamykin / .gitignore
Last active January 29, 2016 22:48
Exploration of Monad ideas in JavaScript
/node_modules

Keybase proof

I hereby claim:

  • I am kmamykin on github.
  • I am kmamyk (https://keybase.io/kmamyk) on keybase.
  • I have a public key whose fingerprint is A867 CC04 0B98 F741 1C95 FAB6 68E1 E361 656B 844C

To claim this, I am signing this object:

#Introduction

Several layers of css rules:

  • Base: resets, normalize, base colors, typography, etc.
  • Layout: header, footer, wrapper, grid, sidebar, main-column
  • Modules: avatar, buttons, upvote, forms
    • States: (defined with the modules) somemodule-active, somemodule-disabled, -selected
    • Themes: (defined with the modules) somemodule-primary, somemodule-large

Module

@kmamykin
kmamykin / Gemfile
Created August 4, 2011 08:28
Rails 3.1.0.rc5 setup for heroku with assets pipeline working
gem 'rails', '3.1.0.rc5'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass', '3.1.5' # <= downgraded due to a weird interaction b/w compass blueprint and latest Sass
gem 'sass-rails', "~> 3.1.0.rc"
gem 'coffee-rails', "~> 3.1.0.rc"
gem 'uglifier'
gem 'compass', :git => 'https://github.com/chriseppstein/compass.git', :branch => 'rails31'