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
# | |
# Azure Cloud Backupの実行結果確認通知(メール) | |
# | |
# 基本設定 | |
$from = "admin@example.com" | |
$to = "caution@example.com" | |
$password = "xxxx" | |
$smtp = "smtp.example.com" | |
$port = "587" |
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
Invoke-Sqlcmd -Query "exec sp_databases" | ?{ -not (@("master","tempdb","msdb","model") -contains $_.Item(0)) } | %{ | |
$datebaseName = $_.Item(0) | |
Write-Host ("■ {0}のフルバックアップを実行します" -f $datebaseName) | |
$backupSql=@" | |
BACKUP DATABASE {0} | |
TO DISK = 'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\Backup\{0}.Bak' | |
WITH FORMAT, |
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
using System; | |
using System.Net.Mail; | |
using SendGrid; | |
namespace SendGripSample | |
{ | |
class Program | |
{ | |
static void Main( string[] args) | |
{ |
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
using System; | |
using System.Linq; | |
using System.Xml.Linq; | |
namespace AmazonProductAdvtApi | |
{ | |
class ItemLookupSample | |
{ | |
private const string MY_AWS_ACCESS_KEY_ID = "{Access Key ID}"; | |
private const string MY_AWS_SECRET_KEY = "{Secret Access Key}"; |
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
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>表示されている地図の範囲を表示する</title> | |
<script src="scripts/jquery-1.10.2.js"></script> | |
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp"></script> | |
<script> | |
$(function () { | |
google.maps.event.addDomListener(window, 'load', initialize); |
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
public class Hello{ | |
public static void Main(){ | |
// 自分の得意な言語で | |
// Let's チャレンジ!! | |
var line = int.Parse(System.Console.ReadLine()); | |
long total = 0; | |
for (var i=0; i<line; i++) | |
{ | |
var buf = System.Console.ReadLine().Split(' '); | |
var needs = int.Parse(buf[0]); |
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
using System; | |
using System.Linq; | |
using System.Net; | |
using Codeplex.Data; | |
namespace ConsoleApplication3 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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
@{ | |
Layout = null; | |
} | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>住所などから位置を取得する</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> |
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
@{ | |
Layout = null; | |
} | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>クリックされた位置を取得する</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="utf-8"> |
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
using System.Web; | |
using System.Web.Mvc; | |
namespace WebApplication4.Controllers | |
{ | |
public class HomeController : Controller | |
{ | |
[HttpGet] | |
public ActionResult Index() | |
{ |
NewerOlder