Other Hacer que un snippet ponga la primera letramayúscula

${1/./\u$0/}

Other SASS网格生成器

!columns = 8
!column_width = 100px
!column_margin = 10px
!grid_size = !column_width * !columns + (!column_margin * (!columns - 1))

// Grid container
#grid
  :width = !grid_size

// Columns
.col-1
  :width = !column_width
.col-2
  :width = !column_width * 2 + !column_margin
.col-3
  :width = !column_width * 3 + (!column_margin * 2)
.col-4
  :width = !column_width * 4 + (!column_margin * 3)
.col-5
  :width = !column_width * 5 + (!column_margin * 4)
.col-6
  :width = !column_width * 6 + (!column_margin * 5)
.col-7
  :width = !column_width * 7 + (!column_margin * 6)
.col-8
  :width = !column_width * 8 + (!column_margin * 7)

.last
  :margin
    :right 0

Other 在actionscript中打印_r

public function print_a( obj, indent ) {
	if (indent == null){
		indent = "";
	}
	var out = "";
	var start:Boolean = true;
	for ( item in obj ) {
		if (typeof( obj[item] ) == "object" ){
			if(!start){
				out += "n"+indent+ "[" + item + "] => Object";
			}
			else{
				out += indent+ "[" + item + "] => Object";
			}
			start = false;
		}
		else {
			out += indent+"[" + item + "] => " + obj[item]+"";
		}
		out += print_a( obj[item], indent+"   " ) + " ";
	}
	return out;
}

Other 从文本中删除额外的回报

descriptionText.text = description.replace(/r/g, '');

Other 表达引擎:分类条目,语义方式

{exp:weblog:categories weblog="training" style="linear"}                                                     
				<h3>{category_name}</h3>
					<ul>
					   {exp:weblog:entries category="{category_id}" }
					       <li><a href="#" title="">{title}</a></li>
					   {/exp:weblog:entries}
					</ul>

				{/exp:weblog:categories}

Other stripslashes_deep

if(!function_exists('stripslashes_deep')) {
    function stripslashes_deep($value) {
       $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);
       return $value;
    }	
}

Other ApachePHPã,ラãƒãã,'htaccessã??§å¶å¾¡

AddType application/x-httpd-php .php .html
php_flag display_errors Off

Other localScroll模板

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Jquerty localScroll Template</title>

	<style type="text/css" media="screen">
	#slide_wrapper{
		width: 400px;
		height: 300px;
		overflow: hidden;
	}
	
	#slide_box{
		width: 2000px;
		height: 300px;
	}
	
	.section{
		float: left;
		width: 400px;
		height: 300px;
		margin: 0 20px 0 0 0;
	}

	#section01{ background: #ecf; }
	#section02{ background: #acf; }
	#section03{ background: #cfc; }
	#section04{ background: #ffc; }
	#section05{ background: #fda; }
	</style>

	<script src="common/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="common/js/jquery.scrollTo-min.js" type="text/javascript" charset="utf-8"></script>
	<script src="common/js/jquery.localscroll-min.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript" charset="utf-8">
	$(document).ready(function() {
		$('#scroll_navi').localScroll({
			target: '#slide_wrapper',
			axis: 'xy'
		});
	});
	</script>
</head>
<body>
	<div id="slide_wrapper"><!-- Static Box contain Sliding Box. set overflow:hidden-->
		<div id="slide_box"><!-- Sliding Box, it's Long or Large and contain some sections -->
			<div id="section01" class="section">
				section01
			</div>
			<div id="section02" class="section">
				section02
			</div>
			<div id="section03" class="section">
				section03
			</div>
			<div id="section04" class="section">
				section04
			</div>
			<div id="section05" class="section">
				section05
			</div>
		</div>
	</div>
	<ul id="scroll_navi">
		<li id="scroll_navi01"><a href="#section01">section01</a></li>
		<li id="scroll_navi02"><a href="#section02">section02</a></li>
		<li id="scroll_navi03"><a href="#section03">section03</a></li>
		<li id="scroll_navi04"><a href="#section04">section04</a></li>
		<li id="scroll_navi05"><a href="#section05">section05</a></li>
	</ul>
</body>
</html>

Other as2as3FlashPlayerã??®ãƒãƒ¬ãƒ¼ã,¹ãƒã,°ã,'å?? - å¾-

flash player トレースログ取得

1.Adobe flash player debug をダウンロード
	http://www.adobe.com/support/flashplayer/downloads.html
	→Download the Macintosh Flash Player 9 Plugin content debugger (Intel-based Macs) (ZIP, 5.22 MB)
	
2./Library/Application Support/Macromedia/mm.cfg を作成
--
	ErrorReportingEnable=1
	TraceOutputFileEnable=1
--
	の2行だけ追加

3./Users/yourname/Library/Preferences/Macromedia/Flash Player/Logs/flashlog.txt
	にトレースログが出力される

Other 编译rails项目中的所有css文件

  # compiles all the css files into one huge string
  # this is useful when running with less
  # USAGE : all_css.open # => opens the string in less allowing you to search
  def all_css
    css_files = Dir.glob File.join(RAILS_ROOT, "public/stylesheets/","*.css")
    css_content = ""
    css_files.each {|file| css_content << IO.read(file)}
    
    css_content.instance_eval do
      
      # opens with less command
      def open
        system('echo "' << self << '"|less')
      end
      
    end
    
    css_content
  end