Skip to content

Instantly share code, notes, and snippets.

Irene Ros iros

Block or report user

Report or block iros

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@iros
iros / API.md
Created Aug 22, 2012
Documenting your REST API
View API.md

Title

<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
iros / css_pattern_use.html
Last active Oct 3, 2018
patternfill_gists
View css_pattern_use.html
<div class="circles-1">
</div>
@iros
iros / Dockerfile
Created Oct 5, 2017
Travis dockerfile
View Dockerfile
FROM openjdk:8
RUN wget http://apache.claz.org/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
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
iros / .block
Last active Aug 17, 2017
D3 v3 - circle re-packing stability
View .block
license: mit
@iros
iros / .block
Last active Aug 17, 2017
D3 v4 - circle re-packing stability
View .block
license: mit
@iros
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
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
raw.data <- 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
iros / .pylintrc
Created Jun 29, 2016
.pylintrc for mlab
View .pylintrc
[MASTER]
# Specify a configuration file.
#rcfile=
# Python code to execute, usually for sys.path manipulation such as
# pygtk.require().
#init-hook=
# Profiled execution.
@iros
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()
.charge(-150)
.linkDistance(30)
.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
You can’t perform that action at this time.