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 { index, baseURL, siteKey, secretKey } from './index'; | |
import * as functions from 'firebase-functions' | |
export const userOnUpdateForAddSearch = functions.firestore | |
.document('users/{userId}') | |
.onUpdate(async (event, context) => { | |
const axios = require('axios'); | |
// const oldData = event.before.data(); | |
const newData = event.after.data(); | |
const documentId = event.after.id; |
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 { index, baseURL, siteKey, secretKey } from './index'; | |
import * as functions from 'firebase-functions' | |
export const userOnDeleteForAddSearch = functions.firestore | |
.document('users/{userId}') | |
.onDelete(async (event, context) => { | |
const axios = require('axios'); | |
const documentId = event.id; | |
// needless |
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
export const userOnCreateForAddSearch = functions.firestore | |
.document('users/{userId}') | |
.onCreate(async (snap, context) => { | |
const axios = require('axios'); | |
const data = snap.data(); | |
const objectID = snap.id; | |
/*const args = { | |
data: { objectID: objectID, ...data }, | |
headers: { "Content-Type": "application/json" } |
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 'package:flutter/material.dart'; | |
void main() => runApp(new MyApp()); | |
class MyApp extends StatelessWidget { | |
void test() { | |
RegExp regExp = RegExp( | |
r'(?:(?:\r\n)?[ \t])*(?:(?:(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t])*))*@(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*))*|(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t])*)*\<(?:(?:\r\n)?[ \t])*(?:@(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(? |
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
/** | |
* SVGで色を無理やり付ける(IE, Edge). | |
* | |
* @param {*} name | |
* @param {*} elem | |
* @param {*} fillColor | |
* @returns {void} | |
*/ | |
export const paintSVG = (name: string, elem: any, fillColor: any): void => { | |
let a = '99'; |
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
#!/bin/bash | |
univ="東京医科歯科大学" | |
if [[ ${univ} =~ ^東京(医科)?(歯科)?大学$ ]]; then | |
all=${BASH_REMATCH[0]} | |
echo part1. ${all} | |
fi | |
univ="東京医科大学" |
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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
body,div,table,thead,tbody,tfoot,tr,th,td,p { font-size:small; padding:0 } | |
body,div,table,thead,tbody,tfoot,tr,th,td,p { | |
line-height: 1; | |
/*font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', Meiryo, メイリオ, Osaka, 'MS PGothic', arial, helvetica, sans-serif;*/ | |
} |
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 React from 'react' | |
import { render } from 'react-dom' | |
import { hashHistory, Router, Route, Link, browserHistory } from 'react-router' | |
var IndexRoute = Router.IndexRoute; | |
var Index = React.createClass({ | |
render: function () { | |
return ( | |
<div> |
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
/// <summary> | |
/// Creates the localize. | |
/// </summary> | |
/// <param name="layout">Layout.</param> | |
public void CreateLocalize(StackLayout layout) | |
{ | |
// TODO: ローカライズ. | |
var selectTitle = "言語選択"; | |
var label = new Label() |
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
// Place your key bindings in this file to overwrite the defaults | |
[{ | |
"key": "shift+alt+l", | |
"command": "editor.action.format" | |
},{ | |
"key": "shift+cmd+r", | |
"command": "editor.action.referenceSearch.trigger", | |
"when": "editorTextFocus" | |
},{ | |
"key": "cmd+d", |
NewerOlder