I hereby claim:
- I am Ch4s3 on github.
- I am chasegilliam (https://keybase.io/chasegilliam) on keybase.
- I have a public key whose fingerprint is 962E F808 BB3F FAF9 D466 0CE0 0ED4 0192 321E F04D
To claim this, I am signing this object:
| def sum_hour_glass(c, r, two_d_array) | |
| top = two_d_array[r][c..c+2].inject(:+) | |
| center = two_d_array[r +1][c+1] | |
| bottom = two_d_array[r+2][c..c+2].inject(:+) | |
| top + center + bottom | |
| end | |
| def array2D(arr) | |
| max = -1.0/0.0 | |
| arr.each_with_index do |row, r_i| |
| module Rack | |
| # Simple rack middleware to | |
| # allow me to use a webworker locally | |
| class CspMiddleware | |
| def initialize(app, options = {}) | |
| @app = app | |
| @options = options | |
| end | |
| def call(env) |
| /* | |
| * decaffeinate suggestions: | |
| * DS102: Remove unnecessary code created because of implicit returns | |
| * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md | |
| */ | |
| const OldHttpRequest = Turbolinks.HttpRequest; | |
| Turbolinks.CachedHttpRequest = class CachedHttpRequest extends Turbolinks.HttpRequest { | |
| constructor(_, location, referrer) { | |
| super(); |
I hereby claim:
To claim this, I am signing this object:
| "use strict"; | |
| const path = require("path"); | |
| const webpack = require("webpack"); | |
| const ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
| const cssLoaders = [ | |
| { | |
| loader: "css-loader", | |
| options: { | |
| modules: true, | |
| minimize: true |
Set the environment variables
Install nano(or not if you intend to use vi)
yum install -y nano
Open ~/.profile with nano ~/.profile and add the following:
| "use strict"; | |
| const path = require("path"); | |
| const webpack = require("webpack"); | |
| const ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
| const ClosureCompiler = require("google-closure-compiler-js").webpack; | |
| module.exports = { | |
| context: __dirname + "/source", | |
| entry: { | |
| site: "./javascripts/all.js", |
| "devDependencies": { | |
| "react-addons-test-utils": "^15.2.1", | |
| "expect": "^1.13.0", | |
| "jasmine": "^2.3.4", | |
| "karma": "^0.13.15", | |
| "karma-chrome-launcher": "^0.2.2", | |
| "karma-jasmine": "^0.2.1", | |
| "karma-sourcemap-loader": "^0.3.6", | |
| "karma-webpack": "^1.7.0" | |
| } |
| require "nokogiri" | |
| require "concurrent" | |
| ################################ | |
| # Methods | |
| ################################ | |
| def parse_data_into_chuncks(data) | |
| chunks = {} | |
| ccda.css("chunk section").each do |chunk| |