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 ldrHeader = document.getElementsByTagName("div"); // ページから divタグの配列を取得して変数に定義。 | |
ldrHeader[0].style = ""; // 配列の先頭が該当するお知らせヘッダーなので 0 で指定し、そのstyleプロパティを空にする。 | |
ldrHeader[0].innerHTML = ""; // 同様に<div></div>に囲まれた部分を innerHTML プロパティで取得して空にする。 |
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
</head> | |
<body><base target="_blank"> | |
<div style="padding: 1em 0; background-color: #eee; font-weight: bold; font-size: 2em; text-align:center;"> | |
<a href="http://blog.livedoor.jp/staff_reader/archives/52278396.html" target="_blank">【重要】Live Dwango Reader/LDR Pocketサービス終了のお知らせ</a> | |
</div> | |
<!-- header --> | |
<div id="header" class="header"> | |
<div class="pxsmall" id="functionHeader"> | |
<div style="clear:both;font-size:1px;margin:0;padding:0"></div> | |
</div> |
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 BerlinOffice = { // varは変数(variable)を作るときに使う。BerlinOfficeオブジェクトを作る。オブジェクトは {} でひとかたまり。 | |
"company" : "Classmethod Europe Berlin Office", // {} の中で xxx : yyy という塊を作り、複数作る場合は , で区切る。 | |
"city" : "Berlin", // この塊をプロパティと呼び、左 xxx はプロパティのname(名前)、右 yyy はvalue(値)。 | |
"employee" : 10 // 値を "" で囲むと文字列となり、囲まないと変数や数値として扱われる。 | |
}; //プログラムの改行は ; を使う。 | |
console.log(BerlinOffice.city); // cityプロパティを指定してコンソール出力、プロパティの値である Berlin が表示される。 | |
console.log(BerlinOffice.employee + 1); // 数値には四則演算子が使える。この場合 employee の値 10 + 1 = 11 が表示される。 | |
console.log(BerlinOffice.company.length); // .length は文字列にあらかじめ用意されているプロパティ。文字数である32が表示される。 | |
console.log(BerlinOffice.company.toLowerCase()); // .toLowerCase() はメソッドというオブジェクト内の関数。companyの文字列を全部小文字にする。 |
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
pragma solidity ^0.4.16; | |
import "./SafeMath.sol"; | |
contract MTC { | |
using SafeMath for uint256; //uint256変数にはSafeMathを適用する。 | |
//ネットワーク上にリリースするトークン名とティッカー | |
string public constant symbol = "MTC"; |
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
pragma solidity ^0.4.13; //solidityのバージョン指定 | |
/* オーナーの定義 */ | |
contract owned { | |
address public owner; | |
function owned() { | |
owner = msg.sender; | |
} | |
modifier onlyOwner { |
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
pragma solidity ^0.4.13; //solidityのバージョン指定 | |
contract Methoco { | |
address owner; //contractのイニシエータであるowner(Hashアドレスにて同定)を宣言 | |
uint public akushuken; // 公開される握手券を宣言 | |
uint constant price = 1 ether; //ブロックチェーンでやり取りされる単位(価格)を1 etherと定義 | |
mapping (address => uint) public fans; //握手券を購入するファン(アドレス)をマッピング | |
function Methoco(){ |
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 myFunction() { | |
var myActiveSpreadSheet = SpreadsheetApp.getActiveSpreadsheet(); | |
var myActiveSheet = myActiveSpreadSheet.getSheets()[0]; | |
var url = myActiveSheet.getRange(1,1).getValue(); | |
var image = UrlFetchApp.fetch(url); | |
MailApp.sendEmail({ | |
to: 'yourboxfolderaddress@u.box.com', | |
subject: 'image', | |
body: 'image', |
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
<table style="height: 221px;" width="500"> | |
<tbody> | |
<tr> | |
<td><img class="alignleft wp-image-257583 size-thumbnail" src="http://cdn.dev.classmethod.jp/wp-content/uploads/2016/09/Mesoko_May_1920x1080-320x180.png" alt="" width="320" height="180" srcset="http://cdn.dev.classmethod.jp/wp-content/uploads/2016/09/Mesoko_May_1920x1080-320x180.png 320w, http://cdn.dev.classmethod.jp/wp-content/uploads/2016/09/Mesoko_May_1920x1080-640x360.png 640w, http://cdn.dev.classmethod.jp/wp-content/uploads/2016/09/Mesoko_May_1920x1080-768x432.png 768w, http://cdn.dev.classmethod.jp/wp-content/uploads/2016/09/Mesoko_May_1920x1080-960x540.png 960w" sizes="(max-width: 320px) 100vw, 320px" /></td> | |
<td> | |
<p style="text-align: center;"><a href="http://cdn.dev.classmethod.jp/wp-content/uploads/2016/09/Mesoko_May_1920x1080.png" target="_blank">1920×1080</a></p> | |
<p style="text-align: center;"><a href="http://cdn.dev.classmethod.jp/wp-content/uploads/2016/09/Mesoko_May_1280x1024.png" target="_blank">1280×1024</a></p> | |
<p style="text-align: c |
NewerOlder