- brew
- vscode
- git
- iterm2
- Zsh
- Oh My ZSH
- NVM
- Node.js
- Docker
- Eslint
  
    
      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 "./form"; | |
| import * as THREE from "three"; | |
| const image = new URL("britpop 2.webp", import.meta.url); | |
| const canvas = document.querySelector("canvas")!; | |
| const emailSignup = document.querySelector<HTMLElement>(".email-signup")!; | |
| let scene: THREE.Scene, | |
| camera: THREE.PerspectiveCamera, | 
  
    
      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
    
  
  
    
  | @baseUrl = http://localhost | |
| @postsApi = {{baseUrl}}:4000 | |
| @commentsApi = {{baseUrl}}:4001 | |
| @queryApi = {{baseUrl}}:4002 | |
| ### | |
| # 1. create a new post | |
| # @name post | |
| POST {{postsApi}}/posts HTTP/1.1 | |
| Content-Type: application/json | 
  
    
      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
    
  
  
    
  | /* eslint-disable @typescript-eslint/unified-signatures */ | |
| /* eslint-disable @typescript-eslint/naming-convention */ | |
| interface ZendeskWidgetCommander { | |
| /** @see https://developer.zendesk.com/embeddables/docs/widget/core#clear */ | |
| (type: 'webWidget', command: 'clear'): void; | |
| /** @see https://developer.zendesk.com/embeddables/docs/widget/core#close */ | |
| (type: 'webWidget', command: 'close'): void; | |
| /** @see https://developer.zendesk.com/embeddables/docs/widget/core#get-display */ | 
  
    
      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
    
  
  
    
  | printf eval >> ~/.zshrc; source ~/.zshrc | |
| evalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalevalev | 
  
    
      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 v8 from 'v8'; | |
| v8.writeHeapSnapshot(`${Date.now()}.heapsnapshot`); | 
  
    
      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
    
  
  
    
  | const fetchShipengineDirectLoginUrl = (sellerId) => { | |
| return new Promise((res, rej) => { | |
| jsonFetch('/shipengine-direct-login', { | |
| method: 'POST', | |
| body: { | |
| sellerId: `se-${sellerId}`, | |
| }, | |
| }).then((resp) => { | |
| console.log('DATA FROM EXPRESS SERVER: ', resp.body.redirect_url); | |
| res(resp.body.redirect_url); | 
  
    
      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) { | 
  [...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
    
  
  
    
  | # frozen_string_literal: true | |
| # Writing and Reading to files | |
| require 'fileutils' | |
| def add_gems | |
| gem 'devise' | |
| gem 'simple_form' | |
| end | 
NewerOlder
        