Skip to content

Instantly share code, notes, and snippets.

View ujihisa's full-sized avatar

ujihisa ujihisa

View GitHub Profile
# See line 5
class C
using(Module.new do
refine C.singleton_class do
def secret
123
end
end
end)
def parse(str, constants)
parse_(RubyVM::AbstractSyntaxTree.parse(str), constants)
end
def parse_(node, constants)
case node.type
when :SCOPE
parse_(node.children[2], constants)
when :LIST
node.children[..-2].map { parse_(_1, constants) }
require 'csv'
def least_square(ys)
ave_x = ys.size / 2.0
ave_y = ys.sum / ys.size.to_f
a = ys.zip(0..).sum {|y, i| (i - ave_x) * (y - ave_y) } / ys.zip(0..).sum {|_, i| (i - ave_x) ** 2 }
b = ave_y - a * ave_x
[a, b]
end

UjiTech

We, Tatsuhiro and Katie, serve the following tech consulting and training services.

  • Software/Hardware Consulting
    • Resolve particular web service issues that customer has, and other related things
    • Advise computer hardware setup, particularly for software engineers who work remotely at home
      • If if need we build up for our customer
  • Software development
  • Anything commissined for customer (commission-based contract charge)
�a
<head>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="prototype.js"></script>
</head>
<body>
<div>
<canvas id="canvas-display" width="400" height="400" style="border: solid 1px"></canvas>
</div>
<br/>

GenericFactoryGame 1.0.0-preview 攻略

序盤 (credit 20未満)

  • 黒字化は不可能
  • 原料 (ingredient) を割高で購入しないといけないので、どんなに頑張っても赤字が確定している
  • でもめげずに品質 (production quality) の高い商品を輸出し続けて、実績でもって信頼度 (credit) を高めていくしかない

中盤 (credit 20以上 〜 黒字化まで)

puts 'フリルレタス'.chars.permutation(6).map(&:join)

家族などでのプライベートな会話を想定しています。

  • 自分の全発言を検索できて (つまりSlackの個人アカウントのようにログ保存上限件数が決まっているもの以外)
  • 日本語の漢字変換ができて (つまりFacebook MessengerやTwitter以外で)
  • マルチプラットフォームで (web/iOS/Android)
  • 電話を必須とせず (つまりwhatsappやtwitter以外で)
  • emojiを入力でき (つまりDiscord以外で)
  • サービス終了が予告されていない (つまりGoogle Hangouts以外で)
  • 写真をアップロードできる
  • Perception (遠距離攻撃のみ。黒魔道士系)

    • rifle, spear, (rocket launcher, grenade)
      • 近距離攻撃が弱く、防御も弱いので、敵に近づかれると即アウト
    • animal tracker (食糧問題解決)
    • lucky looter (探索のボーナスup)
      • PER単体だと探索自体は困難
    • salvage operations (レンチ++)
  • Strength (近距離攻撃系、ただし防御低め)

  • shotgun, club, sledgehammer