This Gist was automatically created by Carbide, a free online programming environment.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Car | |
def initialize(carname) | |
@name = carname | |
end | |
def dispName | |
print(@name) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const electron = require('electron'); | |
const { | |
app, | |
BrowserWindow | |
} = electron; | |
const fs = require("fs"); | |
app.on('ready', function () { | |
function isExistFile(file) { | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>ほげほげのホームページ トップ</title> | |
</head> | |
<body> | |
<h1>ほげほげのホームページ</h1> | |
<p>こんにちは、今はホームページ作成入門中です。</p> | |
<h2>ブラウザの比較</h2> | |
<table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Controller_Index extends Controller | |
{ | |
public function action_index() | |
{ | |
return Response::forge(View::forge('index')); | |
} | |
public function action_entry() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = new Vue({ | |
el: "#issues", | |
data: { | |
repository: "vuejs/vue", | |
searchText: "", | |
issues: [] | |
}, | |
created: function () { | |
this.fetchData() | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Cocoa/Cocoa.h> | |
@interface AppDelegate : NSObject <NSApplicationDelegate> { | |
IBOutlet NSTextField* field1; | |
IBOutlet NSTextField* field2; | |
IBOutlet NSTextField* result; | |
} | |
@property (assign) IBOutlet NSWindow *window; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$array = array(1, 2, 3, 4, 5); |
NewerOlder