- Your NodeJS app (express, fastify, etc.) is placed at
/opt/mca/www/mca-backend/app
path.
-
Install concurrently:
npm install -g concurrently
-
Create a file
~/Library/LaunchAgents/mca.backend.plist
Download archive from "https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html"
Unpack it to: /opt/aws/dynamodb
Create shell script: /opt/aws/dynamodb/dynamodb_local.sh
.
#!/bin/bash
RootDirPath=$(cd "$(dirname "$0")"; pwd)
cd "$RootDirPath"
// NOTE: Choose "viewer request" for event trigger when you associate this function with CloudFront distribution. | |
/** See also: | |
- JS Specs: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/functions-javascript-runtime-features.html | |
- The request Specs: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/functions-event-structure.html | |
*/ | |
function makeRedirectResponse(location) { | |
var response = { | |
statusCode: 301, |
let data = "HelloZip!".data(using: .utf8)! | |
let compressedData = (data as NSData).compressed(using: .zlib) as Data | |
let compressedDataAsBase64EncodedString = compressedData.base64EncodedString() | |
print(compressedDataAsBase64EncodedString) | |
// Prints: 80jNycmPyixQBAA= |
Say I have NSTextView
and custom NSRulerView
:
[![enter image description here][1]][1]
Now I want every wrapped line to indent say on 3 spaces (like on image below).
[![enter image description here][2]][2]
How to achieve it without modifying text storage attributes (i.e. Paragraph style)? Should I use NSLayoutManager
? Thanks!
//: [Previous](@previous) | |
import PlaygroundSupport | |
import Cocoa | |
import CoreData | |
PlaygroundPage.current.needsIndefiniteExecution = true | |
extension NSManagedObject { |