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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
import re | |
import pylab | |
import math | |
import copy | |
import glob |
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 System.Collections; | |
using UnityEngine.UI; | |
public class PlayerScript : MonoBehaviour { | |
// ここから | |
public float speed = 5.0f; | |
public float slideSpeed = 2.0f; |
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
8 06, 2017 12:50:16 午前 org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry loadTestEngines | |
情報: Discovered TestEngines with IDs: [junit-jupiter] | |
Exception in thread "main" java.lang.NoSuchMethodError: org.junit.platform.commons.util.AnnotationUtils.findAnnotatedMethods(Ljava/lang/Class;Ljava/lang/Class;Lorg/junit/platform/commons/util/ReflectionUtils$MethodSortOrder;)Ljava/util/List; | |
at org.junit.jupiter.engine.descriptor.LifecycleMethodUtils.findBeforeAllMethods(LifecycleMethodUtils.java:41) | |
at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.<init>(ClassTestDescriptor.java:88) | |
at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.<init>(ClassTestDescriptor.java:77) | |
at org.junit.jupiter.engine.discovery.TestContainerResolver.resolveClass(TestContainerResolver.java:98) | |
at org.junit.jupiter.engine.discovery.TestContainerResolver.resolveElement(TestContainerResolver.java:47) | |
at org.junit.jupiter.engine.discovery.JavaElementsResolver.tryToResolveWithResolver(JavaElementsResolver.jav |
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 sys | |
import MeCab | |
def judge_five_seven_five(word): | |
m = MeCab.Tagger ("-Ochasen") | |
print(m.parse (word)) | |
check = [5, 7, 5] # 5, 7, 5 | |
check_index = 0 | |
word_cnt = 0 | |
node = m.parseToNode(word) |
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
require 'net/http' | |
require 'json' | |
# NOTE: You must use the same location in your REST call as you used to obtain your subscription keys. | |
# For example, if you obtained your subscription keys from westus, replace "westcentralus" in the | |
# URL below with "westus". | |
uri = URI('https://westcentralus.api.cognitive.microsoft.com/vision/v1.0/analyze') | |
uri.query = URI.encode_www_form({ | |
# Request parameters | |
'visualFeatures' => 'Faces', |
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
def image_upload_local(img) | |
if img | |
# contents = Contribution.last | |
# id = contents.id | |
logger.info img | |
ext = File.extname(img[:filename]) | |
# img_name = "#{id}-bbs#{ext}" | |
img_name = "img#{ext}" |
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
class Product | |
def use | |
raise NotImplementedError | |
end | |
end | |
class Factory | |
def create(owner) | |
p = create_product(owner) | |
register_product(p) |
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.create(name: 'しげる') | |
Recipe.create(name: 'カレー', url: 'https://_cookpad_の_url') | |
RecipeMaterial.create(recipe_id: 1, material_id: 1) | |
Material.create(name: 'じゃがいも', amount: 5) |
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
{"apiFields":[{"idValue":"z-2OeHTwbJ","fieldId":"userId","name":"LINE ユーザーID","kind":"text","required":true,"isUnique":true},{"fieldId":"title","name":"タイトル","kind":"text","isUnique":false},{"fieldId":"content","name":"本文","kind":"textArea"}],"customFields":[]} |
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
## イベント情報 | |
[LINE API開発者向けカンファレンス「REV UP 2022」](https://linedevelopercommunity.connpass.com/event/260460/) | |
[LINE API 総集編。ReactとmicroCMSで作るLINEミニアプリハンズオン](https://revup.jp/session/zo58ff17id) | |
## 事前準備 | |
- node.js インストールをおねがいします。 | |
- [Download | Node.js](https://nodejs.org/en/download/) |
OlderNewer