Skip to content

Instantly share code, notes, and snippets.

View aliyome's full-sized avatar

aliyome aliyome

  • Individual
  • Nagasaki, Japan
  • 21:52 (UTC +09:00)
  • X @aliyome
View GitHub Profile

echo lxsession -s Lubuntu -e LXDE > ~/.xsession

@aliyome
aliyome / test.md
Last active May 15, 2024 06:15
レガシーVBはもういやだ

Modern Visual Basic

2014.5.10


はじめに

今日話す内容は

@aliyome
aliyome / calendar.d
Created October 22, 2014 10:32
プロ生のアレ
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) {
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;
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);
@aliyome
aliyome / air.d
Last active July 22, 2018 06:28
MUGEN air parser
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:

Rails概要 10%

  • Railsの各コンポーネント(ActiveRecordやActionPack)の説明や、MVCにおける基礎的な知識
    • ActiveRecord
    • ActionPack
      • Action Dispatch
      • Action Controller
    • Active Support Core Extensions
      • blank? false, nil, 空白, 空の配列, 空のハッシュ, empty?
      • present?
  • presence nil or 実体
@aliyome
aliyome / marshal.vb
Created August 1, 2016 07:16
GCHandleとMarshalについて迷ったらこれ
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; }
@aliyome
aliyome / test.d
Last active July 22, 2018 07:27
黒魔術系
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;
@aliyome
aliyome / ng-memo.md
Last active July 22, 2018 07:28
雑多

Redux(ngrxの流れ)

sequenceDiagram

participant Component
participant Action
participant Reducer
participant Store
participant Effect