zsh
- oh-my-zsh - theme: agnoster
vim
- vim-sensible
- vim-bufferline
- vim-airline
- vim-airline-themes
- nerdtree
| (* General function that checks if an int list is sorted *) | |
| fun issorted [] = true | | |
| issorted [x] = true | | |
| issorted (x::y::t) = x <= y andalso issorted(y::t); | |
| (* Function that does the bubbling *) | |
| fun bubble [] = [] | | |
| bubble [x] = [x] | | |
| bubble (x::y::t) = if (x > y) then y::(bubble (x::t)) | |
| else x::(bubble (y::t)); |
| (* 100 doors *) | |
| fun listOf 0 _ = [] | |
| | listOf n e = e::(listOf (n-1) e); | |
| fun invert x = not x; | |
| fun flip _ _ [] = [] | |
| | flip 0 _ _ = [] | |
| | flip s n (h::t) = if (s=n) then (invert h)::(flip s 1 t) else h::(flip s (n+1) t); |
| (* Catalan Numbers *) | |
| open LargeInt; | |
| fun fact 0 = 1 | |
| | fact n = n * (fact (n-1)); | |
| fun catalan n = let val factofn = fact n | |
| in (fact (2 * n)) div (((n+1) * factofn) * (factofn)) end; | |
| fun firstn f 0 = [f 0] | |
| | firstn f n = (f n)::(firstn f (n-1)); |
| -- Creates table for holding customer information | |
| CREATE TABLE DBCustomer ( | |
| customerId INT PRIMARY KEY, | |
| mainAddress VARCHAR(100) NOT NULL, | |
| postCode VARCHAR(10) NOT NULL, | |
| phoneNumber VARCHAR(15) NOT NULL, | |
| email VARCHAR(50) NOT NULL | |
| ) ENGINE=INNODB; | |
| -- Customer Mandatory Or with Consumer or Business |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <deliveries> | |
| <customers> | |
| <customer id="1"> | |
| <mainAddress>238 Aliquam Rd</mainAddress> | |
| <postCode>K6L 8XT</postCode> | |
| <phoneNumber>07096527084</phoneNumber> | |
| <email>magna@vestibulum.edu</email> | |
| </customer> | |
| <customer id="2"> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
| <xs:element name="deliveries"> | |
| <xs:complexType> | |
| <xs:sequence> | |
| <xs:element name="customers"> | |
| <xs:complexType> | |
| <xs:sequence> | |
| <xs:element name="customer" maxOccurs="unbounded"> |
| Prefix Verb URI Pattern Controller#Action | |
| new_user_session GET /users/sign_in(.:format) devise/sessions#new | |
| user_session POST /users/sign_in(.:format) devise/sessions#create | |
| destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy | |
| user_password POST /users/password(.:format) devise/passwords#create | |
| new_user_password GET /users/password/new(.:format) devise/passwords#new | |
| edit_user_password GET /users/password/edit(.:format) devise/passwords#edit | |
| PATCH /users/password(.:format) devise/passwords#update | |
| PUT /users/password(.:format) devise/passwords#update | |
| cancel_user_registration GET |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env ruby | |
| require 'pathname' | |
| # path to your application root. | |
| APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) | |
| Dir.chdir APP_ROOT do | |
| test_env = 'test' | |
| puts "Application Environment: #{test_env}" |