「情報系学生ならこれぐらい知ってるやろ〜」って感じの知識を纏めれば人生を無駄にする人も少なくなると思います。
マサカリ歓迎します。共著者も募集します。自分もそこまで知識がある訳じゃないので。
「開発」の話をしているという話を含めると良いかも?(ハードウェアの話はしない)
文量は必要最低限にすると良いのではないかと思います。
余計な知識と判定されて読み飛ばすとかされます。
- ググれ
# coding:utf-8 | |
import random | |
class BBOP: | |
def __init__(self, expect, words, fixed): | |
self.expect = expect | |
self.words = words | |
self.fixed = fixed | |
def random(self): |
##レベルについて
現在のレベルの変数をlevelとすると、次のレベルまでの総ポイント数(nextPoint)は
nextPoint = (level+1)*7*level/2+1;
で与えられます。何でこんな仕様にしたかはわかりません。遥か昔に忘れました。
つまり、例えば現在2Lvでおひるねポイントが9の場合は、(2+1)72/2+1=22なので、あと13ポイントで3Lvに見事レベルアップ、というわけです。
##おひるねできる時間と獲得ポイントについて
BITS 32 | |
mov eax, 4 | |
mov ebx, 1 | |
push 0x0a21646c | |
push 0x726f576f | |
push 0x6c6c6548 | |
mov ecx, esp | |
mov edx, 12 | |
int 0x80 |
#はるアイコンMOD鯖 ##現状 ###バージョン等
###前提MOD
###MODリスト初版作成 @lastarrow21 初期リスト
# -*- encoding: utf-8 -*- | |
n = 0 | |
input = gets.to_i | |
while n < input do | |
print "「" | |
print "てら" | |
n.times do | |
print "あり" | |
end | |
print "w」" |
require "cgi" | |
Plugin.create(:mikutter_update_name) do | |
on_mention do |s, msgs| | |
msgs.each do |m| | |
if CGI.unescapeHTML(m.message.to_s) =~ /\A@#{Service.primary.user} update_name (.+)\z/ | |
n = $1 | |
(Service.primary/"account/update_profile").message(name: n) | |
Service.primary.post(message: ".@#{m.message.user} さんにより名前が #{n.inspect} に変更されました") | |
end |
import cv2 | |
import numpy as np | |
def create_template(): | |
templates = [] | |
for text in list('0123456789'): | |
img = np.zeros((200,200,1), dtype=np.uint8) | |
cv2.putText(img, text, (100, 100), cv2.FONT_HERSHEY_DUPLEX, 2, 255, 5) | |
contours, _ = cv2.findContours(img.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE) | |
x, y, w, h = cv2.boundingRect(contours[0]) |
# -*- encoding: utf-8 -*- | |
require 'rubygems' | |
require 'tweetstream' | |
require 'twitter' | |
require 'prime' | |
require 'date' | |
require './key.rb' | |
Twitter.configure do |config| | |
config.consumer_key = Const::CONSUMER_KEY |