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
static class MaybeExtensions | |
{ | |
public static TResult Bind<TSender, TResult>(this TSender obj, Func<TSender, TResult> func) | |
{ | |
if (obj == null) | |
return default(TResult); | |
return func(obj); | |
} | |
} |
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
// Typing for linq.js, ver 3.0.3-Beta4 | |
declare module linqjs { | |
interface IEnumerator { | |
current(): any; | |
moveNext(): bool; | |
dispose(): void; | |
} | |
interface EnumerableStatic { |
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
/// 設定をロードする。壊れてたり無かったりしたら新しく作る。 | |
void Load() | |
{ | |
try | |
{ | |
this.setting = Deserialize(); | |
} | |
catch(FileNotFoundException) | |
{ | |
Console.WriteLine("ファイルないよ~"); |
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
{ | |
"enable_tab_scrolling": false | |
} |
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
export function hogehoge() { | |
console.log('hoge'); | |
} |
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
window.addEventListener('keydown', e => { | |
// eはKeyboardEventに自動推論される | |
}); |
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
var modRewrite = require('connect-modrewrite'); | |
var projectConfig = { | |
root: '/' // ←【変更1】配置先に合わせて変更 | |
}; | |
// connect用の設定 | |
function rewriteMiddleware(connect, options) { | |
return [ | |
modRewrite(['^' + projectConfig.root + '(?!html/).*\\.html$ /index.html [L]']), |
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
Vagrant.configure("2") do |config| | |
config.vm.box = "precise64" | |
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
config.vm.synced_folder ".", "/vagrant", :mount_options => ['dmode=775', 'fmode=664'] | |
config.vm.provision "shell", :path => "provision.sh" | |
end |
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 opening = require('./domain/app/opening'); // <-- インポートして | |
var app = angular.module('app', ['ngRoute', 'ngAnimate']); | |
// 中略 | |
app.controller('IndexController', [ | |
() => opening() // <-- コール | |
]); |
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
<UserControl x:Class="wmvplayer.MainPage" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
mc:Ignorable="d" | |
d:DesignHeight="300" d:DesignWidth="400"> | |
<Grid x:Name="LayoutRoot" Background="Black" Width="640" Height="480"> | |
<MediaElement Width="640" Height="480" Name="MediaElement" Source="mms://localhost:7144/stream/【stream id】.wmv?tip=【ip】" AutoPlay="True"></MediaElement> | |
</Grid> |
OlderNewer