540377D 石川貴大 Mimesチーム
- 初級: 76~79%
- 中級: 54~57%
- 上級: 12~14%
for i in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do | |
echo "userspace" | sudo tee $i; | |
done | |
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies | |
for i in /sys/devices/system/cpu/cpu*/cpufreq/scaling_setspeed; do | |
echo 2601000 | sudo tee $i; | |
done |
#ifndef _GNU_SOURCE | |
#define _GNU_SOURCE | |
#endif | |
#include <dlfcn.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <iostream> | |
#include <fstream> | |
#include <string> |
#ifndef _GNU_SOURCE | |
#define _GNU_SOURCE | |
#endif | |
#include <dlfcn.h> | |
#include <stdio.h> | |
// #include <iostream> | |
using malloc_type = void*(*)(size_t); |
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 { |
class Klass: | |
def __init__(self): | |
print("instanciated") | |
def __del__(self): | |
print("gabage collected") | |
def __enter__(self): | |
print("__enter__") | |
return self |
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(); |
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") |
program pi_from_sectional_measurement | |
!$ USE OMP_LIB | |
implicit none | |
!$ integer threads_count, thread_number | |
! Const | |
real(8), parameter :: pi25 = 3.141592653589793238462643D0 |
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 |