Skip to content

Instantly share code, notes, and snippets.

View machkouroke's full-sized avatar
🏠
Working from home

OKE Machkour machkouroke

🏠
Working from home
View GitHub Profile
@mcleonard
mcleonard / react-markdown-mathjax.js
Last active October 7, 2023 18:32
Render math expressions in Markdown with Mathjax as a React component
import ReactMarkdown from 'react-markdown';
import MathJax from 'react-mathjax';
import RemarkMathPlugin from 'remark-math';
function MarkdownRender(props) {
const newProps = {
...props,
plugins: [
RemarkMathPlugin,
],
@alexy
alexy / jobconf.txt
Created January 12, 2012 22:09
Initialize a Hadoop job from Scala
package com.klout.labs.braver.util
import org.apache.hadoop.mapreduce.Job
import org.apache.hadoop.conf.Configuration
object Hadoop {
def setJobConfig(name: String, jobClass: Class[_], outputClasses: Option[Tuple2[Class[_],Class[_]]]) {
val conf = new Configuration()