I hereby claim:
- I am petrbela on github.
- I am petrbela (https://keybase.io/petrbela) on keybase.
- I have a public key whose fingerprint is C6BB 7046 2330 28DE C757 02CA 4A28 5F03 51EA 3821
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
require 'FileUtils' | |
require 'net/http' | |
require 'open-uri' | |
require 'parallel' | |
require 'json' | |
print "Chute shortcut: " | |
chute_shortcut = gets.chomp | |
begin |
#!/usr/bin/env ruby | |
require 'FileUtils' | |
require 'net/http' | |
require 'open-uri' | |
require 'parallel' | |
require 'rest_client' | |
require 'json' | |
print "Chute ID: " | |
chute_id = gets.chomp |
return function(request, next_middleware) | |
local function geo_distance(lat1, lon1, lat2, lon2) | |
if lat1 == nil or lon1 == nil or lat2 == nil or lon2 == nil then | |
return nil | |
end | |
local dlat = math.rad(lat2-lat1) | |
local dlon = math.rad(lon2-lon1) | |
local sin_dlat = math.sin(dlat/2) | |
local sin_dlon = math.sin(dlon/2) | |
local a = sin_dlat * sin_dlat + math.cos(math.rad(lat1)) * math.cos(math.rad(lat2)) * sin_dlon * sin_dlon |
<link rel="import" href="../chart-js/chart-js.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |
I hereby claim:
To claim this, I am signing this object:
# Copied from https://github.com/logsearch/logsearch-boshrelease/blob/develop/share/util/elasticsearch-rolling-restart | |
#!/bin/bash | |
# | |
# perform a rolling restart of all data/master nodes in a stable cluster | |
# | |
# args: [-i|--interactive] [elasticsearch-host:port] | |
# |
'use strict' | |
import { | |
GraphQLObjectType, | |
GraphQLString, | |
} from 'graphql' | |
import Types from './Types' | |
Types.Album = new GraphQLObjectType({ |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
{"lastUpload":"2019-06-13T17:15:30.511Z","extensionVersion":"v3.2.9"} |
Notes from installing CUDA and TensorFlow on a MacBook Pro 15" 2013 with GeForce 650M
deviceQuery
lists your GPUexport PATH=$PATH:/usr/local/cuda/bin
/usr/local/cuda