Skip to content

Instantly share code, notes, and snippets.

View knightsamar's full-sized avatar
💭
I might not respond unless you email me.

Samarendra M Hedaoo knightsamar

💭
I might not respond unless you email me.
View GitHub Profile
group: q_piazza
student = {
sid:number, fname:string, lname:string
1,'ABC','XYZ'
2,'PQR','UVZ'
3,'AAA','BBB'
4,'XXX','YYY'
}
@knightsamar
knightsamar / sample_data_q4.txt
Created August 7, 2019 05:43
Sample data for the the Q4 of Relational Algebra Assignment for CS340
-- 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 August 7, 2019 05:43
Sample data for the the Q4 of Relational Algebra Assignment for CS340
-- 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 / gist:9a02ecefab6c753b5f30cf1508817e2a
Last active February 9, 2021 15:41
auto dealer schema & sample data for use in cs340 assignment
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"
}
#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 December 16, 2016 23:37
NoMethodError on trying to converge with yum-epel 2.0.0 included
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>