I hereby claim:
- I am leocardoso94 on github.
- I am leocardoso94 (https://keybase.io/leocardoso94) on keybase.
- I have a public key ASCv76sXUcQ4dikaWB-_OpXSu45ss4kAzC3YZh7WxQGrdQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import 'package:apple_sign_in/apple_sign_in.dart'; | |
import 'package:firebase_auth/firebase_auth.dart'; | |
import 'package:flutter/material.dart'; | |
class LoginScreen extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return FutureBuilder( | |
future: AppleSignIn.isAvailable(), | |
builder: (context, snapshot) { |
import 'package:apple_sign_in/apple_sign_in.dart'; | |
import 'package:firebase_auth/firebase_auth.dart'; | |
import 'package:flutter/services.dart'; | |
class AuthService { | |
final FirebaseAuth _firebaseAuth = FirebaseAuth.instance; | |
Future<FirebaseUser> signInWithApple() async { | |
final result = await AppleSignIn.performRequests([ | |
AppleIdRequest(requestedScopes: [Scope.fullName, Scope.email]) |
#!/bin/bash | |
for f in $(egrep -o -R "defn?-? [^ ]*" * --include '*.clj*' | cut -d \ -f 2 | sort | uniq); do | |
echo $f $(grep -R --include '*.clj*' -- "$f" * | wc -l); | |
done | grep " 1$" |
(ns scroll-reveal | |
(:require | |
["scrollreveal" :as scroll-reveal])) | |
(defonce sr (scroll-reveal)) | |
(defn reveal | |
[element options] | |
(.reveal sr element (clj->js options))) |
var _extends = | |
Object.assign || | |
function (target) { | |
for (var i = 1; i < arguments.length; i++) { | |
var source = arguments[i]; | |
for (var key in source) { | |
if (Object.prototype.hasOwnProperty.call(source, key)) { | |
target[key] = source[key]; | |
} | |
} |
const consumirAPI = async (graphqlEndpoint, query, variables = {}) => { | |
const response = await fetch(graphqlEndpoint, { | |
method: 'POST', | |
headers: { 'Content-Type': 'application/json' }, | |
body: JSON.stringify({ query, variables }) | |
}); | |
return response.json(); | |
} |
const textInput = document.getElementById('textInput'); | |
const chat = document.getElementById('chat'); | |
let context = {}; | |
const templateChatMessage = (message, from) => ` | |
<div class="from-${from}"> | |
<div class="message-inner"> | |
<p>${message}</p> | |
</div> |
* { | |
box-sizing: border-box; | |
} | |
body { | |
font-family: Helvetica, Arial, sans-serif; | |
margin: 0; | |
padding: 0; | |
} |
<html> | |
<head> | |
<title>Simple Chat - Watson</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<link rel="stylesheet" href="./style.css"> | |
</head> | |
<body> |