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
version: '3.7' | |
services: | |
# If using CockroachDB: | |
cockroach: | |
image: cockroachdb/cockroach | |
command: start --http-port 26256 --insecure | |
restart: unless-stopped | |
volumes: | |
- ${DEV_DATA_DIR:-.env/data}/cockroach:/cockroach/cockroach-data |
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
package eus.unai.spotidump; | |
import com.google.gson.Gson; | |
import com.google.gson.internal.LinkedTreeMap; | |
import com.opencsv.CSVReader; | |
import org.apache.http.client.HttpClient; | |
import org.apache.http.client.methods.HttpGet; | |
import org.apache.http.impl.client.DefaultHttpClient; | |
import org.apache.http.util.EntityUtils; |
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
package eus.unai.jena; | |
import org.apache.jena.rdf.model.*; | |
import org.apache.jena.vocabulary.RDF; | |
import org.apache.jena.vocabulary.RDFS; | |
import java.io.*; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.util.HashMap; |
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
-module(dates). | |
-author("unai"). | |
%% API | |
-export([classify_day/1]). | |
classify_day({saturday}) -> classify_day({weekend}); | |
classify_day({sunday}) -> classify_day({weekend}); | |
classify_day({weekend}) -> weekend; | |
classify_day({_}) -> weekday. |
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 <stdio.h> | |
#include <stdlib.h> | |
#define MAX_STR 128 | |
typedef struct zenbakia { | |
int balorea; | |
struct zenbakia *hurrengoa; | |
} ZENBAKIA; |
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 "algoritmoak.h" | |
void arrunta(int *zerrenda, int dim) { | |
int i, j; | |
for (i = 0; i < dim; i++) { | |
for (j = i; j < dim; j++) { | |
if (*(zerrenda + i) > *(zerrenda + j)) { | |
swap(zerrenda + 1, zerrenda + i); | |
} | |
} |
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 <stdio.h> | |
#include <string.h> | |
#define _CRT_SECURE_NO_WARNINGS | |
typedef struct { | |
int algo; | |
int numero; | |
char nombre[5]; | |
} DATO; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
_LOG_DIR=/var/log/druid | |
_PID_DIR=/var/run/druid | |
function start { | |
if [ -f $_PID_DIR/$1.pid ]; then | |
echo "Component $1 already running" | |
else | |
if [ -f $_LOG_DIR/$1.out ]; then |
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
import React, { Component } from 'react'; | |
import ReactDOM from 'react-dom'; | |
/* | |
todo lo que está entre llaves, {}, es interpretado como jsx. | |
una cosa de jsx es que no puedes escribir el css directamente, sino que tienes que utilizar un objecto de javascript como abajo | |
*/ | |
class Header extends Component { | |
render() { | |
return ( |
NewerOlder