Skip to content

Instantly share code, notes, and snippets.

View akouryy's full-sized avatar
💭
🐰

akouryy akouryy

💭
🐰
View GitHub Profile
$ '#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}"
class A
test: []
a1 = new A()
a2 = new A()
a1.test.push 1
a2.test.push 2
alert a1.test # => 1,2
@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>