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
require "rubygems" | |
require "bundler/setup" | |
require "twitter" | |
require 'net/http' | |
require 'uri' | |
require "json" | |
require 'rss' | |
require "sqlite3" | |
require "time" |
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 main | |
import "fmt" | |
const ( | |
ERR = 3 | |
NOTICE = 5 | |
DEBUG = 7 | |
) |
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 main | |
import "fmt" | |
type Image interface { | |
DisplayImage() | |
} | |
type RealImage struct { | |
fileImage string |
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 main | |
import "fmt" | |
type Stamp struct { | |
stype string | |
} | |
func NewStamp(stype string) *Stamp { | |
return &Stamp{stype} |
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 main | |
import "fmt" | |
type Car struct { | |
speed int | |
distance int | |
} | |
func NewCar() *Car { |
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 -*- | |
require 'rubygems' | |
require 'oauth' | |
require 'rexml/document' | |
require "sqlite3" | |
require 'net/http' | |
require 'net/https' | |
require 'uri' | |
require 'time' |
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
ClassA = Ext.extend( Ext.util.Observable , { //Ext.util.Observableクラスを基底クラスとしてClassAを宣言する。 | |
constructor: function(){ | |
//クラスがnewされた時に呼ばれる。 | |
ClassA.superclass.constructor.call( this ); | |
//親クラスのconstructorを呼ぶ。 | |
}, | |
alert : function( message ){ | |
alert( message ); |
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
import com.sun.jna.Native; | |
import com.sun.jna.NativeLong; | |
import com.sun.jna.Pointer; | |
public class LibXml2 { | |
static { | |
Native.register("xml2"); | |
} | |
static public class XmlParserProperties { |