This file contains 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
package | |
{ | |
/** | |
* ... | |
* @author | |
*/ | |
public class Deg2Rad | |
{ | |
static public function deg2rad(x:Number):Number | |
{ |
This file contains 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
package | |
{ | |
public class Lib { | |
static private function to_s_array(array:Object):String | |
{ | |
var result:String = ""; | |
result += "["; | |
for (var i:int = 0; i < array.length; i++) { | |
result += to_s(array[i]) ; |
This file contains 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
Application { | |
backgroundColor: #CCCCCC; | |
backgroundAlpha: 1; | |
backgroundGradientColors: #CCCCCC, #CCCCCC; | |
backgroundGradientAlphas: 0, 0; | |
} | |
Button { | |
cornerRadius: 12; | |
paddingLeft: 3; |
This file contains 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
private function colorMul(color:uint, rate:Number):uint | |
{ | |
var r:uint = (color >> 16) & 0xff; | |
var g:uint = (color >> 8) & 0xff; | |
var b:uint = (color >> 0) & 0xff; | |
r *= rate; | |
g *= rate; | |
b *= rate; |
This file contains 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 deg2rad(x:Number):Number | |
{ | |
return x * 0.0174532925; | |
} | |
function rad2deg(x:Number):Number | |
{ | |
return x * 57.2957796; | |
} |
This file contains 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
package com.foed | |
{ | |
import flash.display.Graphics; | |
/** | |
* 基本的な2次元ベクトルクラス | |
*/ | |
public class Vector2D | |
{ | |
private var _x:Number; |
This file contains 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
var date = new Date(); | |
var month = date.getMonth() + 1; | |
if (month <= 9) | |
month = "0" + month; | |
var day = date.getDate(); | |
if (day <= 9) | |
day = "0" + day; |
This file contains 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
#!/usr/bin/ruby | |
# -*- coding: utf-8 -*- | |
require 'rubygems' | |
require 'hpricot' | |
require 'optparse' | |
class Tiddle | |
attr_reader :title, :created, :modified, :tags, :changecount, :content | |
This file contains 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
# -*- coding: utf-8 -*- | |
# | |
# @file | |
# @brief p_classtree 改良版 | |
# @author ongaeshi | |
# @date 2010/09/30 | |
# アルファベットと演算子で表示する数を変える | |
ALPHABET_DISP_NUM = 5 | |
OPERATOR_DISP_NUM = 10 |
This file contains 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
i686-w64-mingw32-gcc は、cygwin付属のcygwin.dllに依存しないgcc4です。 | |
% cd ~/work/rroonga/vendor/groonga-1.0.4 | |
% ./configure CC='i686-w64-mingw32-gcc' CFLAGS='-g -O0 -mno-cygwin' prefix='/c/users/ongaeshi/work/rroonga/vendor/local' i386-pc-mingw32 | |
% make | |
. | |
. | |
. | |
. | |
Making all in src |
OlderNewer