Skip to content

Instantly share code, notes, and snippets.

View akouryy's full-sized avatar
💭
🐰

akouryy akouryy

💭
🐰
View GitHub Profile
@akouryy
akouryy / Program.cs
Last active December 29, 2015 02:19
This is a sample of event implementation on C#. output: 1HeLLo, WorLd! : on B 1 Hello, World! : on E(1) 1H ello, World! : on E(2) -11 : on D 11 : on E(1) 11 : on E(1) 22 : on E(2) 22 : on E(2)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Project1 {
class Program {
static void Main(string[] args) {
EventManager em = new EventManager();
A a = new A(em);
/* *
* Bython ver.0.0.0 *
* made by: *
* akouryy *
* hirorisuu *
* satouuta *
* */
#include <stdlib.h>
#include <iostream>
@akouryy
akouryy / bython200.cpp
Last active December 21, 2015 13:39 — forked from satouuta/bython200.cpp
#include <stdlib.h>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
typedef struct{
int index;
/* *
* Bython ver.0.0.0 *
* made by: *
* akouryy *
* hirorisuu *
* satouuta *
* */
#include <iostream>
#include <sstream>
#include <string>
テンプレ: https://gist.github.com/akouryy/7450d21b24aaa2bcbbaa
@akouryy
akouryy / template.cpp
Last active December 12, 2015 13:21
競プロ用テンプレート(2015/11/23)
// C++ 11
// Library
#include <bits/stdc++.h>
using namespace std;
// Type Name
#define TMPL template<class T>
#define TMPL2 template<class T, class U>
#define TMPL_A template<class T, class ...U>
テンプレ略
@akouryy
akouryy / joi.rb
Last active December 12, 2015 03:51
$id = ARGV[0]
`g++ -Wall -std=c++11 -O2 #$id/program#$id.cpp`
1.upto 5 do |x|
puts "begin #{x}:\t" + File.read("#$id/2016-yo-t#$id-in#{x}.txt").lines.first.chomp + "..."
result = `a < #$id/2016-yo-t#$id-in#{x}.txt`
puts "end #{x}:\t\t" + result.lines.first.chomp + "..."
File.write "#$id/out#$id-#{x}.txt", result
end
use utf8;
use strict;
use Data::Dumper "Dumper";
binmode(STDOUT, ":utf8");
use constant BLOCKS => [
[
[0, 0, 1, 0, 0],
[0, 0, 1, 0, 0],
[0, 0, 1, 0, 0],
@akouryy
akouryy / user.css
Last active November 4, 2015 09:04
ふぁぼ(星ではない)
.icon-favorite-color, .is-favorite .icon-favorite-toggle {
color: #f1c933 !important;
}
.sprite {
background-image: url(http://akouryy.net/tweetdeck.png) !important;
}
.stream-item[data-key^=favorite_] .activity-header>.nbfc {
font-size: 0px !important;