- Domain
- User
- ItemSaleReview
- Part
- PartCategory
- Cart
- Order
- Features
- authentication
answer = 1 + 4
puts "This is some testing text"answer = 1 + 4
puts "This is some testing text"
cd repo
# add the first remote
heroku git:remote -a app-one-name
#set git remote heroku to https://git.heroku.com/app-one-name.git
#next, rename the remote to something else
git remote rename heroku heroku-app-one
This file contains hidden or 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
| function splitLow4Bits(num) { | |
| return (num & parseInt('00001111', 2)) | |
| } | |
| function splitHigh4Bits(num) { | |
| return (num & parseInt('11110000', 2)) >> 4 | |
| } | |
| // All this is no longer needed because of | |
| // the magic of ArrayBuffer and TypedArrays |
This file contains hidden or 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
| # frozen_string_literal: true | |
| # Writing and Reading to files | |
| require 'fileutils' | |
| def add_gems | |
| gem 'devise' | |
| gem 'simple_form' | |
| end |
[...Array(n)].map((_,i) => i+1).map(x => { ... })is similar to
for(let i = 1; i <= n; i++) { ... }
This file contains hidden or 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
| interface ObjectConstructor { | |
| keys<T>(o: T): ObjectKeys<T>; | |
| } | |
| function reduce<TElement, TResult>( | |
| array: TElement[], | |
| reducer: (result: TResult, el: TElement) => TResult, | |
| initialResult: TResult | |
| ): TResult { | |
| let result = initialResult; | |
| for (const element of array) { |