This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| url=http://www2.iap.fr/users/kilbinge/CosmoPMC | |
| cosmopmc=CosmoPMC_v1.11 | |
| patch=patch_pmclib_1.01_1.1 | |
| pmclib=pmclib_v1.01 | |
| all: | |
| tar xfz $(cosmopmc).tar.gz | |
| tar xfz $(patch).tar.gz | |
| tar xfz $(pmclib).tar.gz | |
| cp $(patch)/maths.c $(pmclib)/pmctools/src |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <mpi.h> | |
| #include <stdio.h> | |
| int main(int argc, char *argv[]){ | |
| int nprocs, rank; | |
| MPI_Init(&argc, &argv); | |
| MPI_Comm_size(MPI_COMM_WORLD, &nprocs); | |
| MPI_Comm_rank(MPI_COMM_WORLD, &rank); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2 | |
| 4 | |
| 1.1 | |
| 5 | |
| 10 | |
| 3.2 | |
| 1.4 | |
| 0.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| virtualenv venv --no-site-packages | |
| source venv/bin/activate | |
| pip install numpy | |
| pip install matplotlib | |
| easy_install readline | |
| pip install ipython |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| files = {} | |
| # almacenar nombres de archivo y contenido | |
| dname = 'input/' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function readFacName(fac, city){ | |
| // public fusion table | |
| // https://www.google.com/fusiontables/DataSource?docid=1tL67aacGcCyMfAg9PUo_-gp4qm74GDtFiCMtFg | |
| var select = "select FACNAME from 1tL67aacGcCyMfAg9PUo_-gp4qm74GDtFiCMtFg "; | |
| var where = "where FAC_ZIP5 = '" + fac + "' AND FAC_CITY = '" + city +"'"; | |
| var query = encodeURIComponent(select + where); | |
| var url = "http://www.google.com/fusiontables/api/query?sql=" + query; | |
| var response = UrlFetchApp.fetch(url, {method: "get"}); | |
| return response.getContentText(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function uploadXls(file) { | |
| authorize(); | |
| var key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; // <-- developer key | |
| var metadata = { title: file.getName() } | |
| var params = {method:"post", | |
| oAuthServiceName: "drive", | |
| oAuthUseToken: "always", | |
| contentType: "application/vnd.ms-excel", | |
| contentLength: file.getBytes().length, | |
| payload: file.getBytes() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function authorize() { | |
| var oauthConfig = UrlFetchApp.addOAuthService("calendar"); | |
| var scope = "https://www.googleapis.com/auth/calendar"; | |
| oauthConfig.setConsumerKey("anonymous"); | |
| oauthConfig.setConsumerSecret("anonymous"); | |
| oauthConfig.setRequestTokenUrl("https://www.google.com/accounts/OAuthGetRequestToken?scope="+scope); | |
| oauthConfig.setAuthorizationUrl("https://accounts.google.com/OAuthAuthorizeToken"); | |
| oauthConfig.setAccessTokenUrl("https://www.google.com/accounts/OAuthGetAccessToken"); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // add menu | |
| function onOpen() { | |
| var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
| var menuEntries = [{name:"Calcular Horas", functionName: "calculateHours"}]; | |
| ss.addMenu("Hours", menuEntries); | |
| // calcular al iniciar | |
| calculateHours(); | |
| } | |
| function count_hours(cal_id, event_name){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| syntax on | |
| set backspace=eol,start,indent | |
| set nu | |
| set ai | |
| set background=dark | |
| set tabstop=4 | |
| set shiftwidth=4 | |
| set softtabstop=4 | |
| set expandtab |