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
function haversineGreatCircleDistance( | |
$latitudeFrom, $longitudeFrom, $latitudeTo, $longitudeTo, $earthRadius = 6371000) | |
{ | |
// convert from degrees to radians | |
$latFrom = deg2rad($latitudeFrom); | |
$lonFrom = deg2rad($longitudeFrom); | |
$latTo = deg2rad($latitudeTo); | |
$lonTo = deg2rad($longitudeTo); | |
$latDelta = $latTo - $latFrom; |
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
Verifying my Blockstack ID is secured with the address 1F2BFT4XPMyUJ4wzNNnk2717a3nVZQch32 https://explorer.blockstack.org/address/1F2BFT4XPMyUJ4wzNNnk2717a3nVZQch32 |
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'; | |
Class ParentComponent extends Component{ | |
this.state = { | |
title: "CodeFights", | |
description: "Online website" | |
} | |
constructor(props){ | |
super(props); | |
} |
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
// Define a state | |
this.state = { | |
name: "Jon Snow", | |
age: 28 | |
} | |
// get value of the state | |
this.state.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
#include <FastLED.h> | |
/** BASIC CONFIGURATION **/ | |
//The amount of LEDs in the setup | |
#define NUM_LEDS 200 | |
//The pin that controls the LEDs | |
#define LED_PIN 6 | |
//The pin that we read sensor values form | |
#define ANALOG_READ 2 |
OlderNewer