Skip to content

Instantly share code, notes, and snippets.

View vinayvinay's full-sized avatar

Vinay Patel vinayvinay

View GitHub Profile
@vinayvinay
vinayvinay / app.rb
Created August 3, 2023 09:01
coding task structure
require_relative "funcs"
messages = get_commit_messages()
llm = init_llm()
client = init_vector_search_client(llm)
load_documents(client, messages)
query(client, "Which commits mention terraform modules?")
@vinayvinay
vinayvinay / .python-version
Last active November 21, 2022 11:31
central-ds-hands-on-infra-setup-workshop
3.9.10
@vinayvinay
vinayvinay / cloudSettings
Created March 18, 2019 11:30
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-03-18T11:30:21.740Z","extensionVersion":"v3.2.7"}
# zoomer_sentence_reversor.rb
def sentence_reversor(str=nil)
return "ERROR: Pass-in a string to reverse as an argument" if str.nil?
str.split.reverse.join(" ")
end
# puts sentence_reversor(ARGV[0])
# zoomer_sentence_reversor_test.rb
require 'test/unit'
1) Home + Main website: - http://twinsinfotech.com/ibluebottle/
2) Demo Profile: http://twinsinfotech.com/ibluebottle/demo_profile.html
3) Our members: http://twinsinfotech.com/ibluebottle/our_members.html
4) Sign Up
http://twinsinfotech.com/ibluebottle/index_signup_step_2.html
http://twinsinfotech.com/ibluebottle/index_signup_step_3.html
http://twinsinfotech.com/ibluebottle/index_signup_step_4.html
http://twinsinfotech.com/ibluebottle/index_signup_step_5.html
http://twinsinfotech.com/ibluebottle/index_signup_step_end.html
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vinayvinay
vinayvinay / teamshares.md
Last active March 26, 2019 13:48
Conventions and preferences to be shared within teams to promote harmonious and joyful Ruby on Rails development.
@vinayvinay
vinayvinay / infrastructure-and-the-cloud.md
Created June 23, 2012 06:51
infrastructure and the cloud
@vinayvinay
vinayvinay / 4clojure-solutions.clj
Created May 14, 2011 09:09
sharing my first steps to picking-up clojure using 4clojure.com
;;; 25
(= (filter #(= (mod % 2) 1) #{1 2 3 4 5}) '(1 3 5))
(= (filter #(= (mod % 2) 1) [4 2 1 6]) '(1))
(= (filter #(= (mod % 2) 1) [2 2 4 6]) '())
(= (filter #(= (mod % 2) 1) [1 1 1 3]) '(1 1 1 3))
;;; 24
(= (reduce (fn [x y] (+ x y)) [1 2 3]) 6)
(= (reduce (fn [x y] (+ x y)) (list 0 -2 5 5)) 8)
(= (reduce (fn [x y] (+ x y)) #{4 2 1}) 7)