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
phpinfo() | |
PHP Version => 5.6.30 | |
System => Windows NT RD00155E20242C 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586 | |
Build Date => Jan 18 2017 19:41:45 | |
Compiler => MSVC11 (Visual C++ 2012) | |
Architecture => x86 | |
Configure Command => cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--disable-zts" "--disable-isapi" "--disable-nsapi" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=c:\php-sdk\oracle\x86\instantclient_12_1\sdk,shared" "--with-oci8-12c=c:\php-sdk\oracle\x86\instantclient_12_1\sdk,shared" "--with-enchant=shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--with-mcrypt=static" "--without-analyzer" "--with-pgo" | |
Server API => Command Line Interface | |
Virtual Directory Support => disabled |
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 request = require('request'); | |
var Slack = require('slack-node'); | |
module.exports = function (context, myTimer) { | |
var timeStamp = new Date().toISOString(); | |
if(myTimer.isPastDue) | |
{ | |
context.log('JavaScript is running late!'); | |
} |
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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"newStorageAccountName": { | |
"type": "string", | |
"metadata": { | |
"description": "Unique DNS Name for the Storage Account where the Virtual Machine's disks will be placed." | |
} | |
}, |
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
{ | |
"$schema": "http://schemas.management.azure.com/schemas/2015-01-01-preview/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"appName": { | |
"type": "string", | |
"metadata": { | |
"description": "The name of the function app that you wish to create." | |
} | |
}, |
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
func makeCustomEncoding() -> ParameterEncoding { | |
return ParameterEncoding.Custom { requestConvertible, parameters in | |
func escape(string: String) -> String { | |
// MEMO: /, ? もエンコードされるようにオリジナルのコードに追加指定している | |
// see https://github.com/Alamofire/Alamofire/blob/master/Source/ParameterEncoding.swift#L220 | |
// | |
let generalDelimitersToEncode = ":#[]@/?" // does not include "?" or "/" due to RFC 3986 - Section 3.4 | |
let subDelimitersToEncode = "!$&'()*+,;=" | |
let allowedCharacterSet = NSCharacterSet.URLQueryAllowedCharacterSet().mutableCopy() as! NSMutableCharacterSet |
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
let url = "https://api.example.com/foo" | |
let paramaters = ["foo": "bar"] | |
let encoding = makeCustomEncoding() | |
Alamofire.request(.GET, url, parameters: parameters, encoding: encoding) | |
.... |
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 | |
namespace Nifty\Cloud\mBaaS; | |
class API | |
{ | |
public $settings = [ | |
'application_key' => null, | |
'client_key' => null, | |
'api_url' => 'https://mb.api.cloud.nifty.com/2013-09-01/', | |
'SignatureMethod' => 'HmacSHA256', |
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
default["fluentd"]["path"] = '/usr/lib/fluent' | |
default["fluentd"]["plugins"] = [] |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="name-of-project" default="build"> | |
<target name="build" depends="prepare,lint,phploc,pdepend,phpcb,phpmd-ci,phpcs-ci,phpcpd,phpunit"/> | |
<target name="build-parallel" depends="prepare,lint,tools-parallel,phpunit"/> | |
<target name="tools-parallel" description="Run tools in parallel"> | |
<parallel threadCount="3"> | |
<sequential> | |
<antcall target="pdepend"/> |
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 | |
// 大分やっつけ感がある感じ...orz | |
class CoMeeting { | |
private $url = 'https://www.co-meeting.com'; | |
private $cookie = null; | |
private $params = null; | |
public function __construct($config='config.php') | |
{ | |
include($config); |