One Paragraph of project description goes here
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.
import React, { Component } from 'react' | |
import { RootNavigator } from './navigators' | |
import { GoogleAnalyticsTracker } from './utils/analytics' | |
import { GA_TRACKING_ID } from './constants' | |
class App extends Component { | |
// gets the current screen from navigation state | |
getCurrentRouteName = (navigationState) => { | |
if (!navigationState) { | |
return null |
import pandas as pnd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
def pos(t, x1, v1, b, c): | |
return x1 + v1*t + (t**2)*b/2 + (t**3)*c/6 | |
def kinematic_interpolation(xytvv, times): |
# This is just a cheat sheet: | |
# On production | |
sudo -u postgres pg_dump database | gzip -9 > database.sql.gz | |
# On local | |
scp -C production:~/database.sql.gz | |
dropdb database && createdb database | |
gunzip < database.sql.gz | psql database |
import urllib2 | |
import os | |
#import sys | |
from itertools import islice | |
from rdflib import Namespace, Graph, ConjunctiveGraph, URIRef, RDFS, RDF | |
from rdflib.plugins.stores.sparqlstore import SPARQLStore | |
from rdfalchemy.rdfSubject import rdfSubject | |
from rdfalchemy import rdfSingle, rdfMultiple | |
from rdfalchemy.descriptors import rdfAbstract, rdfLocale | |
from rdfalchemy.orm import mapper |
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit |
# LICENSE: public domain | |
def calculate_initial_compass_bearing(pointA, pointB): | |
""" | |
Calculates the bearing between two points. | |
The formulae used is the following: | |
θ = atan2(sin(Δlong).cos(lat2), | |
cos(lat1).sin(lat2) − sin(lat1).cos(lat2).cos(Δlong)) |