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
use strict; | |
use warnings; | |
use utf8; | |
use Plack::Request; | |
use HTTP::Entity::Parser; | |
use Hash::MultiValue; | |
use JSON; | |
use Data::Dumper; | |
my $parser = HTTP::Entity::Parser->new; |
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
// Slackの Incoming webhooks の設定を済ませ、webhook URLを発行しておく | |
// ex: https://hooks.slack.com/services/AAAAA/BBBB/CCCC | |
const WEB_HOOK_URL = ""; | |
// Slack通知時の設定 | |
const SLACK_USER_NAME = 'bot user name'; | |
const SLACK_ICON = ':hatching_chick:'; | |
// 対象のコンテンツを選択: "document" or "spreadsheets" | |
const CONTENT_TYPE = "document"; |
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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
"path/filepath" | |
"regexp" | |
) |
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
'use strict'; | |
const functions = require('firebase-functions'); | |
const dayNames = [ | |
'日曜日', | |
'月曜日', | |
'火曜日', | |
'水曜日', | |
'木曜日', |
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 perl | |
use strict; | |
use warnings; | |
use File::Find; | |
use File::Slurp; | |
use Data::Dumper; | |
use List::MoreUtils; |
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 perl | |
use strict; | |
use warnings; | |
use utf8; | |
use File::Path; | |
use File::Slurp; | |
use 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
require 'sinatra/base' | |
require 'sinatra/formkeeper' | |
class MainApp < Sinatra::Base | |
register Sinatra::FormKeeper | |
post '/input' do | |
form do | |
filters :strip | |
field :username, :present => true, :length => 4..12 | |
field :old_password, :present => true, :length => 8..16 |
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
drop table if exists varchar_length; | |
create table varchar_length( | |
id int auto_increment NOT NULL, | |
letter016 varchar(16), | |
letter256 varchar(256), | |
primary key(id) | |
); | |
drop table if exists int_length; | |
create table int_length( |
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 perl | |
use strict; | |
use warnings; | |
use File::Find; | |
use Test::More; | |
my @TARGET_DIR = (qw/ lib /); |
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
<?php | |
/** | |
* Test_PHP_Syntax | |
* | |
* @group App | |
* @uses TestCase | |
* | |
*/ | |
class SyntaxTest extends PHPUnit_Framework_TestCase |
NewerOlder