ウインドウのスクロール量を取得するクラスブラウザなコードを考えます。
| .frame | |
| .card | |
| img.background-img(src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/544318/hills.jpeg") |
| <div class="al"></div> | |
| <div class="container"> | |
| <div class="header">Sign In</div> | |
| <div class='info'>*Click on the input boxes</div> | |
| <input id='username' class='text' onfocus="handle2()" class='inc2' type="text" name="Username" placeholder='Username' value=""> | |
| <!-- Had to remove the type "password" due to the browser user credential's autofill--> | |
| <input id='password' class='pass' onfocus="handle1()" class='inc1' type="pass" name="Password" placeholder='Password' value=""> | |
| <button>Sign In</button> | |
| <svg width="390" height="549" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | |
| <rect id='rect' class='rect1' x="45px" y="300px" rx="27" ry="27" width="300px" height="50px" style="stroke: #fff; stroke-width: 1px; fill: #000" /> |
Markdown files allow embedding images in it. However it requires the image to be hosted at some location and we can add the url of the image to embed it.
Example:

We can use services like imgur or other services to host the images and use the hosted URL.
| import bpy, bmesh | |
| def main(context): | |
| bpy.ops.object.mode_set(mode='EDIT') | |
| active_obj = bpy.context.active_object | |
| me = active_obj.data | |
| bm = bmesh.from_edit_mesh(me) | |
| verts = bm.verts |
Mastodon が他のインスタンスと情報交換をする OStatus API の使い方。使ってるだけのユーザは知る必要がない裏側の話。
Mastodon インスタンスに対して、RFC6415 が規定する /.well-known/host-meta というパスを要求すると以下の XML が返ってくる.
<?xml version="1.0"?>
<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
<Link rel="lrdd" type="application/xrd+xml" template="https://[MASTODON_HOST]/.well-known/webfinger?resource={uri}"/>
</XRD>| // Parse a document using "offside rule" indentation (as in Python) into lines | |
| // grouped by indentation level, using PEG.js. | |
| // Attempts to segregate the "stateful" rules from the other production/parsing | |
| // rules by "disallowing" indentation-level-sensitive rules from consuming any | |
| // text. | |
| { var margin_stack = [""]; } | |
| Document | |
| = content: Element+ |
| //: Playground - noun: a place where people can play | |
| let クチャクチャ = 0 | |
| let 早口 = 0 | |
| let アディダスの財布 = 0 | |
| let ドヤ顔 = 0 | |
| let ギトギトの髪 = 0 | |
| let 運動靴 = 0 | |
| let 細い目 = 0 | |
| let 汚いメガネ = 0 |
So, with credit to the Factorio wiki and cbednarski's helpful gist, I managed to eventually setup a Factorio headless server. Although, I thought the process could be nailed down/simplified to be a bit more 'tutorialised' and also to document how I got it all working for my future records.
The specific distro/version I'm using for this guide being Ubuntu Server 16.04.1 LTS. Although, that shouldn't matter, as long as your distro supports systemd (just for this guide, not a Factorio headless requirement, although most distros use it as standard now).
The version of Factorio I shall be using is 0.14.20, although should work for any version of Factorio 0.14.12 and higher.
Just a note to newcomers: If there are any issues with the installation steps, people in the comments are doing a good job
| # Misskey API Configuration | |
| ### サーバーの管理者情報 | |
| # ex) "Your Name <youremail@example.com>" | |
| maintainer: <string> | |
| ### APIアクセス時のパスワード | |
| apiPass: <string> | |
| ### アクセスするときのドメイン |