Skip to content

Instantly share code, notes, and snippets.

#YY MM DD hh mm WDIR WSPD GST WVHT DPD APD MWD PRES ATMP WTMP DEWP VIS PTDY TIDE
#yr mo dy hr mn degT m/s m/s m sec sec degT hPa degC degC degC nmi hPa ft
2019 11 06 17 10 330 3.0 5.0 MM MM MM MM 1018.4 11.1 12.5 MM MM MM MM
2019 11 06 17 00 310 3.0 5.0 MM MM MM MM 1018.3 11.1 12.5 MM MM +0.6 MM
2019 11 06 16 50 320 2.0 4.0 0.9 8 5.1 309 1018.3 11.0 12.5 MM MM MM MM
2019 11 06 16 40 330 4.0 5.0 MM MM MM MM 1018.4 11.0 12.5 MM MM MM MM
2019 11 06 16 30 310 3.0 5.0 MM MM MM MM 1018.3 11.1 12.5 MM MM MM MM
2019 11 06 16 20 330 3.0 4.0 MM MM MM MM 1018.3 11.1 12.5 MM MM MM MM
2019 11 06 16 10 330 4.0 5.0 MM MM MM MM 1018.3 11.1 12.5 MM MM MM MM
2019 11 06 16 00 330 4.0 6.0 MM MM MM MM 1018.2 11.1 12.5 MM MM +0.6 MM
@Liampronan
Liampronan / withNestedStackNavigationFocus.js
Last active August 21, 2019 19:47
React Navigation: Nested Stack Navigators Workaround
import React, { Component } from "react";
import { compose } from "redux";
import hoistNonReactStatic from "hoist-non-react-statics";
/* eslint-disable no-restricted-imports */
import { withNavigationFocus } from "react-navigation";
import PropTypes from "prop-types";
// withTrackOnNavigationFocus fixes an issue with neseted stack navigators. we use this instead of
// directly calling withNavigationFocus so that nested stack navigators have correct isFocused prop.
function withNestedStackNavigationFocus(WrappedComponent) {
var objectToFirebase = require('object-to-firebase');
var config = require('config');
var Firebase = require('firebase');
var rootRef = require('../services/firebaseAuthService').rootRef;
var messagesRef = rootRef.child('messages');
var usersRef = rootRef.child('users');
var Backbone = require('backbone');
var Q = require('q');
require('../services/backbonefire'); //
var grunt = require('grunt');
var User = require('../models/user');
var MessageThread = require('../models/messageThread');
var config = require('config');
var Firebase = require('firebase');
var FirebaseAuthToken = process.env.FIREBASE_AUTH_TOKEN;
var firebaseService = require('../services/firebaseService');
var firebaseAuthService = require('../services/firebaseAuthService');
var Q = require('q');
var jsonfile = require('jsonfile');
//
// DraggableCardView.swift
// TinderCardsSwift
//
// Created by Eugene Andreyev on 4/23/15.
// Copyright (c) 2015 Yalantis. All rights reserved.
//
import UIKit
import pop
@Liampronan
Liampronan / sfLocations
Created August 30, 2014 21:05
Popular landmarks with their coordinates
[
{
"locationName":"Haslett Warehouse",
"locationDesc":"680 Beach St.",
"latitude":"37.8069",
"longitude":-122.4201
},
{
"locationName":"Ghirardelli Square",
"locationDesc":"Block bounded by North Point, Larkin, Beach and Polk Streets",
@Liampronan
Liampronan / html.html
Created May 4, 2014 04:21
Bootstrap - align labels with checkbox
<div class="row search-options">
<div class="col-sm-3 col-sm-offset-1">
<label class="label-fix"><input type="checkbox" value="Food" class="text-center label-fix"/>
Food</label>
<!--<label class="label-fix checkbox" for="food">Food</label>-->
</div>
<div class="col-sm-3 col-sm-offset-1">
<label class="label-fix"><input type="checkbox" value="Booze" class="text-center label-fix"/>
Booze</label>
</div>
@Liampronan
Liampronan / create_hash_from_two_arrays.rb
Created October 15, 2013 16:26
warmup 10/15 -beginning ruby - function to take two arrays of equal length and return a hash with array1 values as keys and array2 values as values
# input is two arrays; output is hash with first array values as key and second array values as values; assume same size
def hashable(array1,array2)
combined_hash = {}
array1.each_with_index do |val, index|
combined_hash[val] = array2[index]
end
return combined_hash
//find first occurrence of a char in a given word
function first_unique_char(word)
{
letter_obj = new Object();
word_array = word.split('');
//first setup hash to store occurrences of char
for (var letter in word_array){
if (letter_obj[word_array[letter]] === undefined){
letter_obj[word_array[letter]] = 1;}