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
using System; | |
using System.Globalization; | |
using System.Windows.Data; | |
namespace MktSys.Gui.Converters | |
{ | |
/// <summary> | |
/// アンダースコアを2つにしてエスケープするためのコンバータ | |
/// </summary> | |
/// <remarks>Label や MenuItem のアクセスキー対策</remarks> |
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
" マジックコメント自動追加関数 | |
function! AddMagicComment() | |
let pos = getpos('.') | |
let line_index = 1 | |
let magic_comment = '# coding: utf-8' | |
if &filetype == 'ruby' | |
let line = getline(line_index) | |
if line[0:1] == '#!' | |
let line_index = 2 | |
endif |
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
class Test | |
def self.method_missing(name, *args) | |
klass = class << self; self end | |
klass.class_eval do | |
define_method(name) do |*params| | |
p params | |
end | |
end | |
__send__(name, *args) | |
end |
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
module Foo | |
def self.included(base) | |
class << base | |
alias_method :baz, :bar | |
end | |
end | |
end | |
class Bar | |
def self.bar |
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
class Test | |
def self.method_missing(name, *args) | |
klass = class << self; self end | |
klass.class_eval do | |
define_method(name) do |a = 1, b = 2| | |
puts "a: #{a}, b: #{b}" | |
end | |
end | |
if args.length > 1 | |
__send__(name, args[0], args[1]) |
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
<!-- Windowにて FocusManager.FocusedElement を設定する --> | |
<Window x:Class="MktSys.Gui.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
Title="Set default focus on Window shown" Height="525" Width="300" | |
FocusManager.FocusedElement="{Binding ElementName=TextBox}"> | |
<Grid> | |
<TextBox Name="TextBox" HorizontalAlignment="Left" Height="25" Margin="0" TextWrapping="Wrap" VerticalAlignment="Top"/> | |
</Grid> | |
</Window> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>親画面</title> | |
<style> | |
input { | |
width: 120px; | |
} | |
</style> |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>jp.mkt_sys.maven.tips</groupId> | |
<artifactId>some_app</artifactId> | |
<version>1.0.0</version> | |
<build> | |
<finalName>some_app</finalName> | |
<plugins> | |
<!-- some plugin settings --> |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>jp.mkt_sys.maven.tips</groupId> | |
<artifactId>some_app</artifactId> | |
<version>1.0.0</version> | |
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-compiler-plugin</artifactId> |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>jp.mkt_sys.maven.tips</groupId> | |
<artifactId>some_app</artifactId> | |
<version>1.0.0</version> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> |