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
use [master] | |
create database [SchemaTest] containment=partial | |
go | |
use [SchemaTest] | |
go | |
-- スキーマ | |
create schema [S1] | |
go | |
create schema [S2] |
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.Data.SqlClient; | |
using System.Diagnostics; | |
namespace NETCore | |
{ | |
class Program | |
{ | |
static string connstr = @"Data Source=localhost;Initial Catalog=master;Integrated Security=True;Connect Timeout=5;Encrypt=False;"; |
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
<?xml version="1.0" encoding="utf-8"?> | |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="14.0"> | |
<PropertyGroup> | |
<Param>Default</Param> | |
</PropertyGroup> | |
<Target Name="Hello"> | |
<Message Text="Hello $(Param) さん" /> | |
</Target> | |
</Project> |
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
jobs = jenkins.model.Jenkins.instance.items | |
oldJDK = jenkins.model.Jenkins.instance.getJDK("JavaSE 8u40") | |
newJDK = jenkins.model.Jenkins.instance.getJDK("JavaSE 8u45") | |
jobs.each { | |
if (it.JDK == oldJDK) { | |
it.JDK = newJDK | |
it.save() | |
println "updated ${it.name}" | |
} |
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
package com.wordnik.swagger.jaxrs; | |
import java.lang.annotation.Annotation; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.Type; | |
import java.util.ArrayList; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.Set; |
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
package sample; | |
import java.io.Serializable; | |
import java.util.Arrays; | |
import java.util.List; | |
import javax.faces.view.ViewScoped; | |
import javax.inject.Named; | |
@SuppressWarnings("serial") |
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
package contracts | |
import java.lang.annotation.ElementType | |
import java.lang.annotation.Target | |
import org.eclipse.xtend.lib.macro.AbstractMethodProcessor | |
import org.eclipse.xtend.lib.macro.Active | |
import org.eclipse.xtend.lib.macro.TransformationContext | |
import org.eclipse.xtend.lib.macro.declaration.MutableMethodDeclaration | |
import org.eclipse.xtend.lib.macro.declaration.Visibility |
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
<UsingTask TaskName="ReplaceStyleCopResult" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll"> | |
<ParameterGroup> | |
<PATH ParameterType="System.String" Required="true" /> | |
<WORKSPACE ParameterType="System.String" Required="true" /> | |
</ParameterGroup> | |
<Task> | |
<Code Type="Fragment" Language="cs"><![CDATA[ | |
var content = File.ReadAllText(PATH); | |
File.WriteAllText(PATH, content.Replace(WORKSPACE, "../")); | |
]]></Code> |
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.Linq; | |
namespace TDDPre { | |
public class 自動販売機 { | |
private static int[] 正規のお金 = new int[] { 10, 50, 100, 500, 1000 }; | |
public int 投入金額 { get; private set; } | |
/// <summary> | |
/// Command | |
/// </summary> |
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
Write-Host "Backup!" | |
Write-Host "0% * * * * * * * * * * 100%" | |
while ($true) { | |
Get-ChildItem | % { | |
$path = $_.FullName | |
Write-Host "Backup File:$path starting ... " | |
for ($count = 1; $count -le 20; ++$count) { | |
$ran = Get-Random | |
sleep -m ($count * ($ran % 30)) |
NewerOlder