Karno karno

View gist:9208590
1 2 3 4 5 6 7 8
for (int i = 0; i < 1; i++)
{
Enumerable.Range(-3, 7)
.Select(v => 4 - Math.Abs(v))
.Select(v => new String('*', v))
.ToList()
.ForEach(Console.WriteLine);
}
View MainWindowViewModel.cs
1 2 3 4 5 6 7 8 9 10
using System;
using System.Diagnostics;
using System.Linq;
using System.Windows;
using System.Windows.Threading;
using Livet;
 
namespace Karno.Xac.Sample
{
public class MainWindowViewModel : ViewModel
View MainWindow.xaml
1 2 3 4 5 6 7 8 9 10
<Window x:Class="Karno.Xac.Sample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:sample="clr-namespace:Karno.Xac.Sample"
Title="MainWindow"
Width="400"
Height="400">
<Window.DataContext>
View DragAcceptDescription.cs
1 2 3 4 5 6 7 8 9 10
using System;
using System.Windows;
 
namespace Karno.Xac.Sample
{
public sealed class DropAcceptDescription
{
public event Action<DragEventArgs> DragOver;
 
public void OnDragOver(DragEventArgs dragEventArgs)
View DragAcceptBehavior.cs
1 2 3 4 5 6 7 8 9 10
using System.Windows;
using System.Windows.Interactivity;
 
namespace Karno.Xac.Sample
{
public sealed class DragAcceptBehavior : Behavior<FrameworkElement>
{
public DragAcceptDescription Description
{
get { return (DragAcceptDescription)GetValue(DescriptionProperty); }
View DragStartBehavior.cs
1 2 3 4 5 6 7 8 9 10
using System;
using System.Windows;
using System.Windows.Input;
using System.Windows.Interactivity;
 
namespace Karno.Xac.Sample
{
public class DragStartBehavior : Behavior<FrameworkElement>
{
private Point _origin;
View default.xml
1 2 3 4 5 6 7 8 9 10
<?xml version="1.0" encoding="utf-8"?>
<ThemeProfile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StarryEyes.Settings.Themes">
<AccountSelectionFlipColor>
<BackgroundColor>#FF111111</BackgroundColor>
<ForegroundColor>#FFFFFFFF</ForegroundColor>
</AccountSelectionFlipColor>
<BackstageColor>
<Default>
<BackgroundColor>#FFF5F5F5</BackgroundColor>
<ForegroundColor>#FF000000</ForegroundColor>
View setting.cs
1 2 3 4 5 6 7 8
var file = File.ReadAllText(@".\setting.txt")
.Split("\r\n")
.Select(t => t == "TRUE")
.ToArray();
dat = file[0];
dat2 = file[1];
dat3 = file[2];
dat4 = file[3];
View SentenceGenerator.cs
1 2 3 4 5 6 7 8 9 10
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using StarryEyes.Casket.DatabaseModels.Generators;
 
namespace StarryEyes.Casket.DatabaseCore.Sqlite
{
public static class SentenceGenerator
View AgentRuntime.scala
1 2 3 4 5 6 7 8 9
class AgentRuntime(profile: Properties, holder: ServiceBindingHolder[MicroRuntimeServiceBinder]) {
 
def startAgent(name: String, args: Array[AnyRef]): Future[AgentController] = holder.getServiceBinder() flatMap {
binder => createContainer(binder)
} flatMap {
binder => startAgentCore(name, args, binder)
} flatMap {
_ => future(MicroRuntime.getAgent(name))
}
Something went wrong with that request. Please try again.