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
defmodule RecordWeb.CompositeComponent do | |
use RecordWeb, :live_component | |
alias Record.Movements | |
alias Record.Core.Composite | |
import Ecto.Changeset | |
def update(assigns, socket) do | |
movement = case input_value(assigns.composite_form, :movement_id) do | |
nil -> nil | |
movement_id -> Movements.get_movement!(movement_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
cursor = "#d8dee9"; | |
//cursor_foreground = "#2e3440"; | |
foreground = "#d8dee9"; | |
//foreground_bold = "#d8dee9"; | |
background = "#2e3440"; | |
//highlight = "#4c566a"; | |
color0 = "#3b4252"; |
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
black = '#0a0f14'; | |
red = '#c23127'; // red | |
green = '#2aa889'; // green | |
yellow = '#edb442'; // yellow | |
blue = '#195466'; // blue | |
magenta = '#4e5166'; // pink | |
cyan = '#33859e'; // cyan | |
white = '#99d1ce'; // light gray | |
lightBlack = '#10151b'; // medium gray | |
lightRed = '#d26936'; // red |
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
// Pop uses the System76 palette | |
$almost_white: #f2f2f2; | |
$warm_gray: #574f4a; | |
$dark_gray: #574e4a; | |
$dark_neutral_gray: #333; | |
$light_gray: #aaa; | |
$literally_black: #000; | |
$medium_gray: #888; | |
$white: #fff; |
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
" Author: Jamie Dumont <jamiedumont@icloud.com> | |
" Version: 0.1.0 | |
" License: MIT | |
" Theme constructed using the same format as vim-gotham, built by | |
" Andrea Leopardi - https://github.com/whatyouhide/vim-gotham | |
" Bootstrap =================================================================== | |
hi clear |
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
black = '#0a0f14'; | |
red = '#c23127'; // red | |
green = '#2aa889'; // green | |
yellow = '#edb442'; // yellow | |
blue = '#195466'; // blue | |
magenta = '#4e5166'; // pink | |
cyan = '#33859e'; // cyan | |
white = '#99d1ce'; // light gray | |
lightBlack = '#10151b'; // medium gray | |
lightRed = '#d26936'; // red |
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 distance(lat1, lon1, lat2, lon2) { | |
var deg2rad = Math.PI / 180; | |
lat1 *= deg2rad; | |
lon1 *= deg2rad; | |
lat2 *= deg2rad; | |
lon2 *= deg2rad; | |
var diam = 12742; // Diameter of the earth in km (2 * 6371) | |
var dLat = lat2 - lat1; | |
var dLon = lon2 - lon1; | |
var a = ( |