Skip to content

Instantly share code, notes, and snippets.

View mauriciopoppe's full-sized avatar
🇧🇴

Mauricio Poppe mauriciopoppe

🇧🇴
View GitHub Profile
@mauriciopoppe
mauriciopoppe / README.md
Last active August 29, 2015 14:17
Live Mathjax preview on Ghost 0.5.10
@mauriciopoppe
mauriciopoppe / index.js
Created October 14, 2015 00:19
requirebin sketch
var Interval = require('interval-arithmetic')
var nextafter = require('nextafter')
var a = Interval(3, nextafter(5, -Infinity))
var b = Interval(4, 6)
console.log(Interval.intersection(a, b))
console.log(Interval.union(a, b))
console.log(Interval.difference(a, b))
console.log(Interval.difference(b, a))
@mauriciopoppe
mauriciopoppe / _README.md
Last active November 2, 2015 14:02
requirebin sketch
@mauriciopoppe
mauriciopoppe / index.js
Created December 8, 2015 02:18
requirebin sketch
var Remarkable = require('remarkable')
var md = new Remarkable()
console.log(
md.parse('# generator-babel\n\
[![NPM version][npm-image]][npm-url]\n\
[![Build Status][travis-image]][travis-url]\n\
[![Dependency Status][depstat-image]][depstat-url]\n\
> [Yeoman][yo] generator to setup [Babel][babel] effortlessly. ', {})
)
@mauriciopoppe
mauriciopoppe / !README.md
Last active March 18, 2016 16:23
Dark theme for Sublime's Plain Task

Dark theme for Sublime's Plain Task

Installation:

  • Open the "Packages" folder
  • Save the theme under the folder PlainTasks/ with the name "tasks-monokai.hidden-tmTheme"
  • Open the user settings for the package PlainTasks
  • Update the "color-scheme" property (see the file attached below) to match the saved filename
@mauriciopoppe
mauriciopoppe / esnextbin.md
Created April 1, 2016 17:34
esnextbin sketch
#include<iostream>
#include "project/Vector.hpp"
using namespace std;
int main () {
Vector a(1,2), b(2, 1);
a = a + b;
a.print();
#ifndef PROJECT_VECTOR_
#define PROJECT_VECTOR_
#include <string>
class Vector {
double x,y;
public:
Vector();
Vector(double,double);
#include <iostream>
#include "project/Vector.hpp"
Vector::Vector() {
x = y = 0.0;
}
Vector::Vector(double a, double b) {
x = a;
@mauriciopoppe
mauriciopoppe / esnextbin.md
Created April 9, 2016 03:26
esnextbin sketch