This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.UI; | |
using UnityEngine.SocialPlatforms; | |
using GooglePlayGames; | |
using GooglePlayGames.BasicApi; | |
public class GPGSManager : MonoBehaviour | |
{ | |
[SerializeField] | |
Text txtSigninStatus; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
user { | |
id | |
name | |
friendsConnection( # <- Connection Type | |
first: 2 # <- non-negative integer | |
after: "Y3Vyc29yMQ==" # <- cursor type | |
) { | |
edges { # <- Connection Types's fields. (type: LIST) | |
node { # <- Edge Type's fields. (type: OBJECT -> Scalar, Enum, Object, Interface, Union, or a Non‐Null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// amplify/backend/function/{amplify's auth Resource name}PostConfirmation/src/add-to-group.js | |
/* eslint-disable-line */ const aws = require('aws-sdk'); | |
exports.handler = async (event, context, callback) => { | |
const cognitoidentityserviceprovider = new aws.CognitoIdentityServiceProvider({ apiVersion: '2016-04-18' }); | |
const GroupName = event.request.clientMetadata.GroupName; | |
const addUserParams = { | |
GroupName, | |
UserPoolId: event.userPoolId, | |
Username: event.userName, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// amplify/backend/function/{amplify's auth Resource name}PreSignup/src/custom.js | |
exports.handler = async (event, context, callback) => { | |
console.log('pre signup event', JSON.stringify(event, null, 2)) | |
event.response.autoConfirmUser = true; | |
event.response.autoVerifyEmail = true; | |
callback(null, event); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// amplify/backend/function/kakaologin/kakaologin-cloudformation-template.json | |
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Lambda resource stack creation using Amplify CLI", | |
... | |
"Resources": { | |
"lambdaexecutionpolicy": { | |
"DependsOn": [ | |
"LambdaExecutionRole" | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// REST API: amplify/backend/function/kakaologin/src/app.js | |
var express = require('express'); | |
var bodyParser = require('body-parser'); | |
var awsServerlessExpressMiddleware = require('aws-serverless-express/middleware'); | |
const axios = require('axios'); | |
const AWS = require('aws-sdk'); | |
const cognitoidentityserviceprovider = new AWS.CognitoIdentityServiceProvider({ | |
apiVersion: '2016-04-18', | |
region: 'ap-northeast-2', | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- public/index.html --> | |
<script src="//developers.kakao.com/sdk/js/kakao.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/App.js | |
// 카카오 SDK initialize하기 | |
import React, { useEffect } from 'react'; | |
function App() { | |
useEffect(() => { | |
if (window.Kakao) { | |
const kakaoJSKey = '/* kakaoJSKey */'; | |
window.Kakao.init(kakaoJSKey); | |
console.log('kakao sdk initialized!!'); | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @name meetup_attendee_crawling_scripts_in_browser | |
* @author geoseong (parkopp@gmail.com) | |
* @description | |
* 1. turn on chrome | |
* 2. go to meetup's attendees page | |
* 3. turn on chrome devtools | |
* 4. paste this script and enter | |
*/ | |
var attendlistSelector = `div.chunk`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Constants from 'expo-constants'; | |
// all the imports of react-native | |
function Screen(props: Props): React.ReactElement { | |
// definitions | |
console.log('----extra value', Constants.manifest.extra); | |
// return <>...</> | |
} |
NewerOlder