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
{ | |
"class":"main.TestFlexJava", | |
"dValue": 8.0, | |
"DValue":7.0, | |
"fValue": 6.0, | |
"FValue": 5.0, | |
"iValue": 1, | |
"IValue": 2, | |
"lValue": 3, | |
"LValue": 4, |
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/env python | |
# -*- coding: utf-8 -*- | |
''' | |
This is the sample of multiprocessing.Pool, with tuple input | |
''' | |
from multiprocessing import Pool | |
import time | |
import logging |
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 java.awt.Point; | |
import java.awt.Polygon; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
public class RotatablePolygon extends Polygon { | |
private static final long serialVersionUID = 6304249549969254384L; |
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
# -*- CMakeLists.txt -*- | |
# プログラムの追加 | |
add_executable(myplay main.cpp) | |
# CFLAGSの追加 | |
set (CMAKE_CXX_FLAGS "-Wall -I${PROJECT_SRC_DIRECTORY}/include") | |
# LDFLAGSの追加 | |
set (CMAKE_EXE_LINKER_FLAGS ${PLATFORM_LDFLAGS}) |
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 java.awt.*; | |
import javax.swing.*; | |
import javax.swing.border.*; | |
import java.awt.event.*; | |
public class TestWindow extends JFrame { | |
public JTextArea textarea = null; | |
protected JLabel label = null; | |
public JTextField text = null; |
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
$ pandoc readme.md -o readme.tex |
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 java.sql.Connection; | |
import java.sql.Statement; | |
import java.sql.DriverManager; | |
import java.sql.SQLException; | |
import org.apache.commons.dbutils.QueryRunner; | |
import org.apache.commons.dbutils.ResultSetHandler; | |
import org.apache.commons.dbutils.handlers.BeanListHandler; | |
import org.slf4j.Logger; |
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
SVMComponent svm = null; | |
void setup () { | |
svm = new SVMComponent(this); | |
svm.importDataFromFile(sketchPath + "/points.csv", 2); | |
svm.train(); | |
svm.save(sketchPath + "/trained.txt"); | |
} | |
void draw () { |
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
# -*- CMakeLists.txt -*- | |
cmake_minimum_required (VERSION 2.8) | |
if(COMMAND cmake_policy) | |
cmake_policy(SET CMP0003 NEW) | |
endif(COMMAND cmake_policy) | |
# プログラムの追加 | |
add_executable(view main.cpp) |
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
# -*- CMakeLists.txt -*- | |
cmake_minimum_required (VERSION 2.8) | |
if(COMMAND cmake_policy) | |
cmake_policy(SET CMP0003 NEW) | |
endif(COMMAND cmake_policy) | |
# プログラムの追加 | |
add_executable(view main.cpp) |
OlderNewer