Skip to content

Instantly share code, notes, and snippets.

@peroon
peroon / gist:6341691
Last active December 21, 2015 17:38
index.html(複数のプロジェクトのindex.htmlへのリンク集)
<!--
github_repositories/index.html
github_repositories/project0/index.html
github_repositories/project1/index.html
github_repositories/project2/index.html
-->
<h1>Links</h1>
<script type="text/javascript"src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js">
@peroon
peroon / gist:6343966
Created August 26, 2013 17:11
[jQuery]DOM構築後のタイミングで実行したい処理を実行
$(document).ready(function(){
/*実行したい処理*/
});
$().ready(function(){
/*実行したい処理*/
});
$(function(){
/*実行したい処理*/

Another Template

aaa

  • apple
  • bacon
  • cocktail
  • daughnut
  • egg

Another Template2

aaa

  • apple
  • bacon
  • cocktail
  • daughnut
  • egg
@peroon
peroon / gist:7846467
Created December 7, 2013 18:16
jquery CDN
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
@peroon
peroon / gist:7846493
Created December 7, 2013 18:17
bootstrap3 CDN
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
@peroon
peroon / gist:72463676ac94175b6259
Created June 20, 2014 07:06
ファイルを1行ずつ処理
open( "./text.txt" ) {|f|
f.each {|s|
puts s
}
}
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
public static class GameObjectExtensions
{
// 直下の子供のみからコンポネント含むObjectのリストを取得
public static T[] GetComponentsInChildrenBeneath<T>(this GameObject self) where T : Component
@peroon
peroon / gist:f3a50dc975fe5384c5bc
Created June 5, 2015 16:26
直下の子供全削除
using UnityEngine;
public static class TransformExtensions
{
// 直下の子供全削除
public static void DestroyAllChildren(this Transform self)
{
foreach (Transform trans in self) {
Object.Destroy(trans.gameObject);
}