Skip to content

Instantly share code, notes, and snippets.

View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hello Bulma!</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.1/css/bulma.min.css">
</head>
<body>
<section class="section">
View predict.js
const CLASSES = {0:'Apple', 1:'MikanOrange'}
//-----------------------
// start button event
//-----------------------
$("#start-button").click(function(){
loadModel() ;
startWebcam();
});
View main.dart
import 'package:flutter/material.dart';
import 'package:cloud_firestore/cloud_firestore.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
View flutter-web_firestore_list.main.dart
import 'package:flutter/material.dart';
import 'package:firebase/firebase.dart';
import 'package:firebase/firestore.dart' as fs;
// initializeApp()の中身は、ご自身の設定に書き換えてください。
void main() {
initializeApp(
apiKey: "YourApiKey",
authDomain: "YourAuthDomain",
databaseURL: "YourDatabaseUrl",
View flutter-web_firestore_list
import 'package:flutter/material.dart';
import 'package:firebase/firebase.dart';
import 'package:firebase/firestore.dart' as fs;
void main() {
initializeApp(
apiKey: "YourApiKey",
authDomain: "YourAuthDomain",
databaseURL: "YourDatabaseUrl",
projectId: "YourProjectId",
View 190929_elisa_001.Rmd
---
title: "R Notebook"
output: html_notebook
---
This is an [R Markdown](http://rmarkdown.rstudio.com) Notebook. When you execute code within the notebook, the results appear beneath the code.
Try executing this chunk by clicking the *Run* button within the chunk or by placing your cursor inside it and pressing *Ctrl+Shift+Enter*.
```{r}
View app-home.tsx
import { Component, State, h } from '@stencil/core';
import { Holdings } from "../../services/holdings";
// interfaceで連想配列Holdingの中身の型の定義を行う
// value? は値が存在しなくてもよいという意味?
interface Holding {
crypto: string;
currency: string;
amount: number;
value?: number;
View app-add-holding.tsx
import { Component, h } from "@stencil/core";
import { Holdings } from "../../services/holdings";
@Component({
tag: "app-add-holding",
styleUrl: "app-add-holding.css"
})
export class AppAddHolding {
private holdingsService: Holdings = new Holdings();
private cryptoCode: string;
View js_class.js
// Animalクラスの定義
class Animal {
// コンストラクタの定義
constructor(name) {
this.name = name;
}
// speakメソッドの定義
speak() {
console.log(this.name + "「鳴き声」");
}
View src_components_app-detail_app-detail.tsx
import { Component, State, Prop, h } from "@stencil/core";
import { Todo } from "../../interfaces/todo";
import { TodosService } from "../../services/todos";
@Component({
tag: "app-detail",
styleUrl: "app-detail.css"
})
export class AppDetail {
public navCtrl = document.querySelector("ion-router");