View get_active_namenode
# Determine the active namenode of HDFS, this is required as the webHDFS implementation doesn't redirect to active namenode
import os
import xml.etree.ElementTree as ET
def find_element(conf, property):
tree = ET.parse(conf)
root = tree.getroot()
for elem in root.iter('property'):
if elem[0].text == property:
View valentina.RPT
This file has been truncated, but you can view the full file.
-------------------
Error occured on Sunday, June 24, 2018 at 00:43:19.
valentina.exe caused an Access Violation at location 006D5260 in module valentina.exe Reading from location 00000060.
Loading symbols... done.
Registers:
View file0.txt
# パス指定
http_path = "/"
css_dir = "css"
sass_dir = "sass"
images_dir = "img"
javascripts_dir = "js"
# オプション
output_style = :expanded
line_comments = false
View Firebase.py
"""
Simple firebase script without authentication
Only use for debugging or testing purposes
"""
import json
from urllib.request import Request, urlopen, build_opener, HTTPHandler
from urllib.error import URLError, HTTPError
class Firebase():
View test.json
{"Ptorx":"https://ptorx.com"}
View MultipleReturnValues.sol
pragma solidity^0.4.10;
contract MultipleReturn {
function returnFirstValue(uint a, uint b) public pure returns (uint) {
return a;
}
function caller() public pure returns (uint) {
return returnFirstValue({a: 5, b: 10});
}
View alarm.py
"""
Simple alarm clock, based on suggestion here:
https://atanok.wordpress.com/2009/10/27/amarok-kalarm-alarm-clock/
Kalarm is crashy, hence Python to the rescue.
"""
import time, datetime, os
import argparse
parser = argparse.ArgumentParser()
View gist:56977855065f222147ef5f7df6644118
//Définition des modules
const express = require("express");
const mongoose = require("mongoose");
const bodyParser = require('body-parser');
//Connexion à la base de donnée
mongoose.connect('mongodb://localhost/db').then(() => {
console.log('Connected to mongoDB')
}).catch(e => {
console.log('Error while DB connecting');
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites