Skip to content

Instantly share code, notes, and snippets.

View taishi41228's full-sized avatar

Taiyaki taishi41228

View GitHub Profile
class Car
def initialize(carname)
@name = carname
end
def dispName
print(@name)
end
end
@taishi41228
taishi41228 / main.js
Last active December 22, 2016 05:55
Hello Electron!!
const electron = require('electron');
const {
app,
BrowserWindow
} = electron;
const fs = require("fs");
app.on('ready', function () {
function isExistFile(file) {
try {
@taishi41228
taishi41228 / test.html
Last active February 13, 2017 04:57
テスト
<!DOCTYPE html>
<html>
<head>
<title>ほげほげのホームページ トップ</title>
</head>
<body>
<h1>ほげほげのホームページ</h1>
<p>こんにちは、今はホームページ作成入門中です。</p>
<h2>ブラウザの比較</h2>
<table>
@taishi41228
taishi41228 / index.js
Created September 10, 2016 13:35
requirebin sketch
class Go {
constructor(){
this.co = document.getElementById('cvs').getContext('2d');
this.co.fillStyle = 'red';
this.co.fillRect(50, 50, 100, 100);
}
draw(ctx){
this.co.globalCompositeOperation = 'destination-over';
this.co.fillStyle = 'green';
this.co.fillRect(0, 0, 600, 250);
@taishi41228
taishi41228 / index.js
Last active September 10, 2016 14:19
requirebin sketch
class Go {
constructor(numoflines){
this.ctx = document.getElementById('gocanv').getContext('2d');
this.numoflines = numoflines;
this.padding = 10;
this.go_pad = 20;
this.go_width = this.go_width = 500 - (this.padding + this.go_pad) * 2;
this.space = this.go_width / (this.numoflines - 1);
}
star(x, y){
@taishi41228
taishi41228 / index.php
Last active August 16, 2016 14:02
Fuel
<?php
class Controller_Index extends Controller
{
public function action_index()
{
return Response::forge(View::forge('index'));
}
public function action_entry()
{
@taishi41228
taishi41228 / index.js
Last active February 13, 2017 04:58
ホームページ制作入門用 ソース
var app = new Vue({
el: "#issues",
data: {
repository: "vuejs/vue",
searchText: "",
issues: []
},
created: function () {
this.fetchData()
},
@taishi41228
taishi41228 / AppDelegate.h
Created March 16, 2013 08:49
文字列が等しいかどうか判断する簡単なプログラム ref: http://qiita.com/items/bd55613d94283a9f7dc0
#import <Cocoa/Cocoa.h>
@interface AppDelegate : NSObject <NSApplicationDelegate> {
IBOutlet NSTextField* field1;
IBOutlet NSTextField* field2;
IBOutlet NSTextField* result;
}
@property (assign) IBOutlet NSWindow *window;
@taishi41228
taishi41228 / file0.txt
Created March 10, 2013 04:43
PHP入門 配列(array) 基本編 ref: http://qiita.com/items/b63fb1797aa1be0b3cd0
$array = array(1, 2, 3, 4, 5);