Skip to content

Instantly share code, notes, and snippets.

View fossamagna's full-sized avatar
🏠
Working from home

MURAKAMI Masahiko fossamagna

🏠
Working from home
View GitHub Profile
@renegoretzka
renegoretzka / README.MD
Last active February 9, 2024 17:01
Example to invoke AppSync from AWS Lambda

How to access an AppSync Endpoint from a Lambda function

Setup in project

Run amplify add function and go thru the manual configuration and add access to other resources. Add API here. Run amplify update api if you have a project already setup and configure IAM as an additional auth mode.

Setup in schema.graphql

Add the authorization as following to your type definition:

@DominikPalo
DominikPalo / google.script.d.ts
Last active June 10, 2022 15:13 — forked from fjmorel/google.script.d.ts
Google Apps Script client-side Typescript definitions
// Google Apps Script methods available to scripts
declare namespace google {
/**
* Methods available to Google Apps Script
*/
namespace script {
interface IRun {
[serverSideFunction: string]: Function;
/**
@apstndb
apstndb / GAE_NODEJS_GVISOR_EVAL.md
Last active June 13, 2018 03:57
App Engine Standard Node.js Runtime uses gVisor.

It can be checked by the same method of Google Cloud Functions

deploy GAE/SE Node.js

$ gcloud app deploy --quiet app.yaml

check files

@fcingolani
fcingolani / index.html
Created August 9, 2012 02:16
How to render a full PDF using Mozilla's pdf.js
<html>
<body>
<!-- really dirty! this is just a test drive ;) -->
<script type="text/javascript" src="https://raw.github.com/mozilla/pdf.js/gh-pages/build/pdf.js"></script>
<script type="text/javascript">
function renderPDF(url, canvasContainer, options) {
var options = options || { scale: 1 };