Skip to content

Instantly share code, notes, and snippets.

View benjaminjackman's full-sized avatar

Ben Jackman benjaminjackman

View GitHub Profile
<html>
<body>
Hello world
</body>
</html>
@benjaminjackman
benjaminjackman / README.md
Last active September 7, 2018 20:11
Workaround for typescript#25023 (--watch mode hangs tsc)

This work around uses chokidar (which must be installed & on the path e.g. npm install -g chokidar)

I had to write a custom bash script tsc-noemit-tombstoned to give the problem matcher a way to detect when compilation starts and ends, that will need to be copied to a local file and be in your path as well

tldr

  1. Install chokidar npm install -g chokidar
  2. Download tsc-noemit-tombstoned, put it into your path and make it executable
  3. Copy tasks.json into your project's existing vscode tasks.json and modify the args to match where your source files are located (mine are typically all under a ./src folder in my projects)
Had a great conversation with AWS support and found my answer for those interested:
Thanks for chatting with me today. As I understand, you have a cross-account scenario in which your intended grantee is not able to access objects stored in the source bucket. After further consideration, I am inclined to suggest option #3 below to meet your requirement with the least administrative overhead.
You have the following setup (keeping generic to comply with cross-account support limitations):
Account A - Uploader account (AWS Cloudtrail Service Account) Account B - Bucket owner Account C - Destination Account/IAM user
The reason Account C can't access the object in this scenario, even though the bucket owner has full control, has to do with the following default behaviors in S3:
S3 sets the owner ID of the object to the account that performed the PUT request. By default, the only ACL set on the object is "full-control" for the owner (uploader). If the canned ACL 'bucket-owner-full-control' is added, the bucket own
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<canvas id="canvas" width="640" height="480"/>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<canvas id="canvas" width="640" height="480"/>
<script id="jsbin-javascript">
<!doctype html>
<html>
<head>
<title>Hello</title>
</head>
<body>
HELLO WORLD
</body>
</html>
import org.scalajs.dom
import org.scalajs.dom.raw.Blob
import org.scalajs.dom.raw.BlobPropertyBag
import org.scalajs.dom.raw.Worker
import scala.scalajs.js
import scala.scalajs.js.annotation.JSExport
@JSExport("AlphaWorkerMain")
@benjaminjackman
benjaminjackman / README
Last active August 11, 2024 13:24
Instructions on how to open Unity3d scripts in Rider on Ubuntu
#Simple instructions for using Unity3d with project rider on Ubuntu
#1. Download and install latest .deb for Unity3d from:
http://forum.unity3d.com/threads/unity-on-linux-release-notes-and-known-issues.350256/
#2. Download and install the Project Rider EAP (not sure if publicly available but you
can sign up for early access here: https://www.jetbrains.com/rider/
#3. Open the Unity3d (.deb installs the executable at /opt/Unity/Editor/Unity )
object | {
implicit def t1ToU2[T](x: T): T | Nothing = x.asInstanceOf[T | Nothing]
implicit def t2ToU2[T](x: T): Nothing | T = x.asInstanceOf[Nothing | T]
implicit def t1ToU3[T](x: T): T | Nothing | Nothing = x.asInstanceOf[T | Nothing | Nothing]
implicit def t2ToU3[T](x: T): Nothing | T | Nothing = x.asInstanceOf[Nothing | T | Nothing]
implicit def t1ToU4[T](x: T): T | Nothing | Nothing | Nothing = x.asInstanceOf[T | Nothing | Nothing | Nothing]
implicit def t2ToU4[T](x: T): Nothing | T | Nothing | Nothing = x.asInstanceOf[Nothing | T | Nothing | Nothing]
}
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="scala" name="Scala">
<configuration>
<option name="basePackage" value="cgta.oscala" />
<option name="compilerLibraryLevel" value="Project" />
<option name="compilerLibraryName" value="SBT: scala:2.11.4" />
<option name="compilerOptions" value="-feature -language:implicitConversions -language:higherKinds -language:existentials -language:postfixOps -Xfatal-warnings" />
<option name="deprecationWarnings" value="true" />