This file contains hidden or 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 | |
$url = "http://qiita.com/"; | |
$body = file_get_contents($url); | |
$dom = new DOMDocument(); | |
@$dom->loadHTML($body); | |
$title = $dom->getElementsByTagName('title')->item(0)->textContent; | |
print "$title\n"; |
This file contains hidden or 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 | |
ini_set('user_agent', 'OreOreAgent'); | |
$url = 'https://qiita.com/api/v1/items'; | |
$response = file_get_contents($url); |
This file contains hidden or 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
diff --git app/views/issues/_attributes.html.erb app/views/issues/_attributes.html.erb | |
index 0e29701..830dfc6 100644 | |
--- app/views/issues/_attributes.html.erb | |
+++ app/views/issues/_attributes.html.erb | |
@@ -2,7 +2,8 @@ | |
<div class="splitcontent"> | |
<div class="splitcontentleft"> | |
-<% if @issue.safe_attribute?('status_id') && @allowed_statuses.present? %> | |
+<% if params[:action] == 'new' %> |
This file contains hidden or 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
… | |
Module:KERNEL32.dll Hint:234, Name:EncodePointer | |
Module:KERNEL32.dll Hint:532, Name:GetModuleFileNameW | |
Module:USER32.dll Hint:526, Name:MessageBoxA | |
Module:imagehlp.dll Hint:18, Name:ImageDirectoryEntryToData | |
… | |
Module:MSVCR100D.dll Hint:289, Name:_CRT_RTC_INITW | |
Module:MSVCR100D.dll Hint:1289, Name:_wassert | |
Module:MSVCR100D.dll Hint:1499, Name:getchar ← 今回はこれを書き替えてみます | |
Module:MSVCR100D.dll Hint:1474, Name:fopen |
This file contains hidden or 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
hogehoge; |
This file contains hidden or 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
test |
This file contains hidden or 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
… | |
<Compile Include="Forms\Form1.Hoge.cs"> | |
<DependentUpon>Form1.cs</DependentUpon> | |
<SubType>Code</SubType> | |
</Compile> | |
… |
This file contains hidden or 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 | |
/* | |
実行例 | |
php agg.php 0,1,3,5.5,10,7,8.8 | |
*/ | |
// 区切り文字 | |
$IN_DELIM = ','; // クラスタ内区切り文字 | |
$OUT_DELIM = ' | '; // クラスタ間区切り文字 |
NewerOlder