Skip to content

Instantly share code, notes, and snippets.

@moomoo-ya
moomoo-ya / deathmarch.py
Created November 4, 2020 04:40
DeathMarch: Destribute tasks
import pulp
# 問題の定義(最小を探す)
problem = pulp.LpProblem('Distribute Tasks', pulp.LpMinimize)
# 変数の定義
# 名前, 労働時間下限, 労働時間上限, 型
hiyoko = pulp.LpVariable('Hiyoko', 0, None, 'Integer')
tsuyo = pulp.LpVariable('TsuyoTsuyo', 0, None, 'Integer')
manager = pulp.LpVariable('Manager', 0, None, 'Integer')
@moomoo-ya
moomoo-ya / keymap.c
Last active January 24, 2018 04:42
qmk_firmware for Let's split
#include "lets_split.h"
#include "action_layer.h"
#include "eeconfig.h"
extern keymap_config_t keymap_config;
// Each layer gets a name for readability, which is then used in the keymap matrix below.
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
// Layer names don't all need to be of the same length, obviously, and you can also skip them
// entirely and just use numbers.
@moomoo-ya
moomoo-ya / .eslintrc
Created February 28, 2017 02:40
Simple .eslintrc
{
"extends": "eslint:recommended",
"plugins": [
],
"rules": {
"strict": ["warn"],
"indent": ["error", "tab"],
"semi": ["error", "always"],
"no-console": 0
},
@moomoo-ya
moomoo-ya / notofontsjp.css
Created January 13, 2016 06:08
Noto Fonts CJK JPをWebフォントとして使うときのCSSファイル。
@import url(http://fonts.googleapis.com/earlyaccess/notosansjapanese.css);
.notosans.thin {
font-family: 'Noto Sans Japanese';
font-weight: 100;
}
.notosans.light {
font-family: 'Noto Sans Japanese';
font-weight: 200;
@moomoo-ya
moomoo-ya / style.css
Last active September 2, 2015 03:59
Twenty Fifteen: スタイルシート(游ゴシック体、ヒラギノ、メイリオ)
/*
Theme Name: Twenty Fifteen
Theme URI: https://wordpress.org/themes/twentyfifteen/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Our 2015 default theme is clean, blog-focused, and designed for clarity. Twenty Fifteen's simple, straightforward typography is readable on a wide variety of screen sizes, and suitable for multiple languages. We designed it using a mobile-first approach, meaning your content takes center-stage, regardless of whether your visitors arrive by smartphone, tablet, laptop, or desktop computer.
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, blue, gray, pink, purple, white, yellow, dark, light, two-columns, left-sidebar, fixed-layout, responsive-layout, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
@moomoo-ya
moomoo-ya / app.js
Last active October 19, 2015 02:23
Node.js + Express.js + express-sessionでセッションにデータ格納する方法 ref: http://qiita.com/moomoo-ya/items/00f89e425a3034b8ea14
app.use('/login', login); // 追加
app.use('/', sessionCheck, routes); // sessionCheckを前処理に追加
app.use('/users', users);
@moomoo-ya
moomoo-ya / index.js
Last active November 19, 2015 02:22
LoopBackでSocket.IOを使う方法 ref: http://qiita.com/moomoo-ya/items/7762e8ef634781f9ebaa
module.exports = function (app, io) {
// 実際の処理が記述されたファイルを読み込む
require('./pink-noise')(app, io);
// 機能が増えたらここに追記していく
};
@moomoo-ya
moomoo-ya / app.ts
Created March 11, 2015 10:56
Express.js Sample by TypeScript
import express = require('express');
import http = require('http');
var app = express();
app.set('port', process.env.PORT || 3000);
app.get('/', function(req: express.Request, res: express.Response) {
res.send('Hello, world!');
});
@moomoo-ya
moomoo-ya / jquery.nicoscroll.css
Created October 22, 2014 11:06
某動画サイト風テロップスクロールjQueryプラグイン
html {
overflow: hidden;
}
.telop {
font-weight: bold;
font-size: 48pt;
white-space: nowrap;
position: absolute;
}
@moomoo-ya
moomoo-ya / Vagrantfile
Created August 25, 2014 04:34
my Vagrantfile.(not tested)
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "centos7"
config.vm.box_url = "https://f0fff3908f081cb6461b407be80daf97f07ac418.googledrive.com/host/0BwtuV7VyVTSkUG1PM3pCeDJ4dVE/centos7.box"
config.vm.provision :shell, :path => "provision.sh"
#config.vm.network :forwarded_port, host: 80, guest: 3000
config.vm.network :forwarded_port, host: 8080, guest: 3000
end