Based on: Material Design by Google (http://www.google.com/design/)
A Pen by Sergey Kupletsky on CodePen.
| package mit.proxy; | |
| import java.lang.reflect.Method; | |
| import java.util.ArrayList; | |
| import javassist.util.proxy.MethodHandler; | |
| import javassist.util.proxy.ProxyFactory; | |
| import javassist.util.proxy.ProxyObject; | |
| public class ProxyCreator { | 
| /* global ReactRedux, Redux, ReactDOM */ | |
| // "Getting Started with Redux" (by Dan Abramov) | |
| // https://egghead.io/series/getting-started-with-redux | |
| // This file on JSBin (by Jesse Buchanan): | |
| // http://jsbin.com/wuwezo/74/edit?js,console,output | |
| //////////////////////////////////////////////// | |
| // | 
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="https://fb.me/react-0.14.3.min.js"></script> | |
| <script src="https://fb.me/react-dom-0.14.3.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.0.4/redux.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/react-redux/4.0.0/react-redux.js"></script> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> | 
| import { Component } from "React"; | |
| export var Enhance = ComposedComponent => class extends Component { | |
| constructor() { | |
| this.state = { data: null }; | |
| } | |
| componentDidMount() { | |
| this.setState({ data: 'Hello' }); | |
| } | |
| render() { | 
| function isBrowserBelowIE9() { | |
| try { | |
| if (navigator.userAgent.indexOf('MSIE') !== -1) { | |
| return /MSIE\s/.test(navigator.userAgent) && parseFloat(navigator.appVersion.split('MSIE')[1]) < 10; | |
| } | |
| return false; | |
| } catch (e) { | |
| return false; | |
| } | 
| #!/bin/bash | |
| ##################################################### | |
| # Name: Bash CheatSheet for Mac OSX | |
| # | |
| # A little overlook of the Bash basics | |
| # | |
| # Usage: | |
| # | |
| # Author: J. Le Coupanec | |
| # Date: 2014/11/04 | 
| @Before | |
| public void setupRequestScope() { | |
| if (applicationContext instanceof GenericApplicationContext) { | |
| GenericApplicationContext context = (GenericApplicationContext) applicationContext; | |
| ConfigurableListableBeanFactory beanFactory = context.getBeanFactory(); | |
| Scope requestScope = new SimpleThreadScope(); | |
| beanFactory.registerScope("request", requestScope); | |
| } | |
| } | 
| #install docker for mac, url - https://docs.docker.com/docker-for-mac/ | |
| docker pull sequenceiq/spark | |
| #create a mac directory hadoop-spark and map it to /home/hadoop-spark | |
| docker run -it -p 8088:8088 -p 8042:8042 -h sandbox -v /Users/admin/Documents/docker/hadoop-spark:/home/hadoop-spark sequenceiq/spark bash | |
| then run | |
| /etc/bootstrap.sh | |
| #add host name called sandbox to localhost on file /etc/hosts | 
| -- http://vertica.tips/2013/10/23/disk-space-utilization/ | |
| SELECT node_name, | |
| SUM(used_bytes)/(1024^3) AS disk_space_used_gb, | |
| SUM((used_bytes+free_bytes)-used_bytes)/(1024^3) AS disk_space_free_gb, | |
| SUM(used_bytes+free_bytes)/(1024^3) AS disk_space_total_gb | |
| FROM v_monitor.storage_usage | |
| WHERE filesystem = 'vertica' | |
| GROUP BY node_name | |
| ORDER BY node_name; |