Left align | Right align | Center align |
---|---|---|
This | This | This |
column | column | column |
will | will | will |
be | be | be |
left | right | center |
aligned | aligned | aligned |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 excel = new ActiveXObject("Excel.Application"); | |
// ワークブック新規作成 | |
var book = excel.Workbooks.Add(); | |
// シート | |
var sheet = book.WorkSheets(1); // 1シート目(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
namespace hoge{ | |
struct X{ | |
int a[100]; | |
}; | |
int * begin(X& x) { | |
std::cout << "hoge::begin()" << std::endl; | |
return x.a; | |
} |
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
int main(int argc, _TCHAR* argv[]) | |
{ | |
std::vector<int> numbers3 = { -1, 10, 2, 5, 6, -5, -10, 9, 8, 5 }; | |
int ref = 5; | |
auto absDist = [&ref](int l, int r) -> bool{ | |
return abs(l - ref) < abs(r - ref); | |
}; | |
std::sort(std::begin(numbers3), std::end(numbers3),absDist); | |
print(numbers3); // 5, 5, 6, 2, 8, 9, 10, -1, -5, -10 | |
return 0; |
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
request = require "request"; | |
fs = require "fs"; | |
ahe = ['m01.jpg','m02.jpg','m03.jpg','m04.jpg'] | |
module.exports = (robot) -> | |
robot.hear /かお/i, (msg) -> | |
file_name = msg.random ahe | |
file = fs.createWriteStream file_name | |
api_url = 'https://slack.com/api/' | |
channel = msg.message.room |
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
template<typename T> | |
class classF; | |
class classA | |
{ | |
public: | |
classA(); | |
~classA(); | |
private: | |
classF<int> *objF; | |
}; |
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
// 画像データを取得する | |
function api_get_message_content_request($message_id) { | |
$url = "https://trialbot-api.line.me/v1/bot/message/{$message_id}/content"; | |
$headers = array( | |
"X-Line-ChannelID: {$GLOBALS['CHANNEL_ID']}", | |
"X-Line-ChannelSecret: {$GLOBALS['CHANNEL_SECRET']}", | |
"X-Line-Trusted-User-With-ACL: {$GLOBALS['MID']}" | |
); | |
$curl = curl_init($url); | |
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); |
NewerOlder