Skip to content

Instantly share code, notes, and snippets.

View supermomonga's full-sized avatar
🏠
Working from home

supermomonga supermomonga

🏠
Working from home
View GitHub Profile
@supermomonga
supermomonga / keybase.md
Created March 3, 2019 07:05
keybase.md

Keybase proof

I hereby claim:

  • I am supermomonga on github.
  • I am supermomonga (https://keybase.io/supermomonga) on keybase.
  • I have a public key whose fingerprint is B8FE EB01 DE3C 95A6 E391 659D 850C A2A3 EA5D 5120

To claim this, I am signing this object:

syntax enable
set number
set ruler
set list
set listchars=tab:>-,trail:-,nbsp:%,extends:>,precedes:<,eol:<
set incsearch
set hlsearch
set nowrap
set showmatch
@supermomonga
supermomonga / zenbook-3-comparison.mkd
Last active June 6, 2017 05:01
Zenbook 3 comparison

Zenbook 3 comparison

  • 括弧内の値は Zenbook 3 との差分
- Zenbook 3 Zenbook 3 Deluxe Mi notebook Air 13.3' MacBook Air 11' Surface Laptop Razer Blade Stealth
CPU KabyLake Core i7-7500U Core i7-7500U Core i5-6200U Core i7 1.7GHz Core i7 Core i7-7500U
RAM 16GB 16GB 8GB 8GB 16GB 16GB
Storage 512GB SSD 1TB SSD 256GB SSD 256GB SSD 512GB SSD 1TB SSD
Display size 12.5inch 14 inch(+1.5inch) 13.3 inch 11.6 inch 13.5inch 12.5inch
@supermomonga
supermomonga / file0.txt
Last active August 29, 2015 14:20
JRubyFXのfxml_rootをjarパッケージング時にも適切に動作する形で設定する ref: http://qiita.com/supermomonga/items/210ab629da519381070b
fxml_root File.dirname(__FILE__)
class KawaiiController
include JRubyFX::Controller
fxml "輿水幸子.fxml"
end
@supermomonga
supermomonga / application_controller.rb
Last active August 29, 2015 14:20
JRubyFXでコンストラクタに引数を渡しつつControllerを切り替える ref: http://qiita.com/supermomonga/items/20464ed426c7e4bdb7a4
class ApplicationController
include JRubyFX::Controller
def move klass, *args
@stage.fxml klass, initialize: args
@stage.show
end
end
@supermomonga
supermomonga / ascii_art.rb
Last active August 29, 2015 14:15
Rubyによる不適切なFizzBuzzの世界 ref: http://qiita.com/supermomonga/items/b8faf7441ada9c310282
__,__,f,i,z,z,__,__,b,u,z,z,__,__=DATA.map(&method(:eval)).map &:size
F = (f* i+z+z+b+u+z+z) *(i**i*i-i**z)/i
I = (f**i+z+z+b+u+z+z) +i**i+i**z
Z = (f**i+z+z+b+u+z+z) +f*i+i
Z
B = (f* i+z+z+b+u+z+z) *(i**i*i-i**z)/i-i**i
U = (f**i+z+z+b+u+z+z) +f*i-i-i**z
Z
Z
((([[f,i,z,z,b,u,z,z].inject(&:*)]*i).inject(&:**))..(f**i+z+z+b+u+z+z)).map{|fizzbuzz|
@supermomonga
supermomonga / PHP
Last active October 17, 2017 09:54
PHPとしても実行できるRubyの書きかた ref: http://qiita.com/supermomonga/items/79d599b4ed8b385870b0
p <<PHP_VERSION
<?php
PHP_VERSION
;print "\033[1F\033[1M";
def hr
puts '-' * 50
end
a = [10,100,1000].each_with_object(2)
b = [10,100,1000].map{|x|[x,2]}.map
p a.class
p b.class
source 'https://rubygems.org'
source 'https://rails-assets.org'
gem 'rails', '4.1.6'
gem 'sass-rails', '~> 4.0.3'
gem 'slim-rails'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'omniauth'
#!/bin/sh
## EC CUBE set permission
chmod -R o+w html/install/temp/
chmod -R o+w html/user_data/
chmod -R o+w html/upload/
chmod -R o+w data/class/
chmod -R o+w data/cache/
chmod -R o+w data/logs/
chmod -R o+w data/downloads/
chmod -R o+w data/upload/