This file contains hidden or 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
| create table base ( | |
| id number, | |
| value varchar2(32), | |
| primary key (id) | |
| ); | |
| create table derive ( | |
| id number, | |
| value varchar2(32), value2 varchar2(32), | |
| primary key (id), | |
| foreign key (id) references base(id) on delete cascade |
This file contains hidden or 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 'eieio) | |
| (defclass hoge () | |
| ((value :initarg :value | |
| :accessor hoge-value | |
| :type (or null string) | |
| :initform nil)) | |
| :abstract t) | |
| (defclass hoge2 (hoge) | |
| nil) |
This file contains hidden or 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.util.*; | |
| public class WarningOnSafeVarargs { | |
| @SafeVarargs | |
| private static <T> List<T> a(T ... a) { | |
| return b(a); | |
| } | |
| @SafeVarargs | |
| private static <T> List<T> b(T ... a) { |
This file contains hidden or 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
| (list | |
| :el-get (el-get-read-all-recipe-names) | |
| :elpa | |
| (progn | |
| (package-refresh-contents) | |
| (loop for pkg in package-archive-contents | |
| collect (symbol-name (car pkg)))) | |
| :emacsmirror | |
| (with-temp-buffer | |
| (call-process |
This file contains hidden or 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
| @GrabResolver(name="gradle", root="http://repo.gradle.org/gradle/libs-releases-local") | |
| @Grab("org.gradle:gradle-tooling-api:1.0-milestone-9") | |
| @Grab("org.slf4j:slf4j-simple:1.6.4") | |
| import org.gradle.tooling.GradleConnector | |
| import org.gradle.tooling.model.GradleProject | |
| def withClosable = { closable, closure -> | |
| try { | |
| closure(closable) | |
| } finally { |
This file contains hidden or 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
| apply plugin: 'java' | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { | |
| testCompile 'junit:junit:4.+' | |
| } |
This file contains hidden or 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
| (defun ac-with-summary-candidates () | |
| (loop for (value summary) in '(("hoge" "ほげ") | |
| ("fuga" "ふが") | |
| ("hage" "禿")) | |
| collect (popup-item-propertize value 'summary summary))) | |
| (ac-define-source with-summary | |
| '((candidates . ac-with-summary-candidates))) |
This file contains hidden or 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 'widget) | |
| (require 'wid-edit) | |
| (define-widget 'completion 'string | |
| "A completion text field." | |
| :complete 'completion-widget:complete) | |
| (defun completion-widget:complete (widget) | |
| (completion-in-region (widget-field-start widget) | |
| (max (point) (widget-field-text-end widget)) |
This file contains hidden or 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
| assert "hoge".toString().toString() == "fuga" |
This file contains hidden or 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: euc-jp | |
| p __ENCODING__ | |
| p Encoding.default_external |