hemlock 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa666c362889811f1220e75ff301a30138783f55
4
- data.tar.gz: 6af3749ab2b537cb5984b93829aa00d64ca90c42
3
+ metadata.gz: e15b924ad26e562583f178162bd173bb676f9d15
4
+ data.tar.gz: 9a02b9222f6232bd5ffc299bdf5c9161a1113d27
5
5
  SHA512:
6
- metadata.gz: def407d1ce401e61cc0fc8d82d588c9a1fab9298c150e784f4e541f9d0d3dbf82d2c0d3195cdbee06c96e119c6d0d826c1efd0fd982e52e84c40897daca2ca20
7
- data.tar.gz: 96ed37a7438b07e3f901a7938c0d0e248208fea7d8c4ff9dc0041c07e2a38213d48a32cb6118368e8bd24ef63a137018e05752e2e951fd70decd324a0df11b25
6
+ metadata.gz: fa6ccdd1330a0a538f54fe9ef63dc65870358fdb9233ecf5eb0dcbe3d521c810fdfb7c01415cbdcbaeba6068c0959a1334a10841e818e98b4c23ede221808a47
7
+ data.tar.gz: 94e2352e668be06f111de60d15c2c893e5d2ddb126c847bf5120d9f71f0f5da3cc4d2ddb595ea72bcc56cf8d38fa7f0edb4708105b13be0381ab0782f4691ebf
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hemlock (0.0.6)
4
+ hemlock (0.0.7)
5
5
  gli (= 2.9.0)
6
6
  rainbow (= 1.99.1)
7
7
 
@@ -19,7 +19,7 @@ command :drink do |c|
19
19
 
20
20
  c.action do |global_options, options, args|
21
21
  if args.empty?
22
- puts printf Rainbow("Using Nick's Dropbox folder").blue
22
+ puts printf Rainbow("Using native flashcards").blue
23
23
  args = []
24
24
  end
25
25
  flashcards = Hemlock::CSVtoFlashcards.create_flashcards(args.join)
@@ -0,0 +1,22 @@
1
+ ,
2
+ ,
3
+ ,
4
+ ,
5
+ ,
6
+ ,
7
+ ,
8
+ ,
9
+ ,
10
+ ,
11
+ ,
12
+ ,
13
+ ,
14
+ ,
15
+ ,
16
+ ,
17
+ ,
18
+ ,
19
+ ,
20
+ ,
21
+ ,
22
+ ,
@@ -0,0 +1,22 @@
1
+ ,
2
+ ,
3
+ ,
4
+ ,
5
+ ,
6
+ ,
7
+ ,
8
+ ,
9
+ ,
10
+ ,
11
+ ,
12
+ ,
13
+ ,
14
+ ,
15
+ ,
16
+ ,
17
+ ,
18
+ ,
19
+ ,
20
+ ,
21
+ ,
22
+ ,
@@ -0,0 +1,22 @@
1
+ ,
2
+ The 8 steps to tackle a commercial paper question ,"1) type of paper, 2) parties, 3) negotiable 4) negotiated 5) HDC 6) Plaintiff’s cause of action 7) Defendant’s defenses 8) Contribution"
3
+ ,
4
+ ,
5
+ ,
6
+ ,
7
+ ,
8
+ ,
9
+ ,
10
+ ,
11
+ ,
12
+ ,
13
+ ,
14
+ ,
15
+ ,
16
+ ,
17
+ ,
18
+ ,
19
+ ,
20
+ ,
21
+ ,
22
+ ,
@@ -0,0 +1,22 @@
1
+ ,
2
+ ,
3
+ ,
4
+ ,
5
+ ,
6
+ ,
7
+ ,
8
+ ,
9
+ ,
10
+ ,
11
+ ,
12
+ ,
13
+ ,
14
+ ,
15
+ ,
16
+ ,
17
+ ,
18
+ ,
19
+ ,
20
+ ,
21
+ ,
22
+ ,
@@ -0,0 +1,22 @@
1
+ ,
2
+ ,
3
+ ,
4
+ ,
5
+ ,
6
+ ,
7
+ ,
8
+ ,
9
+ ,
10
+ ,
11
+ ,
12
+ ,
13
+ ,
14
+ ,
15
+ ,
16
+ ,
17
+ ,
18
+ ,
19
+ ,
20
+ ,
21
+ ,
22
+ ,
@@ -0,0 +1,54 @@
1
+ ,
2
+ Supremacy Clause,"states that in a conflict between state and federal law, the state law is preempted"
3
+ Commerce Clause,"Congress has the power to regulate interstate commerce, including instrumentalities of interstate commerce and activities that ‘substantially effect’ interstate commerce"
4
+ Dormant Commerce Clause,is implicit authority given to states in areas where Congress has not enacted regulation by allowing them to pass laws that burden interstate commerce if they are narrowly tailored to serve a compelling state interest and the burden is not excessive
5
+ Privileges and Immunities Clause,states that citizens of each state shall be entitled to all the Privileges and Immunities of Citizens in the several (or all) states
6
+ Bill of Attainder,"is 1) legislation, 2) that inflicts punishment without trial, 3) to named individuals, 4) for past conduct"
7
+ RAMPS,"Ripeness, Abstention, Mootness, Political Questions and Standing"
8
+ SCOTUS Original Jurisdiciton Parties,State v. State or Foreign Diplomats
9
+ Standing,"Injury in fact, causation and redressability"
10
+ Organization standing,"member standing, purpose of the association, member participation not required"
11
+ Ripeness,is an issue if the suit happens before the plaintiff is injured
12
+ Mootness,is an issue if the plaintiff already suffered injury and could not have his claims redressed by the court
13
+ Abstention,refers to the cfederal courts make to state courts on state issues
14
+ Adequate and Independent State Grounds,refers to the federal court refusing to hear the case if the state court decided the matter entirely with state law
15
+ Congress’s source of power,"are the enumerated powers of Article 1, Section 8, the enabling clauses of the 13th, 14th and 15th amendment and the necessary and proper clause"
16
+ Commerce Clause Power,"Congress can regulate channels of interstate commerce, instrumentalities of interstate commerce, or activities that ‘substantially affect’ interstate commerce using the cumulative effect doctrine"
17
+ 11th Amendemnt,Private citizens cannot sue the state for money damages in any court
18
+ SCOTUS original jurisdiction,In suits with states and foreign diplomats
19
+ Sources of Congressional Power,"Enumerated powers (Article 1, Section 8), Enabling clauses (13-15th Amendment), Necessary and Proper clause"
20
+ Taxing Power,"Congress has the right to tax and spend for the general welfare as long as the tax objectively or subjectively raises revenue. Congress can also levy a tax as part of a regulatory scheme, i.e. banning smoking"
21
+ Spending Power,Congress can spend for general welfare
22
+ 14th Amendment,"Prohibits states from violating due process, equal protection and privileges and immunities rights"
23
+ Treaty power,"POTUS has the power to make treaties with foreign nations, but they must be ratified by the Senate by a 2/3 argeement"
24
+ Impeachment of POTUS,"House can vote for a trial by majority of the vote, and the Senate conducts the hearing. POTUS is removed by a 2/3 vote"
25
+ Anti-Commandeering doctrine,USFG cannot make states act in their sovereign capacity. This is stated in the 10th Amendment
26
+ What parts of the bill of rights does the 14th Amendment not impose on the states,"5th Amendment right to indictment by grand jury, 7th Amendment right to a jury trial in a civil case, 8th Amendment excessive fines"
27
+ Procedural Due Process,"A person must have due process of the law in claims against his life, liberty or property. Due process includes an adequate notice and an adequate hearing"
28
+ Substantive due process,"A person must have due process of the law for certain rights that are not explicit in the constitution, these are known as unenumerated rights"
29
+ Fundamental Rights,"Contraception, Marriage, Abortion (undue burden), Family relations, sexual orientation (rational basis that fails), private education, possession of obscene material, right to travel, right to vote"
30
+ Takings clause,the USFG cannot take private property for public use without just compensation. A taking must be a permanent physical invasion
31
+ Rational Basis,A plaintiff must show the government’s actions are not rationally related to any legitimate state interest. A legitimate interest does not have to be Congressional intent
32
+ Intermediate Scrutiny,Government must show that its actions are substantially related to an important interest
33
+ Strict Scrutiny,Government must prove its classification is necessary to achieve a compelling state interest.
34
+ Suspect Classifications,"Race, Alienage, National Origin, domestic travel, voting"
35
+ Classifications that deserve intermediate scrutiny,"Sex, illigetimate children, illegal immigrant children"
36
+ Privileges and Immunities under the 14th Amendment,only applies to a citizen who is travelling to become a resident of another state
37
+ Privileges and Immunities,derives from Article 4 and states that the Citizens of each State shall be entitled to the rights of Citizens in the several States
38
+ Test for Privileges and Immunities,is a state’s actions substantially related to a substantial interest?
39
+ Contract Clause,no state can impair the obligations of contracts
40
+ Ex post facto,"Statutes are invalid if it creates a new crime, adds punishment, reduces the evidentiary burden or extends a statute of limitations if the statute of limitations is expired"
41
+ Lemon Test,"1) statute must serve a secular purpose, 2) that must not advance nor inhibit religion, and 3) the statute does not create excessive government entanglement with religion"
42
+ Employment Division v. Smith test,the state can regulate or prohibit a religious activity if the statute is neutral with respect to religion and is of general applicability
43
+ Content-based scrutiny,"requires strict scrutiny unless it falls under 1 of 5 regulations: 1) the government passes strict scrutiny, 2) the speech is unprotected, 3) the government is the speaker, 4) the act is content neutral conduct regulation, or 5) the act is a time, place and manner regulation"
44
+ Unprotected speech,"1) unlawful advocacy, 2) fighting words, 3) hostile audience, 4) Obscene speech"
45
+ Miller Test,"1) the average person, applying contemporary community standards, would see the work, taken as a whole, appeals to a prurient interest, 2) the work depicts or describes, in a patently offensive way, sexual conduct specifically described by applicable state law, and 3) the work, taken as a whole, lacks serious literary, artistic, political or scientific value"
46
+ Defamatory speech when the plaintiff is a public official or public figure,the plaintiff must prove actual malices
47
+ Conduct regulation,there is an important interest not related to the regulation and the burden must be no greater than necessary
48
+ ,
49
+ ,
50
+ ,
51
+ ,
52
+ ,
53
+ ,
54
+ ,
@@ -0,0 +1,22 @@
1
+ ,
2
+ Doctrine of Impossibility,excuses both parties from their obligations under a contract if the performance has been rendered impossible by events occurring after the contract was formed and not known to either party when the contract was formed. Parties may still be entitled to quasi-contract relief
3
+ Default shipping term (UCC),Seller’s place of business
4
+ ,
5
+ ,
6
+ ,
7
+ ,
8
+ ,
9
+ ,
10
+ ,
11
+ ,
12
+ ,
13
+ ,
14
+ ,
15
+ ,
16
+ ,
17
+ ,
18
+ ,
19
+ ,
20
+ ,
21
+ ,
22
+ ,
@@ -0,0 +1,22 @@
1
+ ,
2
+ ,
3
+ ,
4
+ ,
5
+ ,
6
+ ,
7
+ ,
8
+ ,
9
+ ,
10
+ ,
11
+ ,
12
+ ,
13
+ ,
14
+ ,
15
+ ,
16
+ ,
17
+ ,
18
+ ,
19
+ ,
20
+ ,
21
+ ,
22
+ ,
@@ -0,0 +1,22 @@
1
+ ,
2
+ ,
3
+ ,
4
+ ,
5
+ ,
6
+ ,
7
+ ,
8
+ ,
9
+ ,
10
+ ,
11
+ ,
12
+ ,
13
+ ,
14
+ ,
15
+ ,
16
+ ,
17
+ ,
18
+ ,
19
+ ,
20
+ ,
21
+ ,
22
+ ,
@@ -0,0 +1,22 @@
1
+ ,
2
+ Judicial notice,"A court, may with or without the consent of the parties, instruct a jury to take a municipal code as truth"
3
+ ,
4
+ ,
5
+ ,
6
+ ,
7
+ ,
8
+ ,
9
+ ,
10
+ ,
11
+ ,
12
+ ,
13
+ ,
14
+ ,
15
+ ,
16
+ ,
17
+ ,
18
+ ,
19
+ ,
20
+ ,
21
+ ,
22
+ ,
@@ -0,0 +1,22 @@
1
+ ,
2
+ ,
3
+ ,
4
+ ,
5
+ ,
6
+ ,
7
+ ,
8
+ ,
9
+ ,
10
+ ,
11
+ ,
12
+ ,
13
+ ,
14
+ ,
15
+ ,
16
+ ,
17
+ ,
18
+ ,
19
+ ,
20
+ ,
21
+ ,
22
+ ,
@@ -0,0 +1,22 @@
1
+ ,
2
+ ,
3
+ ,
4
+ ,
5
+ ,
6
+ ,
7
+ ,
8
+ ,
9
+ ,
10
+ ,
11
+ ,
12
+ ,
13
+ ,
14
+ ,
15
+ ,
16
+ ,
17
+ ,
18
+ ,
19
+ ,
20
+ ,
21
+ ,
22
+ ,
@@ -0,0 +1,22 @@
1
+ ,
2
+ Doctrine of Equitable Conversion,states that the buyer has equitable title and the seller has legal title after the sale of a contract
3
+ Uniform Vendor Purchaser and Risk Act,states that the seller is liable for the risk of loss following a contract for the sale of real property
4
+ Uniform Statutory Rule Against Perpetuities,"states that a non-vested property interest is invalid if either the interest fails to vest within 21 years of a life in being, or if vesting or termination does not occur within 365 years"
5
+ Joint Tenancy,is a tenancy where each party will have a right of survivorship and the right to partition land
6
+ Assignment,is created when a tenant transfers all of his rights to the tenancy to a third party
7
+ "In an assignment, the new tenant is liable to the landlord for","rent if there either privity of contract, or when there is in an evidence of an agreement between the landlord and the new tenant, or if there is privity of estate, which exists only between the present landlord and the tenant"
8
+ Sublease,"is created when a tenant transfers some, but not all, of his rights to a third party"
9
+ "In a subleasing rent dispute, the landlord",can only recover rent from anyone with whom he is in privity with. A sublessee is not in privity with the landlord
10
+ Eminent Domain,is a public taking of private property
11
+ Implied Warranty of Habitabality,"states that the landlord will deliver and maintain premises that are safe, clean, and fit for human habitation"
12
+ "In a breach of the implied warranty of habitability, a tenant must","show a patent or latent defect in an essential residential facility and give notice to the landlord about the defect, and give the landlord reasonable time to cure the defect"
13
+ "If the tenant is successful in a breach of implied warranty of habitability claim,","he is excused from further performance under the lease, which means he can vacate the premises and stop paying rent, and he can sue for money damages "
14
+ Fixture,is a chattel that has become so connected to real property that an unbiased 3rd party would deem that chattel to be part of the property
15
+ Trade Fixture,is chattel affixed by a tenant to his rented property to advance his business or trade during his tenancy
16
+ Easement Implied by necessity,is an easement where the is a showing of strict necessity and prior common ownership of the benefited and servant estates
17
+ Notice (for race-notice),"1) Actual notice, 2) Constructive Notice (i.e. tracts), 3) Inquiry Notice (what he should have inquired about)"
18
+ ,
19
+ ,
20
+ ,
21
+ ,
22
+ ,
@@ -0,0 +1,22 @@
1
+ ,
2
+ Governing law (Secured Transactions),Article 9 of the Uniform Commercial Code governs secure transactions in how they are attached and perfected.
3
+ Secured Transaction,is a transaction intended to create a security interest in personal property or fixtures
4
+ Security Interest,is an interest in personal property or fixtures which secures payment or performance of an obligation.
5
+ Attachment,refers to the legal process by which a secured party receives a security interest in collateral that is enforceable by law against the debtor.
6
+ Security Agreement,"is an agreement between the debtor and the secured party that creates the security interest. The agreement must be 1) consensual, 2) that creates a conditional property right, 3) in personal property or fixtures"
7
+ Perfection,refers to the legal process by which a secured party receives a security interest in collateral that is enforceable against any person.
8
+ The 6 ways to perfect title ,"are 1) automatic perfection, 2) possession by a secure party, 3) control, 4) notation of lien on certificate of title, 5) filing a finance statement and 6) temporary perfection"
9
+ ,
10
+ ,
11
+ ,
12
+ ,
13
+ ,
14
+ ,
15
+ ,
16
+ ,
17
+ ,
18
+ ,
19
+ ,
20
+ ,
21
+ ,
22
+ ,
@@ -0,0 +1,27 @@
1
+ ,
2
+ Elements of Negligence,"1) Duty, 2) Standard of Care, 3) Breach of Duty, 4) Actual Cause, 5) Proximate Cause, 6) Damages, 7) Defenses (comparative negligence and assumption of the risk)"
3
+ Benefit of the Bargain test,"In a misrepresentation action, the plaintiff is entitled to damages measured by the difference of what the property was represented at vs. what the property was actually at"
4
+ The 5 elements of intentional torts,"1) A voluntary act, 2) Intent, 3) Causation, 4) Harm or Injury, and 5) Defenses or Privileges"
5
+ Popcans,"1) Privilege, 2) Defense of others, 3) defense of property, 4) consent, 5) authority, 6) Necessity, 7) self-defenses"
6
+ Battery,is when the defendant intentionally causes harmful or offensive contact to the plaintiff or something closely related to the plaintiff
7
+ Assault,is where the defendant intentionally places the plaintiff in reasonable apprehension of an imminent battery
8
+ Apprehension,understanding
9
+ False Imprisonment,"is when the defendant intentionally confines the plaintiff to a bounded area, against the plaintiff’s will and the plaintiff knows of or is injured by the confinement"
10
+ Trespass to Land,an intentional action that causes a physical invasion of the plaintiff’s land
11
+ Trespass to chattels,is when the defendant intentionally inter-meddles with the chattel of the plaintiff
12
+ Conversion,is a trespass to chattels action where the damages ensued require a full market-value replacement of the chattel
13
+ Replevin,a remedy that arises to get back personal property one has been dispossessed of
14
+ Misrepresentation,"1) Intentional, material representation, 2) of past or present fact, 3) made with scienter or knowledge of the misrepresentation, which 4) the plaintiff unjustifiably relies upon"
15
+ Intentional interference with contracts,"1) Defendant know of specific economic advantage, 2) acted to interfere with that economic advantage with improper motives"
16
+ IIED,Defendant intentionally or recklessly engages in outrageous conduct that causes the plaintiff emotional distress
17
+ Invasion of Privacy,"1) defendant intentionally interferes with the plaintiff’s sphere of privacy, 2) does not require publication, 3) must be offensive to a reasonable person, 4) damages ensued for emotional distress with the potential for punitive damages"
18
+ Defenses to Negligence,"Comparative Negligence, Assumption of the risk, MBE is contributory negligence"
19
+ Indemnification,When a defendant can collect all the proceeds from another defendant
20
+ Standard of Care,"Business Invitee, Reasonably Prudent Person or Innkeeper"
21
+ COA,cause of action
22
+ NIED,emotional distress with physical damages due to defendant’s negligence
23
+ Defamation,"Defamatory communication (must be understood as truthful and reputation-harming), directed at the plaintiff, published to a third party."
24
+ "Invasion of Privacy,",Where a defendant intentionally interfere’s with the plaintiff’s sphere of privacy
25
+ ,
26
+ ,
27
+ ,
@@ -0,0 +1,22 @@
1
+ ,
2
+ ,
3
+ ,
4
+ ,
5
+ ,
6
+ ,
7
+ ,
8
+ ,
9
+ ,
10
+ ,
11
+ ,
12
+ ,
13
+ ,
14
+ ,
15
+ ,
16
+ ,
17
+ ,
18
+ ,
19
+ ,
20
+ ,
21
+ ,
22
+ ,
@@ -0,0 +1,22 @@
1
+ ,
2
+ ,
3
+ ,
4
+ ,
5
+ ,
6
+ ,
7
+ ,
8
+ ,
9
+ ,
10
+ ,
11
+ ,
12
+ ,
13
+ ,
14
+ ,
15
+ ,
16
+ ,
17
+ ,
18
+ ,
19
+ ,
20
+ ,
21
+ ,
22
+ ,
@@ -11,6 +11,7 @@ spec = Gem::Specification.new do |s|
11
11
  s.files = `git ls-files`.split("
12
12
  ")
13
13
  s.require_paths << 'lib'
14
+ s.require_paths << 'flashcards'
14
15
  s.has_rdoc = true
15
16
  s.rdoc_options << '--title' << 'hemlock' << '--main' << '-ri'
16
17
  s.bindir = 'bin'
@@ -4,8 +4,14 @@ require 'csv'
4
4
  module Hemlock
5
5
  class CSVtoFlashcards
6
6
 
7
+ def self.default_flashcard_directory
8
+ spec = Gem::Specification.find_by_name('hemlock')
9
+ gem_root = spec.gem_dir
10
+ folder = gem_root + '/flashcards'
11
+ end
12
+
7
13
  def self.create_flashcards(folder_name)
8
- folder_name = "~/Dropbox/bar_flashcards" if folder_name.empty?
14
+ folder_name = default_flashcard_directory if folder_name.empty?
9
15
  folder_name = self.replace_tildes(folder_name)
10
16
  flashcards = []
11
17
  Dir["#{folder_name}/*.csv"].each do |file|
@@ -1,3 +1,3 @@
1
1
  module Hemlock
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hemlock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Shook
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-28 00:00:00.000000000 Z
11
+ date: 2014-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard-rspec
@@ -66,6 +66,23 @@ files:
66
66
  - Guardfile
67
67
  - README.md
68
68
  - bin/hemlock
69
+ - flashcards/Agency-Table 1.csv
70
+ - flashcards/Civil Procedure-Table 1.csv
71
+ - flashcards/Commercial Paper-Table 1.csv
72
+ - flashcards/Community Property-Table 1.csv
73
+ - flashcards/Conflicts-Table 1.csv
74
+ - flashcards/Conlaw-Table 1.csv
75
+ - flashcards/Contracts-Table 1.csv
76
+ - flashcards/Corporations-Table 1.csv
77
+ - flashcards/Criminal Law-Table 1.csv
78
+ - flashcards/Evidence-Table 1.csv
79
+ - flashcards/Partnership-Table 1.csv
80
+ - flashcards/Professional Responsibility-Table 1.csv
81
+ - flashcards/Property-Table 1.csv
82
+ - flashcards/Secured Transactions-Table 1.csv
83
+ - flashcards/Torts-Table 1.csv
84
+ - flashcards/Trusts-Table 1.csv
85
+ - flashcards/Wills-Table 1.csv
69
86
  - hemlock.gemspec
70
87
  - hemlock.rdoc
71
88
  - lib/hemlock.rb
@@ -89,6 +106,7 @@ rdoc_options:
89
106
  require_paths:
90
107
  - lib
91
108
  - lib
109
+ - flashcards
92
110
  required_ruby_version: !ruby/object:Gem::Requirement
93
111
  requirements:
94
112
  - - ">="