Skip to content

Instantly share code, notes, and snippets.

x = int(input())
m = 1
for i in range(1, x):
for j in range(2, x):
k = pow(i, j)
if k <= x:
m = max(k, m)
else:
break
a, b, c, d = map(int, input().split())
f = False
if abs(a - c) <= d:
f = True
if abs(a-b) <= d and abs(b-c) <= d:
f = True
if f:
print("Yes")
else:
@showyou
showyou / permutation.py
Created April 1, 2018 12:33
三菱UFJ銀行
import numpy as np
arrays = np.array([ '三','菱', 'U', 'F','J', '銀', '行'])
''.join(np.random.permutation(arrays))
# 'JF銀菱行三U'
def func(l):
l[0] = '1'
l = [0,1,2]
func(l)
print l # ['1', 1, 2]
#! -*- coding:utf-8 -*-
import random
sonpo_parts = [u"損保", u"ジャパン", u"日本", u"興亜", u"ひまわり"]
random.shuffle(sonpo_parts)
print u"".join(sonpo_parts) + u"生命"
http://www.pinkoi.com/page/pinkoier
Pinkoi is looking for an experienced content master to join our marketing team and help Pinkoi launch in Japan. You will be responsible for creating thought leadership of Pinkoi, introducing Pinkoi as a brand and acquiring users via creative online campaigns in Japan.
Pinkoiでは、私たちのマーケティングチームに入り、日本でのPinkoiを立ち上げるを手伝いしてくれる、コンテンツマスター(経験者)を募集しています。Pinkoiでのソートリーダーシップを作ること、日本でPincoiをブランドとして広めてもらうこと、そして創造的なオンラインキャンペーンを通じてユーザを獲得することをお願いします。
We're looking for someone who's passionate about sharing great stories and producing engaging contents and being capable of initiating creative online campaigns, blogger outreach and online partnership. You'll help us plan, research, and create contents for Pinkoi and manage Pinkoi's social media profiles (facebook, twitter) in Japan.
私達は素晴らしいストーリーを共有し、魅力のあるコンテンツを作り、創造的なオンラインキャンペーンを始めることに情熱のある方を探しています。Pinkoiのコンテンツにおけるプランニング、調査、作成と、日本でのPincoiのソーシャルメディア(facebook, twitter)の管理をお願いしたいです。
・参考
http://metasearch.sourceforge.jp/wiki/index.php?Hadoop%A5%BB%A5%C3%A5%C8%A5%A2%A5%C3%A5%D7
http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH5/latest/CDH5-Installation-Guide/cdh5ig_cdh5_install.html?scroll=topic_4_4_1_unique_1__section_dfx_p51_nj_unique_1
・手順
OpenJDKのインストール。本来はOracle JDKの方がいいかもね。
$ sudo apt-get install openjdk-7-jdk
CDH5リポジトリの設定
$ wget http://.../cdh5-repository_1.0_all.deb(ここのURLは上のマニュアル見て変えること)
sudo apt-get install ant gcc g++ libkrb5-dev libmysqlclient-dev libssl-dev libsasl2-dev libsasl2-modules-gssapi-mit libsqlite3-dev libtidy-0.99-0 libxml2-dev libxslt-dev libldap2-dev python-dev python-simplejson python-setuptools
@showyou
showyou / gist:6152676
Last active December 20, 2015 15:18
艦これ絵師の、艦これ以外のタグ なんか円グラフにしたいとこっすね 23:14 母数増やした
オリジナル 1041
東方 922
R-18 894
漫画 663
落書き 469
おっぱい 401
初音ミク 344
女の子 334
アイドルマスターシンデレラガールズ 330
魔法少女まどか☆マギカ 317
eta = np.array([1, 0.01]);
theta0 = 0.5;
N = 30;
import numpy as np
xl = linspace(-1,1,N)
xs = np.zeros((2, N*N));
for x1 in xrange(0,N):
for x2 in xrange(0, N):
j = x2*N + x1;