This file contains hidden or 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
-- データベースの作成(既存の場合はスキップ) | |
CREATE DATABASE OutputClauseDemo; | |
GO | |
USE OutputClauseDemo; | |
GO | |
-- Customersテーブルの作成 | |
CREATE TABLE Customers ( | |
CustomerID INT IDENTITY(1,1) PRIMARY KEY, |
This file contains hidden or 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 arry1 = [ | |
{id: 1, name: 'Tom'}, | |
{id: 2, name: 'Bob'}, | |
{id: 3, name: 'Jack'} | |
]; | |
const arry2 = [ | |
{id: 3, name: 'Jack'}, | |
{id: 4, name: 'Robert'}, | |
{id: 5, name: 'Mary'} |
This file contains hidden or 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 Equipment | |
{ | |
static Equipment EMPTY = new Equipment("装備なし", 0, 0, 0); | |
private readonly string name; | |
private readonly int price; | |
private readonly int defence; | |
private readonly int magicDefence; |
This file contains hidden or 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
public class HitPoint | |
{ | |
private const int MIN = 0; | |
private const int MAX = 999; | |
private readonly int value = 0; | |
public HitPoint(int value) | |
{ | |
if (value < MIN) | |
{ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 math | |
import time | |
from joblib import Parallel, delayed | |
t1 = time.time() | |
# 階乗を求める math.factorial(5) => 120 (1x2x3x4x5) | |
result = [math.factorial(x) for x in range(8000)] | |
t2 = time.time() | |
print(t2-t1) # 6.57010817527771 |
This file contains hidden or 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
<!-- Styles --> | |
<style> | |
#chartdiv { | |
width: 100%; | |
height: 500px; | |
max-width: 100% | |
} | |
</style> | |
<!-- Resources --> |
This file contains hidden or 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 fnFactory = function() { | |
let n = 0; | |
function count() { | |
alert(n); | |
n++; | |
} | |
return count; | |
} |
NewerOlder