Skip to content

Instantly share code, notes, and snippets.

View oyakodon's full-sized avatar

Oyakodon oyakodon

View GitHub Profile
@oyakodon
oyakodon / Main.cpp
Last active May 23, 2020 08:02
Picture Brush Paint
#include <Siv3D.hpp> // OpenSiv3D v0.4.3
struct AnimationImage
{
Array<Image> images;
Array<Texture> textures_prev;
// フレームの時間
Array<int32> delays;
#include <iostream>
int main()
{
std::cout << "Hello, world!" << std::endl;
return 0;
}
@oyakodon
oyakodon / Main.cpp
Created December 28, 2017 06:25
スクロールできるテキスト表示 / Siv3D, C++
#include <Siv3D.hpp>
/// <summary>
/// スクロールできるテキスト表示を提供します。
/// </summary>
class ScrollTextBox
{
private:
/// <summary>
@oyakodon
oyakodon / 01_stdin.cpp
Created July 5, 2017 18:54
2017年度一年生C++勉強会用 / NITSC ProClub
#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
n = n * 2;
@oyakodon
oyakodon / radiko.sh
Created February 2, 2017 16:38
radiko.jpを再生・録音する / Bash
#!/bin/bash
#############################################
#
# matchy2/rec_radiko.sh
# https://gist.github.com/matchy2/3956266
# まっつん/radiko.sh
# https://mtunn.wordpress.com/odroid-u2★セットアップ/radikoの録音・再生(archlinux)/
#
# Mod by Oyakodon
@oyakodon
oyakodon / A.cs
Created August 21, 2016 14:57
AGC003 / C#
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
public class Don
{
public Don() { }
@oyakodon
oyakodon / Form1.Designer.cs
Created June 9, 2016 13:54
ブログ記事作成支援ツール / C#
namespace BlogTemplate
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
@oyakodon
oyakodon / A.cpp
Created May 15, 2016 14:12
ABC037 / C++14
#pragma region Template
#include <cstdio>
#include <math.h>
#include <algorithm>
#include <vector>
#include <iostream>
#include <sstream>
#include <string>
#include <iomanip>
#include <set>
@oyakodon
oyakodon / ABC002.md
Created May 7, 2016 13:43
ABC002 / C++11
@oyakodon
oyakodon / A.cpp
Created May 1, 2016 14:02
ABC001 / C++11
#include <iostream>
using namespace std;
int main() {
int h1, h2;
cin >> h1;
cin >> h2;
cout << h1 - h2 << "\n";
return 0;
}