Skip to content

Instantly share code, notes, and snippets.

View carl-parrish's full-sized avatar
💭
riceing

Carl Parrish carl-parrish

💭
riceing
View GitHub Profile
@carl-parrish
carl-parrish / sieveOfEratosthenes.md
Created December 22, 2017 14:58
Sieve of Eratosthenes
Array.range = (start, stop, step=1) => {
  let A = [start];
  while(start+step <= stop){
    A = [...A, start+=step];
  }
  return A;
}
@carl-parrish
carl-parrish / maxStockProfit.md
Created December 26, 2017 03:53
Max Stock Profit
function maxStockProfit(pricesArr) {

  const Price = {
    'buy': 0,
    'sell': 0,
    'change': true
  };
  
 

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

Copied from Computer Hope

Description

For each file, getfacl displays the file name, owner, the group, and the ACL (Access Control List). If a directory has a default ACL, getfacl also displays the default ACL. Non-directories cannot have default ACLs.

If getfacl is used on a file system that does not support ACLs, getfacl displays the access permissions defined by the traditional file mode permission bits.

The output format of getfacl is as follows:

1: # file: somedir/