Skip to content

Instantly share code, notes, and snippets.

Avatar

k5.trismegistus k5trismegistus

View GitHub Profile
@niisan-tokyo
niisan-tokyo / index.html
Last active Feb 25, 2021
ブラウザから動画を録画する機構
View index.html
<!DOCTYPE html>
<html lang="ja" dir="ltr" itemscope itemtype="http://schema.org/Article">
<head>
<meta charset="utf-8">
</head>
<body>
<div class="camera">
<video id="video">Video stream not available.</video>
</div><br>
<button id="startbutton">start!!</button><button id="stopbutton">stop!!</button><button id="download">download!!</button><br>
View slack_iine_taro
var SLACK_API_TOKEN = PropertiesService.getScriptProperties().getProperty('SLACK_API_TOKEN');
var OUTGOING_TOKEN = PropertiesService.getScriptProperties().getProperty('OUTGOING_TOKEN');
var SPREADSHEET_ID = PropertiesService.getScriptProperties().getProperty('SPREADSHEET_ID');
var RECORD_SHEET_NAME = 'record';
var MEMBER_SHEET_NAME = 'member';
function doPost(e) {
if(OUTGOING_TOKEN == e.parameter.token && e.parameter.trigger_word == 'iine'){
View es6.ebnf
/* ebnf file for es 6 - MAY CONTAIN ERRORS / DISAMBIGUITY */
Grammer::= Statement
/* Lexical grammer */
SourceCharacter ::= #x0000-#x10FFFF
InputElementDiv ::= WhiteSpace | LineTerminator | Comment | CommonToken | DivPunctuator | RightBracePunctuator
InputElementRegExp ::= WhiteSpace | LineTerminator | Comment | CommonToken | RightBracePunctuator | RegularExpressionLiteral
InputElementRegExpOrTemplateTail ::= WhiteSpace | LineTerminator | Comment | CommonToken | RegularExpressionLiteral | TemplateSubstitutionTail
InputElementTemplateTail ::= WhiteSpace | LineTerminator | Comment | CommonToken | DivPunctuator | TemplateSubstitutionTail
WhiteSpace ::= "<TAB>" | "<VT>" | "<FF>" | "<SP>" | "<NBSP>" | "<ZWNBSP>" | "<USP>"
@yamamotoj
yamamotoj / CalcParser.hs
Last active May 16, 2016
Programming in Haskell Chapter9
View CalcParser.hs
module CalcParser where
import Data.Char
type Parser a = String -> [(a, String)]
return' :: a -> Parser a
return' v = (\inp -> [(v, inp)])
item :: Parser Char
item = (\inp -> case inp of [] -> []
@kishida
kishida / MiniParser.scala
Created Nov 7, 2011
Mini parser with parser combinators of scala.
View MiniParser.scala
package miniparser
import scala.util.parsing.combinator.RegexParsers
import scala.collection.mutable.Map
object Main {
def main(args: Array[String]): Unit = {
val expr = """
def mod(x, y) ={