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
| use core::ops::RangeInclusive; | |
| pub fn integral<F: Fn(f64) -> f64>(range: &RangeInclusive<f64>, f: F, err: f64) -> f64 { | |
| let memo = [trapezoid_area(range, &f)]; | |
| romberg(range, &f, 2, err, &memo) | |
| } | |
| fn romberg<F: Fn(f64) -> f64>( | |
| range: &RangeInclusive<f64>, |
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 * as http from 'http' | |
| interface List { | |
| /** 番組 */ | |
| readonly list: { | |
| readonly [key: string]: Program | |
| } | |
| } | |
| interface DescriptionList { |
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 json | |
| import urllib.parse | |
| import urllib.request | |
| class OMIM: | |
| def __init__(self, api_key): | |
| self.api_key = api_key | |
| self.base_url = "http://api.omim.org/api/" | |
| def entry(self, mim_number, params = {}): |
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
| // Type definitions for vuejs 1.0.21 | |
| // Project: https://github.com/vuejs/vue | |
| // Definitions by: odangosan <https://github.com/odangosan>, kaorun343 <https://github.com/kaorun343> | |
| // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | |
| interface Array<T> { | |
| $remove(item: T): Array<T>; | |
| $set(index: any, val: T): T; | |
| } |
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
| // Type definitions for p2.js v0.7.1 | |
| // Project: https://github.com/processing/p5.js | |
| // Definitions by: kaorun343 <https://github.com/kaorun343> | |
| // Definitions: https://github.com/borisyankov/DefinitelyTyped | |
| declare namespace p5js { | |
| interface p5Prototype { | |
| // core/constants.js | |
| // GRAPHICS RENDERER | |
| P2D: string; |
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
| memory[55001] -> 1 | |
| n -> 0 | |
| while n < 10000 | |
| memory[n] -> 0 | |
| n -> n + 1 | |
| background() | |
| memory[55000] -> 0 |
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
| interface Array<T> { | |
| $remove(item: T): Array<T>; | |
| $set(index: number, val: T): T; | |
| } | |
| declare namespace vuejs { | |
| interface PropOption { | |
| type?: any; | |
| required?: boolean; |
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
| set number | |
| set title | |
| set ambiwidth=double | |
| set tabstop=4 | |
| set expandtab | |
| set shiftwidth=4 | |
| set smartindent | |
| set list | |
| set listchars=tab:»-,trail:-,eol:↲,extends:»,precedes:«,nbsp:% | |
| set nrformats-=octal |
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
| div#app.container | |
| .panel.panel-default | |
| .panel-heading | |
| h3.panel-title YouTube API | |
| .panel-body | |
| youtube(v-repeat="list") | |
| .panel-footer | |
| button.btn.btn-default(type="button", v-on="click: check") add | |