Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🐰

akouryy akouryy

💭
🐰
View GitHub Profile
View gist:6307061
/* *
* Bython ver.0.0.0 *
* made by: *
* akouryy *
* hirorisuu *
* satouuta *
* */
#include <iostream>
#include <sstream>
#include <string>
View bython200.cpp
#include <stdlib.h>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
typedef struct{
int index;
View bython399.cpp
/* *
* Bython ver.0.0.0 *
* made by: *
* akouryy *
* hirorisuu *
* satouuta *
* */
#include <stdlib.h>
#include <iostream>
@akouryy
akouryy / Program.cs
Last active Dec 29, 2015
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)
View Program.cs
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);
View gist:94eab00dd9d858ae1ae2
class A
test: []
a1 = new A()
a2 = new A()
a1.test.push 1
a2.test.push 2
alert a1.test # => 1,2
View gist:a3907527a7a043462555
$ '#change-color'
.ColorPickerSetColor(
$ "#shape-#{shape.html_id}"
.attr 'stroke'
).substring 1
#-> $('#change-color').ColorPickerSetColor($("#shape-" + shape.html_id).attr('stroke')).substring(1);
$ '#change-color'
.ColorPickerSetColor (
$ "#shape-#{shape.html_id}"
@akouryy
akouryy / ぴょんぴょん
Created Aug 24, 2014
eachの引数の関数でfalseを返すとbreakの代わりと見なされるのでfalse以外の値を返しますよ
View ぴょんぴょん
$ ->
include '/jQuery.cookie.js'
checkList = []
updateControl = ->
$('#save-anime').attr 'disabled', true
link = "http://akouryy.net/anime/?year=2014&season=3&by_param"
console.log checkList
$('.show-anime').each (i) ->
if $(this).is ':checked'
@akouryy
akouryy / pyonpyon
Last active Aug 29, 2015
ぴょんぴょん
View pyonpyon
# AOJ 0530
eval(
%( I=1/0.0; loop{n,
m =gets.s p lit.m ap
( &: to_i);n<1&&exit;c=Arr ay.new(n
) { Ha sh[[*gets.split[1..-1].map( &:t o
_ i) .each_slice(2)]]};p=Array.new(m+ 1){|k|n.ti
mes.map{|i| Hash[c[i].map{|j,_|[j,((i<1||i<2& &k>1) ?
0:I)]}]}};0.upto(m){|k|1.upto(n-1){|i|c[i].ma p{|j, d
@akouryy
akouryy / pyonpyon-1
Created Oct 19, 2014
ぴょんぴょん
View pyonpyon-1
# AOJ 0530
# http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0530
#
# (C)2014 akouryy
; eval(%w(I = 1/0.0 ;l
o op {n,m=gets.split.map(& :to_i);n
< 1 && exit;c=Array.new(n){Hash[[* get s
. sp lit[1..-1].map(&:to_i).each_slic e(2)]]};p=
Array.new(m +1){|k|n.times.map{|i|Hash[c[i].m ap{|j ,
View ff33-bug
<!DOCTYPE html>
<html>
<head>
<title>test page</title>
<style>
circle{
transform: rotateX(0deg);
transform-origin: 50px 50px;
transition: transform 1s linear;
}