540377D 石川貴大 Mimesチーム
- 初級: 76~79%
- 中級: 54~57%
- 上級: 12~14%
| const str = "some awesome sentence"; | |
| const formatted_str = _.map( | |
| _.replace(str, /(\r\n){3,}|\r{3,}|\n{3,}/g, '\n\n').trim().split('\n'), | |
| (line, i) => <span>{line}<br /></span> | |
| ); |
| #! /usr/bin/env ruby | |
| require "matrix" | |
| # training data | |
| v1 = [Vector[1, 3, 0], 1] | |
| v2 = [Vector[1, 4, 3], 1] | |
| v3 = [Vector[1, 6, 4], 1] | |
| v4 = [Vector[1, 1, 2], 2] | |
| v5 = [Vector[1, 3, 5], 2] | |
| v6 = [Vector[1, 4, 6], 2] |
| const phantom = require("phantom") | |
| const Papa = require("papaparse") | |
| const fs = require("fs") | |
| // input data | |
| const dataRows = Papa.parse(fs.readFileSync("URLs.csv", "utf8")).data | |
| dataRows.shift() // title row | |
| const rowsCount = dataRows.length | |
| // init model data |
| program pi_from_sectional_measurement | |
| !$ USE OMP_LIB | |
| implicit none | |
| !$ integer threads_count, thread_number | |
| ! Const | |
| real(8), parameter :: pi25 = 3.141592653589793238462643D0 |
| const node = document.getElementById("contenteditable-id") | |
| node.addEventListener("keypress", (e) => { | |
| if (e.keyCode === 13) { | |
| document.execCommand("formatBlock", false, "p") | |
| } | |
| }) | |
| // Wrap by h2 tag | |
| // document.execCommand("formatBlock", false, "h2") |
| import jp.ne.kuramae.torix.lecture.ms.core.MineSweeper; | |
| import jp.ne.kuramae.torix.lecture.ms.core.Player; | |
| public class MimesProject { | |
| static public void main(String[] args) { | |
| int gamesCount = 1000; | |
| int clearedCount = 0; | |
| for (int i = 0; i < gamesCount; i++) { | |
| Player player = new MimesPlayer(); |
| class Klass: | |
| def __init__(self): | |
| print("instanciated") | |
| def __del__(self): | |
| print("gabage collected") | |
| def __enter__(self): | |
| print("__enter__") | |
| return self |
| public class MultithreadDemo { | |
| public static void main(String[] args) { | |
| for (int i = 0; i < 10; i++) { | |
| Task task = new Task(); | |
| task.start(); | |
| } | |
| } | |
| } | |
| class Task extends Thread { |
| #ifndef _GNU_SOURCE | |
| #define _GNU_SOURCE | |
| #endif | |
| #include <dlfcn.h> | |
| #include <stdio.h> | |
| // #include <iostream> | |
| using malloc_type = void*(*)(size_t); |