Skip to content

Instantly share code, notes, and snippets.


Irene Ros iros

View GitHub Profile
iros /
Created Aug 22, 2012
Documenting your REST API


<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

iros / css_pattern_use.html
Last active Mar 15, 2022
View css_pattern_use.html
<div class="circles-1">
iros / Dockerfile
Created Oct 5, 2017
Travis dockerfile
View Dockerfile
FROM openjdk:8
RUN wget
RUN tar zxvf apache-maven-3.3.9-bin.tar.gz
RUN chmod +x apache-maven-3.3.9/bin/mvn
RUN export M2_HOME=$PWD/apache-maven-3.3.9
RUN export PATH=$PWD/apache-maven-3.3.9/bin:${PATH}
RUN apt-get update
RUN apt-get install -y software-properties-common
iros / .block
Last active Aug 17, 2017
D3 v3 - circle re-packing stability
View .block
license: mit
iros / .block
Last active Aug 17, 2017
D3 v4 - circle re-packing stability
View .block
license: mit
iros / backbone.sync.js
Last active May 17, 2017
Backbone.sync override to use in memory storage with deferred support
View backbone.sync.js
Backbone.sync = function(method, model, options) {
// we need to make sure we initialize a store, in this case
// we will just use a JS object.
var cache = {};
// The size will be primarily used to assign ids to newly
// created models. Each time a new model is created, the size
// will be incremented.
var size = 0;
iros / timefill.R
Created Jun 4, 2012
Padding a Time Series in R
View timefill.R
# Read a comma-delimited file that has the following content
# time,observations
# 2011/11/01,12
# 2012/01/01,320
# 2011/12/01,100
# 2012/06/01,7 <- read.delim("timefill.csv", header=T, sep=",")
# Convert the time column to a date column.
# Accessing a column is done by using the '$' sign
iros / .pylintrc
Created Jun 29, 2016
.pylintrc for mlab
View .pylintrc
# Specify a configuration file.
# Python code to execute, usually for sys.path manipulation such as
# pygtk.require().
# Profiled execution.
iros / force.reqanimframe.js
Created Apr 15, 2016
force layout with d3.timer instead of tick loop
View force.reqanimframe.js
var force = d3.layout.force()
.size([width, height]);
d3.json("assets/500nodes.json", function(error, graph) {
if (error) throw error;
// Task 2:
// Connect the force layout to the nodes and links in our dataset