This file contains 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
{"nodes": [{"id": "39.242.208.185", "group": 1}, {"id": "220.106.171.147", "group": 5}, {"id": "9.201.14.236", "group": 3}, {"id": "17.193.144.156", "group": 5}, {"id": "192.187.252.249", "group": 1}, {"id": "23.132.119.213", "group": 1}, {"id": "253.88.198.245", "group": 3}, {"id": "21.197.74.102", "group": 2}, {"id": "155.62.78.222", "group": 3}, {"id": "97.209.5.110", "group": 4}, {"id": "190.135.21.90", "group": 3}, {"id": "13.196.75.136", "group": 1}, {"id": "231.173.67.222", "group": 1}, {"id": "181.73.95.219", "group": 4}, {"id": "230.208.139.136", "group": 3}, {"id": "10.52.9.114", "group": 4}, {"id": "80.210.164.136", "group": 2}, {"id": "122.86.203.55", "group": 1}, {"id": "85.145.110.253", "group": 2}, {"id": "199.230.110.237", "group": 3}, {"id": "179.127.38.64", "group": 1}, {"id": "128.4.187.151", "group": 1}, {"id": "66.242.80.106", "group": 4}, {"id": "150.115.140.234", "group": 1}, {"id": "37.253.76.179", "group": 2}, {"id": "18.10.230.183", "group": 2}, {"id": "136.230.162.60", "group": 1}, |
This file contains 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
{ | |
"@context": { | |
"ApiDocumentation": "hydra:ApiDocumentation", | |
"description": "hydra:description", | |
"domain": { | |
"@id": "rdfs:domain", | |
"@type": "@id" | |
}, | |
"expects": { | |
"@id": "hydra:expects", |
This file contains 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
"""Test for checking if the response format is proper. Run test_crud before running this.""" | |
# -*- coding: utf-8 -*- | |
import unittest | |
import random | |
import string | |
import json | |
import re | |
from hydrus.app import app_factory | |
from hydrus.utils import set_session, set_doc, set_api_name |
This file contains 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
## Instructions to run | |
# 1. Download the file using | |
# wget https://gist.githubusercontent.com/xadahiya/c677f7e69bcf7169cb29e08052273544/raw/6b27345d9094dba8a35f71363c0f015870e9e362/vagrant.sh | |
#2. Run | |
# chmod 777 vagrant.sh | |
#3. Finally run the file using |
This file contains 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 { StyleSheet, View, Text, AsyncStorage, | |
Button, Alert, TouchableOpacity, } from 'react-native'; | |
import * as helpers from '../helpers'; | |
export default class Decks extends Component { | |
state = { | |
storageData: '', |
This file contains 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/env python | |
# Log Analysis | |
# Project 2 | |
# Udacity - Full Stack Nanodegree | |
# import Postgresql library | |
import psycopg2 | |
# Store global database name |
This file contains 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
""" | |
Example from the README | |
""" | |
def main(): | |
the_iri_of_the_resource = 'http://www.markus-lanthaler.com/hydra/event-api/events/102' | |
from hydra import Resource, SCHEMA | |
res = Resource.from_iri(the_iri_of_the_resource) | |
get_event = res.find_suitable_operation(None, None, SCHEMA.Event) |
This file contains 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
""" | |
Generated API Documentation for Server API using server_doc_gen.py.""" | |
doc = { | |
"@context": { | |
"ApiDocumentation": "hydra:ApiDocumentation", | |
"description": "hydra:description", | |
"domain": { | |
"@id": "rdfs:domain", | |
"@type": "@id" |
This file contains 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
### We only need to replace the subsystem_parsed_classes by this and the new hydra server for drones API is ready. | |
parsed_classes = [ | |
{ | |
"@id":"http://schema.org/Order", | |
"@type":"hydra:Class", | |
"title":"Order", | |
"description":"Handle orders from the central server.", | |
"supportedOperation":[ | |
{ | |
"statusCodes": [ |
This file contains 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
# |
NewerOlder