Skip to content

Instantly share code, notes, and snippets.

View ramiruhayel's full-sized avatar

Rami Ruhayel ramiruhayel

View GitHub Profile
<!DOCTYPE html>
<html>
<head><meta charset="utf-8" />
<title>Derivative of sin(x)</title><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<style type="text/css">
/*!
*
* Twitter Bootstrap
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ramiruhayel
ramiruhayel / docker-compose.yml
Created October 1, 2017 13:43
Docker compose file for a Jupyter Data Science Notebook w/ volume mapping and port forwarding.
version: "3"
services:
datascience-notebook:
image: jupyter/datascience-notebook
volumes:
- /Absolute/Path/To/Where/Your/Notebook/Files/Will/Be/Saved:/home/jovyan/work
ports:
- 8888:8888
container_name: datascience-notebook-container
@ramiruhayel
ramiruhayel / Derivatives.ipynb
Created September 25, 2017 03:02
Derivatives
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ramiruhayel
ramiruhayel / Graph.js
Last active August 13, 2017 04:26
JS Graphs
function Graph(config) {
// user defined properties
this.canvas = document.getElementById(config.canvasId);
this.minX = config.minX;
this.minY = config.minY;
this.maxX = config.maxX;
this.maxY = config.maxY;
this.unitsPerTick = config.unitsPerTick;
@ramiruhayel
ramiruhayel / ComputershareRecordManagerRACI.java
Created January 19, 2016 02:30
This is where the clauses are retreived. We'll need to make a change to add the AD clause when AD cover exists on a policy.
private ArrayList<String> getClausesText(PolicyRACIVO policyRACIVO) {
String str;
int maxLen = 2000; //RAC-4414
ArrayList<String> output = new ArrayList<String>();
TProductLOBClauseVO tProductLOBClauseVO;
if (policyRACIVO.getFirstLobVO() != null &&
policyRACIVO.getFirstLobVO().getFirstLobAssetVO() != null) {
SuperVOList<PolicySuperClauseVO> policySuperClauseVOs =
policyRACIVO.getFirstLobVO().getFirstLobAssetVO().getClauseCollection();
if (policySuperClauseVOs != null) {
@ramiruhayel
ramiruhayel / weather.js
Created July 12, 2015 04:57
weather.js
var React = require('react')
class Weather extends React.Component{
constructor(props){
super(props)
}
render(){
@ramiruhayel
ramiruhayel / temperature.js
Created July 12, 2015 04:56
temperature.js
var React = require('react')
class Temperature extends React.Component{
constructor(props){
super(props)
}
render(){
var id = this.props.day+'_'+this.props.period
@ramiruhayel
ramiruhayel / day.js
Last active August 29, 2015 14:24
day.js
var React = require('react')
var Temperature = require('../../components/output/temperature')
var Weather = require('../../components/output/weather')
var moment = require('moment')
class Day extends React.Component {
constructor(props){
super(props)
}