Skip to content

Instantly share code, notes, and snippets.

View sei0o's full-sized avatar

Seio Inoue sei0o

  • The University of Tokyo (eeic2023)
  • Tokyo, Japan (UTC+9)
  • 11:03 (UTC +09:00)
View GitHub Profile
@sei0o
sei0o / get_class_variables.rb
Created March 6, 2014 00:38
外部のmoduleから別のmoduleのクラス変数にアクセス(定数じゃなくて) | module間で変数を共有
module A
@@hoge = 300
end
module B # Aのクラス変数をGet
piyo = A.module_eval { class_variable_get :@@hoge }
p piyo # => 300
end
@sei0o
sei0o / bui-select.scss
Last active August 29, 2015 13:56
BlackUI - select element style ( CSS3: appearance, transition, text-overflow ... )
.bui_select{
display:inline;
position:relative;
&:after {
content: "";
position: absolute;
top: 50%;
right: 20px;
display: block;
width: 0;
@sei0o
sei0o / rails_form_issue.css
Created February 9, 2014 01:49
Railsのform_forやbutton_toでauthenticity_tokenとかを含んだdivが邪魔
form > div:first-child {
display: none !important;
}
@sei0o
sei0o / iPhone5SC.countdown.embed.html
Last active December 23, 2015 01:39
iPhone 5S/C Countdownの埋め込みタグです。 http://acidoor.blog.fc2.com/blog-entry-21.html
<iframe src="http://jsrun.it/sei0o/icount" style="width:100%;overflow:hidden;" height="270" seamless></iframe>
body{
margin:0;
padding:0;
}
a,a:link,a:hover,a:active,a:focus{
color:black;
}
.icount,.icount .cbox{
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="iPhone5SC.countdown.css">
<link href='http://fonts.googleapis.com/css?family=Noto+Sans' rel='stylesheet' type='text/css'>
<!--<script src="iPhone5SC.countdown.js"></script>-->
</head>
<body>
<div class="icount">
<a href="http://apple.com/jp/iphone/">