IQが1なので書き忘れた上に書こうと思っていた内容を完全に忘れてしまいました
This file contains 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
#include <fcntl.h> | |
#include <termios.h> | |
#include <unistd.h> | |
#include <atomic> | |
#include <cerrno> | |
#include <chrono> | |
#include <cstdlib> | |
#include <cstring> | |
#include <functional> |
This file contains 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
notifications: | |
email: false | |
sudo: false | |
language: c | |
matrix: | |
fast_finish: true | |
include: |
This file contains 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
(require 'package) | |
(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos)) | |
(not (gnutls-available-p)))) | |
(proto (if no-ssl "http" "https"))) | |
(when no-ssl | |
(warn "\ | |
Your version of Emacs does not support SSL connections, | |
which is unsafe because it allows man-in-the-middle attacks. | |
There are two things you can do about this warning: | |
1. Install an Emacs version that does support SSL and be safe. |
This file contains 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
[Trace - 06:10:12 PM] Sending request 'initialize - (1)'. | |
Params: { | |
"processId": 78866, | |
"rootPath": "/opt/test", | |
"clientInfo": { | |
"name": "vscode", | |
"version": "1.41.1" | |
}, | |
"rootUri": "file:///opt/test", | |
"capabilities": { |
This file contains 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
clear | |
data = [1 2 2 1 1 4 3 9]; | |
data(data<cummax(data))=[] | |
% -> [1 2 2 4 9] |
This file contains 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
clear | |
load saizeriyadb.mat | |
maxtotalprice = 1000; | |
selection = optimvar('selection', saizeriyadb.name, 'Type', 'integer', 'LowerBound', 0, 'UpperBound', 1); | |
problem = optimproblem('ObjectiveSense', 'maximize', 'Objective', dot(selection, saizeriyadb.calorie)); | |
problem.Constraints.constr = dot(selection, saizeriyadb.price) / maxtotalprice <= 1; |
This file contains 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
clear | |
close all | |
filename = 'MM2017HX_pre.png'; | |
url = ['http://www.ntf.or.jp/mouse/micromouse2017/' filename]; | |
if ~exist(filename, 'file') | |
websave(filename,url); | |
end | |
IM = imread(filename); |
This file contains 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
# Original Maintainer: James Duley <jagduley gmail> | |
pkgname=gcc-arm-none-eabi-bin | |
pkgver=4.8_2014_q3 | |
_pkgname=gcc-arm-none-eabi | |
_pkgver=${pkgver//_/-}-update | |
_pkgvershort=${_pkgver%-*} | |
_pkgvershort=${_pkgvershort/-q/q} | |
_pkgdate=20140805 | |
pkgrel=1 | |
pkgdesc="GNU Tools ARM Embedded Processors (binary distribution, includes GDB and newlib)" |
This file contains 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
Service.primary.followers(screen_name: "ユーザ名").next { |users| | |
users.each { |user| | |
(Service.primary.twitter/:blocks/:create).json(screen_name: user.idname) | |
# puts "blocked: " + user.idname | |
} | |
} |
NewerOlder