Skip to content

Instantly share code, notes, and snippets.

View Haris87's full-sized avatar
🎯
Focusing

Haris Haris87

🎯
Focusing
  • Unisystems
  • Athens
View GitHub Profile
@Haris87
Haris87 / atlantis_demo_LSP3_rss.xml
Created September 24, 2024 11:57
Atlantis LSP3 demo data
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Atlantis LSP3 final feed</title>
<link>https://atlantis-project.com</link>
<description>Atlantis demo LSP3 data feed</description>
<lastBuildDate>Tue, 24 Sep 2024 10:17:28 GMT</lastBuildDate>
<docs>https://validator.w3.org/feed/docs/rss2.html</docs>
<generator>https://github.com/jpmonette/feed</generator>
<language>en</language>
Verifying my Blockstack ID is secured with the address 13nvpRXHJMMMyc8qarm6tqVvYULj47frFi https://explorer.blockstack.org/address/13nvpRXHJMMMyc8qarm6tqVvYULj47frFi
@Haris87
Haris87 / server.js
Created March 28, 2018 14:37
Express.js server to host angular apps
var express = require('express');
var http = require('http');
var path = require('path');
var app = express();
app.use(express.static(path.join(__dirname, 'dist')));
/* GET home page. */
app.get('*', function(req, res, next) {
//Path to your main file
<html>
<head>
<style>
.img-circle-large {
background-repeat: no-repeat;
border-radius: 50%;
width: 250px;
height: 250px;
background-color: grey;
@Haris87
Haris87 / TweetsTSVToSeq.java
Last active August 29, 2015 14:24
TweetsTSVToSeq.java
package tweet.tsv;
import java.io.BufferedReader;
import java.io.FileReader;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.*;
import org.apache.hadoop.io.SequenceFile;
import org.apache.hadoop.io.SequenceFile.Writer;
import org.apache.hadoop.io.*;
@Haris87
Haris87 / install_hadoop.sh
Last active August 29, 2015 14:24
Hadoop Installation
# This script installs hadoop, all dependencies
# and adds all needed environment variables.
# It's made for a clean install of Ubuntu 14.04,
# with nothing extra installed.
# Adjust to your needs.
# Set username
USER=haris
# Hadoop version to install
HADOOP_VERSION=hadoop-2.4.1
@Haris87
Haris87 / SentiWord.java
Last active August 29, 2015 14:21
SentiWord class
package pack;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Hashtable;