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 ArgumentType = require('../../extension-support/argument-type'); | |
const BlockType = require('../../extension-support/block-type'); | |
const Cast = require('../../util/cast'); | |
const log = require('../../util/log'); | |
const fetch = require('node-fetch'); | |
const { HttpLink } = require('apollo-link-http'); | |
const { ApolloClient } = require("apollo-client"); | |
const { InMemoryCache } = require("apollo-cache-inmemory"); | |
const gql = require("graphql-tag"); |
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
blocks: [ | |
{ | |
opcode: 'writeLog', | |
blockType: BlockType.COMMAND, | |
text: 'log [TEXT]', | |
arguments: { | |
TEXT: { | |
type: ArgumentType.STRING, | |
defaultValue: "hello", | |
menu: "languages" |
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
var SomeBlocks = function (runtimeProxy) { | |
/** | |
* A proxy to communicate with the Scratch 3.0 runtime across a worker boundary. | |
* @type {Runtime} | |
*/ | |
this.runtime = runtimeProxy; | |
}; | |
/** | |
* @return {object} This extension's metadata. |
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
class Test { | |
constructor() {} | |
getInfo() { // 拡張機能の各種情報 | |
return { | |
id: 'test', | |
name: 'Test', // 拡張機能の名前 | |
blocks: [ // 各ブロックの定義 | |
{ |
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
import {makeRemoteExecutableSchema, mergeSchemas, introspectSchema} from 'graphql-tools'; | |
import { callbackify } from 'util'; | |
const fetch = require('node-fetch'); | |
const { HttpLink } = require('apollo-link-http'); | |
const { ApolloServer, gql } = require('apollo-server-lambda'); | |
const createServer = async () => { | |
const createRemoteSchema = async (uri) => { | |
const link = new HttpLink({uri, fetch}); | |
return makeRemoteExecutableSchema({ |
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
{"schema": {"fields":[{"name":"index","type":"integer"},{"name":"code","type":"integer"},{"name":"prefectureKanji","type":"string"},{"name":"cityKanji","type":"string"},{"name":"prefectureKana","type":"string"},{"name":"cityKana","type":"string"}],"primaryKey":["index"],"pandas_version":"0.20.0"}, "data": [{"index":0,"code":10006,"prefectureKanji":"\u5317\u6d77\u9053","cityKanji":null,"prefectureKana":"\uff8e\uff6f\uff76\uff72\uff84\uff9e\uff73","cityKana":null},{"index":1,"code":11002,"prefectureKanji":"\u5317\u6d77\u9053","cityKanji":"\u672d\u5e4c\u5e02","prefectureKana":"\uff8e\uff6f\uff76\uff72\uff84\uff9e\uff73","cityKana":"\uff7b\uff6f\uff8e\uff9f\uff9b\uff7c"},{"index":2,"code":12025,"prefectureKanji":"\u5317\u6d77\u9053","cityKanji":"\u51fd\u9928\u5e02","prefectureKana":"\uff8e\uff6f\uff76\uff72\uff84\uff9e\uff73","cityKana":"\uff8a\uff7a\uff80\uff9e\uff83\uff7c"},{"index":3,"code":12033,"prefectureKanji":"\u5317\u6d77\u9053","cityKanji":"\u5c0f\u6a3d\u5e02","prefectureKana":"\uff8e\uff6f\uff76\uff72\ |
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
{"schema": {"fields":[{"name":"index","type":"integer"},{"name":"City (Special Ward)","type":"string"},{"name":"Japanese","type":"string"},{"name":"Prefecture","type":"string"},{"name":"Population","type":"integer"},{"name":"Area","type":"number"},{"name":"Density","type":"number"},{"name":"Founded","type":"string"},{"name":"Country","type":"string"}],"primaryKey":["index"],"pandas_version":"0.20.0"}, "data": [{"index":0,"City (Special Ward)":"Nagoya","Japanese":"\u540d\u53e4\u5c4b\u5e02","Prefecture":"Aichi","Population":2283289,"Area":326.45,"Density":6860.0,"Founded":"1889-10-01","Country":"Japan"},{"index":1,"City (Special Ward)":"Toyohashi","Japanese":"\u8c4a\u6a4b\u5e02","Prefecture":"Aichi","Population":377045,"Area":261.35,"Density":1443.0,"Founded":"1906-08-01","Country":"Japan"},{"index":2,"City (Special Ward)":"Okazaki","Japanese":"\u5ca1\u5d0e\u5e02","Prefecture":"Aichi","Population":371380,"Area":387.24,"Density":959.0,"Founded":"1916-07-01","Country":"Japan"},{"index":3,"City (Special Ward)":"Ic |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
global: │~ | |
configname: post │~ | |
│~ | |
sub1: │~ | |
exports: │~ | |
data: │~ | |
dbname: testsample │~ | |
env: │~ | |
data1: new |
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
<div id="editor" style="height: 600px"></div> | |
<script> | |
$.getScript('https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.0/ace.js', | |
()=>{ | |
var editor = ace.edit("editor"); | |
editor.setTheme("ace/theme/monokai"); | |
editor.getSession().setMode("ace/mode/javascript"); | |
}); | |
this.scope.newtoast = function() { | |
return ace.edit('editor').getSession().getValue(); |