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 / location_result.dat
Created March 3, 2016 13:12
天気予報を取得する / Python / Python weather API
# 2016-3-3 現在のYahooの地域コードデータです
# N/Aの行は削除しています
# 出力スクリプト参考:http://inside-my-box.hatenablog.com/entry/2014/07/21/001606
location ID Name Geodata(lat,long)
JAXX0001 Akita 39.72,140.1
JAXX0002 Akune 32.02,130.2
JAXX0003 Amagasaki 34.72,135.42
JAXX0004 Aomori 40.82,140.75
JAXX0005 Asahikawa 43.77,142.37
@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() { }

Atomの設定を「Sync-Settings」で共有する。

@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>