Awesomiumとは、Chromiumの機能のうち、Web画面のレンダリングやイベント処理などをC++から直接扱えるライブラリです。 このライブラリを使うと、たとえばゲーム画面にウェブブラウザを設置できたり、HTML+Javascript+CSSを用いてGUIアプリケーションを構築可能です。 非オープンソースなライブラリであり、非商用であれば無償で利用することができますが、商用製品に組み込む場合は有償のようです。
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
import std.algorithm; | |
import std.array; | |
import std.conv; | |
import std.exception; | |
import std.json; | |
import std.string; | |
import std.traits; | |
import std.typecons; | |
import std.typetuple; | |
import std.variant; |
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
import core.thread; | |
import core.time; | |
import std.stdio; | |
import cef4d.c.capi.cef_base_capi; | |
import cef4d.c.capi.cef_app_capi; | |
import cef4d.c.capi.cef_client_capi; | |
import cef4d.base; |
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
void set(T, Args...)(ref T hoge, Args args) | |
{ | |
template GetFieldIndex(T, size_t idx, Args...) | |
{ | |
alias Field = typeof(T.init.tupleof); | |
// 構造体のどのメンバに代入するか決める | |
template Skip(size_t i, size_t j) | |
if(i < Field.length && j <= idx) | |
{ |
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
[verbose] @graphite.utils.log[source\app.d(168) in void app.main()]: ## START : 2015-May-26 16:00:56.7266824 | |
[verbose] @graphite.utils.log[source\app.d(146) in void app.TweetWriter.flush()]: [1/3] 休講・補講情報ウェブページに更新があります | |
[verbose] @graphite.utils.log[source\app.d(146) in void app.TweetWriter.flush()]: [2/3] [環境・生命, 建築・都市, 情報・知能, 電気・電子情報, 機械] 系 [B1] プログラミング演習Ⅰ(プログラミング演習Ⅰ-b) の 2015年7月24日[2]限目の講義が休講になりました. http://bit.ly/TYB9hb #TUTB1_4 #TUTB1_5 #TUTB1_3 #TUTB1_2 #TUTB1_1 | |
[verbose] @graphite.utils.log[source\app.d(170) in void app.main()]: ## END : 2015-May-26 16:01:10.3216597 | |
[verbose] @graphite.utils.log[source\app.d(168) in void app.main()]: ## START : 2015-May-26 17:00:57.7274681 | |
[verbose] @graphite.utils.log[source\app.d(146) in void app.TweetWriter.flush()]: [1/2] [環境・生命, 建築・都市, 情報・知能, 電気・電子情報, 機械] 系 [B1] プログラミング演習Ⅰ(プログラミング演習Ⅰ-b) の 2015年7月24日[2]限目の講義が休講になりました. http://bit.ly/TYB9hb #TUTB1_4 #TUTB1_5 #TUTB1_3 #TUTB1_2 #TUTB1_1 | |
[verbose] @graphite.utils.log[source\app.d(170) in void app.main()]: ## END : 2015 |
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
import std.stdio; | |
import std.string; | |
import std.stdio; | |
import std.conv; | |
import std.datetime; | |
import std.exception; | |
import carbon.templates; | |
import carbon.utils; |
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
import std.stdio; | |
import graphite.ww.application, | |
graphite.ww.activity, | |
graphite.ww.html, | |
graphite.ww.widgets.button; | |
import awesomium4d.weakref, | |
awesomium4d.jsarray, | |
awesomium4d.webconfig, |
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
module awesomium4d.cppwrapper.webview; | |
mixin template Awesomium() | |
{ | |
enum WebViewType { offscreen, window } | |
enum MouseButton { left, middle, right } | |
interface WebView {} | |
} |
この記事は、TUT Advent Calendarの12日目の記事です。
TUT休講・補講情報botは、豊橋技術科学大学(TUT)の休講情報や補講情報をツイートするbotです。 今日は、なぜこのbotが生まれたのか、どのように開発したのか、どのように運用されているのか、どういう反響があったのかについて書いていきます。
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
struct LessNode{ | |
bool operator()(std::shared_ptr<Node> const & ln, std::shared_ptr<Node> const & rn) const { | |
if (ln->get_totalcost() < rn->get_totalcost()) | |
return true; | |
else if (ln->get_totalcost() > rn->get_totalcost()) | |
return false; | |
return ln.get() < rn.get(); | |
} | |
}; |