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
/** | |
* Enterキーで送信されないようにする。 | |
* 代わりにCmd(Ctrl)+Enterキーで送信する。 | |
* | |
* Author : daiiz | |
* License : MIT | |
* 最終動作確認: 2024/3/28 11:00 JST | |
*/ | |
javascript:(function () { |
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
# coding: utf-8 | |
from flask import Flask, request, jsonify | |
import urllib | |
app = Flask(__name__) | |
def getPhoto (received_json): | |
return { | |
"base64jpg": received_json['jpg'], | |
"jpg" : urllib.urlopen(received_json['jpg']).read(), |
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
var ltwh = {}; |
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 'json' | |
# Google Apps Script を「ウェブアプリケーションとして導入」した際に発行されたURL | |
appUrl = 'https://script.google.com/macros/...../exec' | |
num = '?num=' | |
uri = '?uri=' | |
mode = ARGV[0] | |
value = ARGV[1] |
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
var spreadsheet_uri = 'スプレッドシートのURL'; | |
function doGet (e) { | |
var res = ContentService.createTextOutput(); | |
res.setMimeType(ContentService.MimeType.JAVASCRIPT); | |
var json = {}; | |
if (e !== undefined && e.parameters !== undefined) { | |
var uri = (e.parameters.uri !== undefined) ? e.parameters.uri[0] : undefined; | |
var num = (e.parameters.num !== undefined) ? e.parameters.num[0] : undefined; | |
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
var fb = function (n) { | |
for (var i = 1; i < n; i++) { | |
if (i % 15 === 0 ) { | |
console.log("FizzBuzz"); | |
}else if (i % 5 === 0) { | |
console.log("Buzz"); | |
}else if (i % 3 === 0) { | |
console.log("Fizz"); | |
}else { | |
console.log(i); |
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
// 実行方法: | |
// $ node generate-plantuml.js [RDF形式のテキストファイルパス] > b.plantuml | |
// このあと、 | |
// $ GRAPHVIZ_DOT=$(which dot) plantuml -charset UTF-8 -tpng b.plantuml | |
// のように実行して b.png を得る | |
var fs = require('fs'); | |
var readline = require('readline'); |
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
#define maguro() printf("🍣\n"); |
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
<!doctype html> | |
<html> | |
<head> | |
<title>Sample</title> | |
<style> | |
#c0, #c1, #c2, #c3 { | |
height: 100px; | |
width: 100px; | |
background-color: #ccc; | |
} |
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/python | |
# -*- coding: utf-8 -*- | |
# Copyright (c) 2015 daiz | |
# Options: | |
# s: シークレットモードで起動 | |
# run: 開発中のアプリを読み込む | |
# Usage: $ chrome run /path/to/app/ |
NewerOlder