rpm -ivh https://yum.postgresql.org/9.6/redhat/rhel-7.3-x86_64/pgdg-centos96-9.6-3.noarch.rpm
yum update
| "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" | |
| } | 
| "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", | 
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 cssLoaders = [ | |
| { | |
| loader: "css-loader", | |
| options: { | |
| modules: true, | |
| minimize: true | 
I hereby claim:
To claim this, I am signing this object:
| /* | |
| * 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(); | 
| 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) | 
| 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| | 
| def find_suffix(collection, query_string) | |
| # Inject 0 so that when evaluating the block, you have | |
| # and object that responds to `+` | |
| # if the array element is equal to the query_string | |
| # add to the sum and return the sum to be used in | |
| # the next step | |
| collection.inject(0) { |sum, str| sum += 1 if str == query_string; sum } | |
| end |