Skip to content

Instantly share code, notes, and snippets.

View matiskay's full-sized avatar

Edgar Marca matiskay

View GitHub Profile
./matlab -nodesktop -nojvm -nosplash -r "cd '/Users/user/Desktop';"
x = -0.5:0.001:1;
fx = x.^3;
p2 = 0;
plot(x, fx, 'LineWidth', 2);
hold on
grid on
plot(x, p2, 'g', 'LineWidth', 2);
import dataset
class DatasetPipeline(object):
def __init__(self, dataset_uri, dataset_table):
self.dataset_uri = dataset_uri
self.dataset_table = dataset_table
@classmethod
def from_crawler(cls, crawler):
@matiskay
matiskay / wp_body_class.txt
Last active August 29, 2015 14:25
Wordpress Body Classes
# Wordpress Classes
Based: https://github.com/WordPress/WordPress/blob/dfaa89d8531a3e34ec6c19b72f01e95ea3527fa0/wp-includes/post-template.php#L536
rlt:
- rlt
front page:
- home
@matiskay
matiskay / gist:d7e11ff1620403755760
Created July 8, 2015 23:16
ant change-to -Dsuite=biokepler
ant change-to -Dsuite=biokepler
Buildfile: /Users/matiskay/learning/kepler/build-area/build.xml
change-to:
[change-to] Retrieving modules....
[change-to]
[change-to] biokepler:
[change-to] Downloading (if necessary) biokepler...
[change-to] svn co -r head https://code.kepler-project.org/code/kepler/trunk/modules/biokepler /Users/matiskay/learning/kepler/biokepler
[change-to] svn: E175002: Unable to connect to a repository at URL 'https://code.kepler-project.org/code/kepler/trunk/modules/biokepler'
@matiskay
matiskay / gist:ad06e8e10d400013975b
Created July 8, 2015 23:11
java -classpath build-area/lib/ant.jar:kepler.jar org.kepler.build.runner.Kepler "$@"
/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java -classpath build-area/lib/ant.jar:kepler.jar org.kepler.build.runner.Kepler "$@"
The base dir is /Applications/Kepler-2.4/Kepler.app/Contents/Resources/Java
Kepler.run going to run.setMain(org.kepler.Kepler)
JVM Memory = 256m 1000m
setting dock icon to -Xdock:icon=/Applications/Kepler-2.4/Kepler.app/Contents/Resources/Java/common-2.4.0/resources/icons/kepler-dock-icon.png
Set environment variable: PATH = /Users/matiskay/torch/install/bin:/Users/matiskay/torch/install/bin:/usr/local/heroku/bin:/usr/local/texlive/2014/bin/x86_64-darwin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/sbin:/usr/local/mysql/bin:/Applications/Postgres.app/Contents/Versions/9.3/bin:/Applications/Kepler-2.4/Kepler.app/Contents/Resources/Java/r-2.4.0/lib:/Applications/Kepler-2.4/Kepler.app/Contents/Resources/Java/common-2.4.0/lib:/Applications/Kepler-2.4/Kepler.app/Contents/Resources/Java/common-2.4.0/lib/ptolemy/matlab:/Applications/Kepler-
@matiskay
matiskay / mrv4.tex
Last active August 29, 2015 14:16 — forked from alstat/mrv4.tex
\documentclass{article}
\usepackage{pgfplots}
\usepackage{tikz}
\pgfplotsset{compat=1.5.1}
\begin{document}
\begin{figure}
\begin{tikzpicture}
\begin{axis}[
from dictalchemy import make_class_dictable
from flask import Flask, request, jsonify, json
from flask_sqlalchemy import SQLAlchemy
from jsonpatch import JsonPatch, JsonPatchException
app = Flask(__name__)
app.debug = True
db = SQLAlchemy(app)
make_class_dictable(db.Model)
@matiskay
matiskay / generate_image.sh
Created January 20, 2015 04:44
Plotting RBF function
TEX_FILENAME="rbf"
latex ${TEX_FILENAME}.tex;
dvips ${TEX_FILENAME}.dvi -E -o ${TEX_FILENAME}.eps
convert -density 300 ${TEX_FILENAME}.eps ${TEX_FILENAME}.png