Skip to content

Instantly share code, notes, and snippets.

<?php
class Hoge {
function say() {
print "hoge:say";
}
}
class Fuga extends Hoge {
autocmd FileType unite call s:unite_my_settings()
function! s:unite_my_settings()
nmap <buffer> <Esc><Esc> <Plug>(unite_exit)
imap <buffer> <Esc><Esc> <plug>(unite_exit)
endfunction
use strict;
use warnings;
use XML::Simple;
use Data::Dumper;
use Imager;
my $xml = XML::Simple->new;
my $data = $xml->XMLin('map.osm');
my $output = "sample.png";
commit 5759d56b385bb0c79dfcd4d03926d1df671e2a7b
Author: soh335 <[email protected]>
Date: Fri Dec 3 14:28:29 2010
setX and setY for LwjglDisplay
diff --git a/src/core/com/jme3/system/AppSettings.java b/src/core/com/jme3/system/AppSettings.java
index 5d715dd..82b1371 100644
--- a/src/core/com/jme3/system/AppSettings.java
+++ b/src/core/com/jme3/system/AppSettings.java
import com.ning.http.client.AsyncCompletionHandler;
import com.ning.http.client.AsyncHttpClient;
import com.ning.http.client.Response;
public class AsyncTest {
public AsyncTest() {
String[] urls = { "https://github.com/AsyncHttpClient/async-http-client",
"http://yahoo.co.jp", "http://google.co.jp" };
use strict;
use warnings;
use XML::LibXML;
use LWP::Simple;
use Mac::Growl ':all';
use Data::Dumper;
use YAML;
use Encode qw/encode_utf8 from_to/;
use DateTime;
use strict;
use warnings;
use Mac::AppleScript qw/RunAppleScript/;
use Net::Twitter;
use Config::Pit;
my $script = <<"SCRIPT";
tell application "iTunes"
if player state is playing
use strict;
use warnings;
use lib qw{../../lib/perl};
use Thrift::BinaryProtocol;
use Thrift::HttpClient;
use UserStore;
use NoteStore;
use Try::Tiny;
#!/usr/bin/env perl
use strict;
use warnings;
use File::Temp qw/tempdir/;
use File::Copy;
use File::Basename;
my $svn_path = shift @ARGV or die "need svn path";
my $output_path = shift @ARGV or die "need output filename";
diff --git a/src/core-plugins/com/jme3/scene/plugins/MTLLoader.java b/src/core-plugins/com/jme3/scene/plugins/MTLLoader.java
index 68809c0..e557d57 100644
--- a/src/core-plugins/com/jme3/scene/plugins/MTLLoader.java
+++ b/src/core-plugins/com/jme3/scene/plugins/MTLLoader.java
@@ -111,15 +111,15 @@ public class MTLLoader implements AssetLoader {
if (shadeless){
material = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
- material.setColor("Color", diffuse);
+ material.setColor("Color", diffuse.clone());