This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title><%= title %></title> | |
| <link rel="stylesheet" href="/stylesheets/style.css" /> | |
| <script src="https://apis.google.com/js/platform.js" async defer></script> | |
| <meta name="google-signin-client_id" content="<%= clientIdUrl %>" /> | |
| <script> | |
| // called by google client | |
| function onSignIn(googleUser) { |
This file contains hidden or 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
| version: '3' | |
| services: | |
| app: | |
| build: | |
| context: . | |
| dockerfile: ./node/Dockerfile | |
| container_name: node_app | |
| ports: | |
| - '3000:3000' |
This file contains hidden or 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
| const AWS = require('aws-sdk'); | |
| const config = require('config'); | |
| const p = console.log; | |
| AWS.config.logger = console; | |
| AWS.config.update({ | |
| sslEnabled: config.aws.sslEnabled, | |
| accessKeyId: config.aws.accessKeyId, | |
| secretAccessKey: config.aws.secretAccessKey, | |
| region: config.aws.region, |
This file contains hidden or 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
| <?xml version="1.0" encoding="utf-8"?> | |
| <set xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <scale | |
| android:fromXScale="1.0" | |
| android:toXScale="0.6" | |
| android:fromYScale="1.0" | |
| android:toYScale="0.6" | |
| android:pivotX="50%" | |
| android:pivotY="50%" | |
| android:duration="300" |
This file contains hidden or 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
| <?xml version="1.0" encoding="utf-8"?> | |
| <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent"> | |
| <LinearLayout android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:orientation="vertical" | |
| android:gravity="center" | |
| xmlns:tools="http://schemas.android.com/tools" |
This file contains hidden or 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
| ... | |
| buildTypes { | |
| release { | |
| debuggable false | |
| minifyEnabled true | |
| proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | |
| zipAlignEnabled true | |
| } | |
| staging { |
This file contains hidden or 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
| apply plugin: 'com.android.application' | |
| apply plugin: 'kotlin-android' | |
| apply plugin: 'kotlin-android-extensions' | |
| android { | |
| compileSdkVersion rootProject.ext.compileSdkVersion | |
| defaultConfig { | |
| applicationId "com.example.koheiando.twittervolleysample" | |
| minSdkVersion rootProject.ext.minSdkVersion | |
| targetSdkVersion rootProject.ext.targetSdkVersion |
This file contains hidden or 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
| // Top-level build file where you can add configuration options common to all sub-projects/modules. | |
| buildscript { | |
| ext.kotlin_version = '1.3.11' | |
| repositories { | |
| google() | |
| jcenter() | |
| } | |
| dependencies { | |
| classpath 'com.android.tools.build:gradle:3.3.0' | |
| classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" |
This file contains hidden or 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
| 'use strict'; | |
| var p = console.log; | |
| const EQUATOR_KM = 6378; | |
| var circleArea = radius => { | |
| return Math.pow(radius, 2) * Math.PI; | |
| }; |