Skip to content

Instantly share code, notes, and snippets.

View sebastian-palma's full-sized avatar

Seb sebastian-palma

View GitHub Profile

Warming up -------------------------------------- Array#each 45.102k i/100ms Hash::[] 36.133k i/100ms Enumerable#map 38.767k i/100ms Enumerable#each_with_object 42.234k i/100ms Object#tap 42.185k i/100ms Enumerable#to_h 44.715k i/100ms Enumerable#index_by 41.212k i/100ms Calculating -------------------------------------

asyncapi: 2.0.0
info:
title: Streetlights API
version: '1.0.0'
description: |
The Smartylighting Streetlights API allows you to remotely manage the city lights.
### Check out its awesome features:
* Turn a specific streetlight on/off 🌃
$ bundle exec rails db:migrate
== 20191101233132 ExtendExecutionDatetimePrecision: migrating =================
-- change_column(:executions, :order_insert_time, :datetime, {:limit=>6})
   -> 0.0912s
== 20191101233132 ExtendExecutionDatetimePrecision: migrated (0.0913s) ========

➜  stack git:(master) ✗ bin/rails db -p
Reading table information for completion of table and column names
# frozen_string_literal: true
require 'open3'
require 'pry'
module Utils
class GemVerifier
def check_needed_gems
require 'tty-prompt'
rescue LoadError

For installing tensorflow-hub using Conda prefer the next way (it installs the 2.0.0 version):

$ conda install -c conda-forge/label/cf201901 tensorflow-hub 
(ns intrv)
;; max
(apply max '(1 2 3 4 5 5 4 3 2 1 5))
;; min
(apply min '(1 2 3 4 5 5 4 3 2 1 5))
;; mean
(let [arr '(1 2 3 4 5 5 4 3 2 1 5)]