echo lxsession -s Lubuntu -e LXDE > ~/.xsession
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
import std.stdio : write, writef, writeln; | |
import std.datetime : Clock, Date; | |
import std.conv : to; | |
void main() { | |
auto t = Clock.currTime(); | |
auto count = t.endOfMonth.day; | |
auto offset = new Date(t.year, t.month, 1).dayOfWeek.to!int; | |
foreach (i; 0 .. offset) { |
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
import std.stdio; | |
import std.string; | |
import std.array; | |
import pegged.grammar; | |
import markdown; | |
mixin(grammar(MarkdownGrammar)); | |
void main() { | |
auto doc = Markdown(sampleMd).children.front; |
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
import std.stdio, std.datetime, std.conv; | |
void main() { | |
auto t = Clock.currTime(); | |
auto c = t.endOfMonth.day; | |
auto o = new Date(t.year, t.month, 1).dayOfWeek.to!int; | |
foreach (i; 0 .. o) { | |
write(" "); | |
} | |
foreach (i; 1 .. c + 1) { | |
writef("%2d", i); |
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
import std.stdio; | |
import std.string : strip, toLower, format; | |
import std.conv : to; | |
import std.regex : ctRegex, matchFirst; | |
import std.file : readText; | |
import pegged.grammar; | |
mixin(grammar(` | |
Air: |
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
Imports System.Runtime.InteropServices | |
Module Module1 | |
' int hoge(int val) { return val; } | |
<DllImport("ConsoleApplication2.dll", CallingConvention:=CallingConvention.Cdecl)> | |
Public Function hoge(val As Int32) As Int32 | |
End Function | |
' int foo(int* val) { *val = *val + 200; return val; } |
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
import std.stdio; | |
import std.traits; | |
import std.range; | |
import std.array; | |
import std.algorithm; | |
import core.sync.mutex; | |
class A { | |
private int private_field; | |
public string public_field; |
Redux(ngrxの流れ)
sequenceDiagram
participant Component
participant Action
participant Reducer
participant Store
participant Effect