Skip to content

Instantly share code, notes, and snippets.

:octocat:

Stella Miranda stellamiranda

:octocat:
View GitHub Profile
View test
\chapter{Experimento y an\'alisis de resultados}
\section{Instancias tsp}
\begin{figure}
\begin{subfigure}[b]{0.24\textwidth}
\includegraphics[width=\textwidth]{PlotsInstances/insa280}
\caption{a280}
\label{fig:a280}
View gist:1c34f16e2abe6e1e3763
### Keybase proof
I hereby claim:
* I am stellamiranda on github.
* I am stella (https://keybase.io/stella) on keybase.
* I have a public key whose fingerprint is 6685 9C2C CF40 1675 EC43 5955 9F2E 2D1F C054 8E18
To claim this, I am signing this object:
View keybase.md

Keybase proof

I hereby claim:

  • I am stellamiranda on github.
  • I am stella (https://keybase.io/stella) on keybase.
  • I have a public key whose fingerprint is 6685 9C2C CF40 1675 EC43 5955 9F2E 2D1F C054 8E18

To claim this, I am signing this object:

@stellamiranda
stellamiranda / ghtv-install-dev.md
Last active Aug 29, 2015
Push code to dev Instance
View ghtv-install-dev.md

1 - Install https://toolbelt.heroku.com/

2 - Move to the app folder

3 - Run git remote add dev git@heroku.com:ghtv-backend-dev.git

4 - git fetch dev

5 - push your branch to the instance , for example the branch you want to push is newsletters, you should run git push dev newsletters:master

View example.js
this.getRateByProjectAndTask = function(projectId, taskId){
if(projectId != ""){
var project = findProject(projectId);
return _.find(project.rates, function(rate){
return rate.task_id == taskId;
}) || {};
}else{
{}
}
};
View cms log - April_25_2016
-------------------------------------
/var/log/eb-docker/containers/eb-current-app/327732b9c3ac-stdouterr.log
-------------------------------------
15:19:09 worker.1 | [ActiveJob] [ImportUplynkAssetsJob] [f6b6eadb-c73a-40db-878a-cebc76870f96] Sequel::Postgres::Database (5.1ms) SELECT * FROM "videos" WHERE ("external_id" = 'c6cb142531504be995391f04bb5deab0') LIMIT 1
15:19:09 worker.1 | [ActiveJob] [ImportUplynkAssetsJob] [f6b6eadb-c73a-40db-878a-cebc76870f96] Sequel::Postgres::Database (1.3ms) SELECT * FROM "videos" WHERE ("external_id" = 'edd791844cf14cf9a14cbf8a56e7ac7d') LIMIT 1
15:19:09 worker.1 | [ActiveJob] [ImportUplynkAssetsJob] [f6b6eadb-c73a-40db-878a-cebc76870f96] Sequel::Postgres::Database (1.2ms) SELECT * FROM "videos" WHERE ("external_id" = '4449a43e970e434a8e39e40e709e8f98') LIMIT 1
15:19:09 worker.1 | [ActiveJob] [ImportUplynkAssetsJob] [f6b6eadb-c73a-40db-878a-cebc76870f96] Sequel::Postgres::Database (1.2ms) SELECT *
View c055d3d3dab9-stdouterr.log
15:48:06 web.1 | started with pid 8
15:48:06 nginx.1 | started with pid 9
15:48:07 web.1 | [8] Puma starting in cluster mode...
15:48:07 web.1 | [8] * Version 3.4.0 (ruby 2.3.0-p0), codename: Owl Bowl Brawl
15:48:07 web.1 | [8] * Min threads: 2, max threads: 5
15:48:07 web.1 | [8] * Environment: production
15:48:07 web.1 | [8] * Process workers: 2
15:48:07 web.1 | [8] * Preloading application
15:48:07 web.1 | I, [2016-04-25T15:48:07.999602 #8] INFO -- : (0.000706s) SET standard_conforming_strings = ON
15:48:08 web.1 | I, [2016-04-25T15:48:08.000556 #8] INFO -- : (0.000662s) SET client_min_messages = 'WARNING'
View time_conversion.rb
# Challenge: Time Conversion - HakerRank
# Author: Stella Miranda
# Given a time in 12-hour AM/PM format, convert it to military (24-hour) time.
# Note:
# Midnight is 12:00:00AM on a 12-hour clock, and 00:00:00 on a 24-hour clock.
# Noon is 12:00:00PM on a 12-hour clock, and 12:00:00 on a 24-hour clock.
# Input Format:
View birthday_cake_candles.rb
# Challenge: Birthday Cake Candles - HakerRank
# Author: Stella Miranda
# Colleen is turning n years old! Therefore, she has n candles of various heights on her cake, and candle i has height height_i .
# Because the taller candles tower over the shorter ones, Colleen can only blow out the tallest candles.
# Given the height_i for each individual candle, find and print the number of candles she can successfully blow out.
# Input Format
# The first line contains a single integer, n , denoting the number of candles on the cake.
# The second line contains n space-separated integers, where each integer i describes the height of candle i.
View staircase.rb
# Challenge: Staircase - HakerRank
# Author: Stella Miranda
# Consider a staircase of size n = 4:
#
##
###
####
You can’t perform that action at this time.