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
# Example of a bad LLM | |
from langchain.llms import OpenAI | |
from langchain.prompts import PromptTemplate | |
from langchain.chains.llm import LLMChain | |
story_prompt = PromptTemplate( | |
template="""Write a story about: {story}""", | |
input_variables=["story"] | |
) |
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
var s = 1; | |
var k = 2; |
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
#!/bin/bash | |
#installing ruby gems on centos | |
#add the ruby repository | |
sudo echo '[ruby]' > /etc/yum.repos.d/ruby.repo | |
sudo echo 'name=ruby' >> /etc/yum.repos.d/ruby.repo | |
sudo echo 'baseurl=http://repo.premiumhelp.eu/ruby/' >> /etc/yum.repos.d/ruby.repo | |
sudo echo 'gpgcheck=0' >> /etc/yum.repos.d/ruby.repo | |
sudo echo 'enabled=0' >> /etc/yum.repos.d/ruby.repo |
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
#!/usr/bin/ruby | |
#USAGE: mategem gemname | |
gem_name = ARGV[0] | |
full_name = %x[gem list #{ARGV[0]}].strip! | |
exit if (full_name == "") | |
version = /\((.*)\)/.match(full_name)[1] | |
%x[mate /Library/Ruby/Gems/1.8/gems/#{gem_name}-#{version}] |
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
puts 'what the is a gist?' |