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
    
  
  
    
  | class Dice { | |
| constructor() { | |
| this.recentlyRolledValue = 1; | |
| this.diceMaxValue = 6; | |
| } | |
| roll() { | |
| let roll = Math.ceil(Math.random() * this.diceMaxValue); | |
| this.recentlyRolledValue = roll; | 
  
    
      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
    
  
  
    
  | import { info } from "@utils/logger/logger"; | |
| import { S3 } from "aws-sdk"; | |
| import { | |
| CopyObjectOutput, | |
| CopyObjectRequest, | |
| DeleteObjectOutput, | |
| DeleteObjectRequest, | |
| GetObjectOutput, | |
| GetObjectRequest, | |
| ListObjectsV2Output, | 
  
    
      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
    
  
  
    
  | declare global { | |
| interface Array<T> { | |
| limit: (limit: number) => Array<T>; | |
| full: () => Array<T>; | |
| isFull: () => boolean; | |
| } | |
| } | 
  
    
      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
    
  
  
    
  | Array.prototype.limit = function (limit) { | |
| this.limit = limit; | |
| return this; | |
| } | |
| Array.prototype.full = function() { | |
| if (!this.limit) { | |
| this.limit = 1000000; | |
| } | 
  
    
      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
    
  
  
    
  | import { DynamoDB } from "aws-sdk" | |
| type DynamoDocType = DynamoDB.DocumentClient.DocumentClientOptions | DynamoDB.Types.ClientConfiguration | |
| /** | |
| * Promised enabled DocumentClient | |
| * @class DocumentClient | |
| */ | |
| export class DocumentClient { | |
| private documentInstance: DynamoDB.DocumentClient | 
  
    
      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 noop(...params: any[]) { } | |
| export class BetterSwitch { | |
| private cases: any = {}; | |
| constructor(defaultCaseRoutine: any = noop) { | |
| this.cases.default = defaultCaseRoutine | |
| } | |
| /** | 
  
    
      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
    
  
  
    
  | /// NOTE: This snippet requires babel preset stage-2 or greater. | |
| class BetterSwitch { | |
| cases = {}; | |
| constructor(defaultCaseRoutine = undefined) { | |
| if (defaultCaseRoutine) { | |
| this.cases.default = defaultCaseRoutine | |
| } | |
| } | |
      This file has been truncated, but you can view the full file.
    
    
  
    
      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
    
  
  
    
  | [ | |
| { | |
| "Code": "010000000", | |
| "Name": "REGION I (ILOCOS REGION)", | |
| "Inter-Level": "Reg", | |
| "City Class": "", | |
| "Income Classification": "", | |
| "Urban / Rural (based on 2010 CPH)": "", | |
| "POPULATION (2015 POPCEN)": "5,026,128" | |
| }, | 
  
    
      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
    
  
  
    
  | <?php | |
| require('vendor/autoload.php'); | |
| require('include/header.php'); | |
| use Capstone\Model\Item; | |
| $viewPageMode = 0; /* 0 = summary mode, 1 = stock card mode */ | |
| $withdrawSearch = null; | |
| /** | 
  
    
      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
    
  
  
    
  | from __future__ import print_function | |
| import numpy as np | |
| # create an empty matrix | |
| # @param iteration: length of an array | |
| # @return matrix | |
| def generateEmptyMatrix(iteration): | |
| print("matrix: ") | |
| matrix = np.array([[0 for x in range(iteration)] for y in range(iteration)]) | |
NewerOlder