Skip to content

Instantly share code, notes, and snippets.

View lucacasonato's full-sized avatar
🖥️
Programming

Luca Casonato lucacasonato

🖥️
Programming
View GitHub Profile
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp(functions.config().firebase);
// On sign up.
exports.processSignUp = functions.auth.user().onCreate(event => {
const user = event.data; // The Firebase user.
// Check if user meets role criteria.
if (user.email &&
@lucacasonato
lucacasonato / response_for_floatplaneapi_video_related.json
Created January 27, 2019 15:15
floatplaneapi.com/v1/video/related?videoGUID=8dYZDar1Xs
@lucacasonato
lucacasonato / response_for_floatplaneapi_video_comments.json
Created January 27, 2019 15:24
floatplaneapi.com/v1/video/comments?videoGUID=8dYZDar1Xs
{
"comments": [{
"id": "5c4081ab2d2ab7110393de93",
"user": "203a36cf38c863d5a9a9a9f0",
"video": "8dYZDar1Xs",
"text": "Good video!",
"replying": null,
"postDate": "2019-01-26T22:39:06.413Z",
"editDate": "2019-01-26T22:39:06.413Z",
"replies": [],

Keybase proof

I hereby claim:

  • I am creativeguy2013 on github.
  • I am lucacasonato (https://keybase.io/lucacasonato) on keybase.
  • I have a public key whose fingerprint is 9E56 9ED0 0724 4503 D97B 05D8 6A72 DF60 FBAE 5977

To claim this, I am signing this object:

lucacasonato
luca-rand
Compile file:///home/lucacasonato/Downloads/test.ts
error TS2345: Argument of type '1' is not assignable to parameter of type 'string'.
► file:///home/lucacasonato/Downloads/test2.ts:5:7
5 hello(1);
@lucacasonato
lucacasonato / app.js
Created March 30, 2020 00:06
deno --importmap=importmap.json app.js
import * as voca from "voca";
console.log(voca);
@lucacasonato
lucacasonato / code.js
Created April 1, 2020 19:38
Issue with large amounts of piped data in Deno.run
const proc = Deno.run({
cmd: ["deno", "doc", "lib.deno.d.ts", "--json", "--reload"],
stdout: "piped",
stderr: "piped"
});
const status = await proc.status();
await Deno.copy(Deno.stdout, proc.stdout)
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
/// <reference no-default-lib="true" />
/// <reference lib="esnext" />
export namespace Deno {
/** The current process id of the runtime. */
export let pid: number;
/** Reflects the NO_COLOR environment variable.