Skip to content

Instantly share code, notes, and snippets.

type modA = typeof import('./module-a');
function call(mod: modA) {
const src = 'hello';
const result = mod.id(src);
console.log(`${src} -> ${result}`);
}
async function start() {
console.log('start');
function withIndex(list){
for(let i = 0; i < list.length; i++){
if(i % 5 !== 0){
list[i].value = list[i].value * 2;
}
}
}
function withForEach(list){
list.forEach((item, index) => {

アンチハラスメントポリシー

We are JavaScripters!は「安心して発信できる」環境を大切にしています。マサカリを禁止しているのは、この環境を保つためです。2周年目を迎えるにあたり、より安心して発信できる会であり続けるため、アンチハラスメントポリシーを定めました。

以下に挙げる行為は、代表的なハラスメント行為です。会場内だけでなく、SNSやブログなどでWe are JavaScripters!について発信される際にも、ハラスメント行為がないようにご留意ください。なお、ハラスメント行為はこれに止まるものではありません。

  • ジェンダー、性自認やジェンダー表現、性的指向、障碍、容貌、体型、人種、民族、年齢、宗教あるいは無宗教についての攻撃的なコメントをすること
  • 公共のスペースで性的な画像を掲示すること。
  • 脅迫、ストーキング、付きまとい。または、それらを計画すること
  • 不適切な身体的接触
#[wasm_bindgen]
pub fn count(max: i32) -> i32 {
let mut res = 0;
for _i in 0..max {
res = res + 1;
}
res
}
const example = ["+", 1, 2, 3];
const builtin = {
"+": (a, b) => a + b,
};
const resolve = symbol => builtin[symbol];
const isUndefined = value => value == null;
const car = list => list[0];
@chikoski
chikoski / abstract.md
Last active September 28, 2016 00:58
Talk outlines for Emscripten Night!! (http://connpass.com/event/40564/)

WebAssembly: a new virtual machine for the Web

Recent years, we are building large scaled apps with Web technlogies. They consist of more millions lines of JavaScript code and various kind of assets to be managed by JS programs. This trend has continued since re-discovery of AJAX and Web APIs' evolution accelerate it.

In this context, we need the technologies which allows us to build and run such large scaled Web apps efficiently.

@chikoski
chikoski / 20160809-handson.md
Last active August 25, 2016 07:12
links to the resources used in perfumance tuning handson in 2016/08/09
@chikoski
chikoski / aho.py
Last active April 14, 2016 06:11
aho.py
print("\n".join(map(lambda n: "Aho" if "3" in n else n, map(lambda n: str(n), range(0, 101)))))