Skip to content

Instantly share code, notes, and snippets.

Avatar

Samarendra M Hedaoo knightsamar

View GitHub Profile
@knightsamar
knightsamar / sample_data_q4.txt
Created Aug 7, 2019
Sample data for the the Q4 of Relational Algebra Assignment for CS340
View sample_data_q4.txt
-- this is for the Q4 of Relational Algebra Assignment for CS340
group: PlayerTeamCities
Player = {
id:number, score:number, team_id:number
1, 100, 1
2, 200, 2
3, 99, 1
4, 100, 2
@knightsamar
knightsamar / sample_data_q4.txt
Created Aug 7, 2019
Sample data for the the Q4 of Relational Algebra Assignment for CS340
View sample_data_q4.txt
-- this is for the Q4 of Relational Algebra Assignment for CS340
group: PlayerTeamCities
Player = {
id:number, score:number, team_id:number
1, 100, 1
2, 200, 2
3, 99, 1
4, 100, 2
View gist:30ed2834ba666ea7d141fb7fb37c1676
group: q_piazza
student = {
sid:number, fname:string, lname:string
1,'ABC','XYZ'
2,'PQR','UVZ'
3,'AAA','BBB'
4,'XXX','YYY'
}
@knightsamar
knightsamar / gist:9a02ecefab6c753b5f30cf1508817e2a
Last active May 12, 2020
auto dealer schema & sample data for use in cs340 assignment
View gist:9a02ecefab6c753b5f30cf1508817e2a
group: auto_dealer_schema
Model = {
model_id:number, model_name:string, first_production_year:string
1,'Model1',"1985"
2,'Model2',"1987"
3,'2 Series',"1990"
4,'Focus',"1986"
}
View gist:0ce57b3161703de6476db669e991721b
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDTc3XDLlwIcQRpdwyqTaEjJLXcxyNK4HA4ywU+uj06BV+x4h6uVG0SGbVJ6ivMscPT8178Y7HiIGWwLTSmbN5cSL1R9zgUEtOlBGB4JxaWS+yXMYN2TyqxPSraqyRnFSCQhPgAaVe+VppL+ic6A9otZ20kD4jbCCXcKpGOMVBrHWdjHVm1RL+RJ3rTePFNXEvyN1SxmKgmJ7W0p09NWummNENcLeLJlZGMXNNdem+2yIw3zlpi2r4q9NiYBzry5HdCSvAvzeKcoLUmM+eS7eVrHaCGN/IjcebvzFU/ddJl52VmQm99H1ZvHiLpCP6XZ6sXu20NKkewvgggYdh6+f+YWoI6xbL5xQch4gQS0A/Kk26UknaaNmU4ityLT5N84TGirCsyheH7OHW+hLLrPOFviDuvcTwm+WjhfGY1q8uRtNPqMQbVjnr3MG4jdwmQPZgRiw6hnnqSG6kFQAFDubCPz1RRbKjfUJrS63K3zVkcyeQgsjiLDixNhZRfdMp7GcANpIVmMxDN2YixI8nTcwlqhgnGI4WlB36E2gqS1KzmS3MUFoFWETM8AvBu3RWrG26yoLR6KlrsHrV76c1BU6oGOKrGEvVrlqzQW+IK1Li2xPhTellmKRTTskhALsvpgMJx3szGZ77GF91c7zuS/rvr51koiQvMdpHi0i+Z+JQMmQ== samarendra@samarendra-workstation
View reduce_with_binary_operation_symbol.rb
#thanks to https://flats.github.io/blog/2015/12/02/getting-to-know-rubys-map-and-reduce/
pry(main)> x = [1,2,3]
=> [1, 2, 3]
pry(main)> y = [2,5,6]
=> [2, 5, 6]
pry(main)> z = [42,41,5]
=> [42, 41, 5]
pry(main)> n = [x,y,z]
=> [[1, 2, 3], [2, 5, 6], [42, 41, 5]]
@knightsamar
knightsamar / gist:3137173169a058c1a331afb6c50e65b4
Created Dec 16, 2016
NoMethodError on trying to converge with yum-epel 2.0.0 included
View gist:3137173169a058c1a331afb6c50e65b4
Finished creating <default-centos-73> (0m48.69s).
-----> Converging <default-centos-73>...
Preparing files for transfer
Preparing dna.json
Resolving cookbook dependencies with Berkshelf 4.3.3...
Removing non-cookbook files before transfer
Preparing data_bags
Preparing solo.rb
-----> Chef Omnibus installation detected (12.10.24)
Transferring files to <default-centos-73>
You can’t perform that action at this time.