This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# GitLab avator icon変更パッチ | |
# | |
Rails.configuration.to_prepare do | |
ApplicationHelper.class_eval do | |
def gravatar_icon(user_email = '', size = 40) | |
return unless user_email | |
icon_site_host = "https://iconsite.example.com" | |
user_email.strip! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.json | |
reading-image.png |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function OnDrawGizmos() { | |
var collider : SphereCollider = GetComponent(SphereCollider); | |
var scale = transform.localScale; | |
Gizmos.color = Color.yellow; | |
Gizmos.DrawWireSphere( | |
transform.TransformPoint(collider.center), | |
Mathf.Max(scale.x, scale.y, scale.z) * collider.radius); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function LateUpdate () { | |
if(!target) { | |
print("non"); | |
return; | |
} | |
var wantedRotationAngle = target.eulerAngles.y; | |
var wantedHeight = target.position.y + height; | |
var currentHeight = transform.position.y; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require: | |
- play | |
- hina0118 -> play-doma master | |
repositories: | |
- github: | |
type: http | |
artifact: "https://github.com/[organisation]/[module]/zipball/[revision]?.zip" | |
contains: | |
- hina0118 -> * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyS2Utils { | |
protected Logger logger = LoggerFactory.getLogger("test"); | |
public static void dumpComponent() { | |
S2Container s2Container = (S2Container) SingletonS2ContainerFactory | |
.getContainer().getRoot(); | |
Object result = | |
Traversal.forEachComponent( | |
s2Container, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
import org.junit.Test; | |
import play.Logger; | |
import play.test.UnitTest; | |
public class HogeTest extends UnitTest { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# レイアウト付きで静的ページを表示させるコントローラ | |
# | |
# routes.rb | |
# map.connect "/hoge/*paths", :controller => 'static_page', :action => 'index', :subdir => 'hoge' | |
# | |
class StaticPageController < ApplicationController | |
#viewファイルの配置場所を別途用意する | |
STATIC_VIEWS_BASE = "app/static_views" | |
append_view_path STATIC_VIEWS_BASE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[~/dev/test/gittest]% export SP=file://${HOME}/dev/test/gittest/GitTest.git | |
[~/dev/test/gittest]% git init --bare GitTest.git | |
Initialized empty Git repository in /Users/namu/dev/test/gittest/GitTest.git/ | |
[~/dev/test/gittest]% mkdir master alice bob | |
[~/dev/test/gittest]% cd master | |
[..test/gittest/master]% git clone $SP . | |
Cloning into .... | |
warning: You appear to have cloned an empty repository. | |
[..test/gittest/master]% mkdir common_folder alice_folder bob_folder | |
[..test/gittest/master]% echo "init rev.3" > common_folder/file1.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A 4-6-7-----10----------14---|16----18----20----------24----26 | |
/ \ / / \ | / \ / / \ / | |
T-3---------9-------12-------15|---------19-------22-------25 | |
\ \ / \ | \ / \ | |
B 5-----8------11----13------|---17----------21----23 | |
### rev.3 | |
common_folder/file1.txt |