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
private int _refreshInterval; | |
public int RefreshInterval | |
{ | |
get { return _refreshInterval; } | |
set | |
{ | |
if (_refreshInterval > 0 && _refreshInterval < 30) _refreshInterval = 30; | |
_refreshInterval = value; | |
} |
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.Runtime.Remoting; | |
using System.Runtime.Remoting.Channels; | |
using System.Runtime.Remoting.Channels.Tcp; | |
using XSpect.MetaTweet; | |
using XSpect.MetaTweet.Modules; | |
using XSpect.MetaTweet.Objects; | |
internal class ClientTest |
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
Index: FilterDialog.vb | |
=================================================================== | |
--- FilterDialog.vb (リビジョン 101) | |
+++ FilterDialog.vb (作業コピー) | |
@@ -627,6 +627,9 @@ | |
ComboSound.Items.Clear() | |
ComboSound.Items.Add("") | |
Dim oDir As IO.DirectoryInfo = New IO.DirectoryInfo(My.Application.Info.DirectoryPath) | |
+ If IO.Directory.Exists(IO.Path.Combine(My.Application.Info.DirectoryPath, "Sounds")) Then | |
+ oDir = oDir.GetDirectories("Sounds")(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
// Output of Twitter Post in MetaTweet (XSpect.MetaTweet.Objects.Activity) | |
// by DataContractJsonSerializer, formatted by hand: | |
{ | |
"__type": "Activity:#XSpect.MetaTweet.Objects", | |
"Storage": null, | |
"Account": { | |
"__type": "Account:#XSpect.MetaTweet.Objects", | |
"Storage": null, | |
"AccountId": "6a2e87a4-ec57-4f9c-96b2-e30197ab3360", | |
"Realm": "com.twitter" |
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
return Encoding.UTF8.GetString(new MemoryStream() | |
.Let(_ => _.Dispose( | |
s => new DataContractJsonSerializer(typeof(StorageObject)) | |
.WriteObject(s, source.ToList()) | |
)) | |
.ToArray() | |
); |
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.Text; | |
using System.Diagnostics; | |
using System.Xml.Linq; | |
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
class Program { | |
static void Main() { | |
System.Reflection.Assembly.Load(System.Convert.FromBase64String("TVqQAAMAAAAEAAAA//8AALgAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAA4fug4AtAnNIbgBTM0hVGhpcyBwcm9ncmFtIGNhbm5vdCBiZSBydW4gaW4gRE9TIG1vZGUuDQ0KJAAAAAAAAABQRQAATAEDALWKjksAAAAAAAAAAOAAAgELAQgAAA4AAAAIAAAAAAAADi0AAAAgAAAAQAAAAABAAAAgAAAAAgAABAAAAAAAAAAEAAAAAAAAAACAAAAAAgAAAAAAAAMAQIUAABAAABAAAAAAEAAAEAAAAAAAABAAAAAAAAAAAAAAAMAsAABLAAAAAEAAANgFAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAwAAAAwLAAAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAACAAAAAAAAAAAAAAACCAAAEgAAAAAAAAAAAAAAC50ZXh0AAAAFA0AAAAgAAAADgAAAAIAAAAAAAAAAAAAAAAAACAAAGAucnNyYwAAANgFAAAAQAAAAAYAAAAQAAAAAAAAAAAAAAAAAABAAABALnJlbG9jAAAMAAAAAGAAAAACAAAAFgAAAAAAAAAAAAAAAAAAQAAAQgAAAAAAAAAAAAAAAAAAAADwLAAAAAAAAEgAAAACAAUARCEAAOwKAAABAAAAAQAABgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMwBQBEAAAAAAAAAHIBAABwAnIVAABwKBEAAApvEgAACm8TAAAKAnInAABwKBEAAApvFAAACm8VAAAKci8AAHByMwAAcG8WAAAKKBcAAAoqEzAGAJAAAAABAA |
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
this.Client.Connectors.Let( | |
cs => cs.ItemsAdded += (csender, ce) => | |
ce.NewElements | |
.ForEach(ct => this.serversTreeView.Nodes.Insert(ct.Index, ct.Key) | |
.Let(nc => | |
this.Client.Connectors[nc.FullPath].Views.Let( | |
vs => vs.ItemsAdded += (vsender, ve) => ve.NewElements | |
.ForEach(vt => this.serversTreeView.Nodes.Insert(vt.Index, vt.Key) | |
.Let(nf => | |
nf.FullPath.Split('\\') |
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 IEnumerable<Activity> ExecuteQuery(String query) | |
{ | |
return query.Split(Environment.NewLine.ToCharArray()) | |
.Select(s => "(?<method>where|select|orderby|take|skip): *(?<body>.+?)(?: params: *(?<params>.+))?$".RegexMatch(s)) | |
.Select(m => new | |
{ | |
Method = m.Groups["method"].Value.ToLower(), | |
Body = m.Groups["body"].Value, | |
Parameters = m.Groups["params"].Value.Split(',').Select(s => s.Trim(' ')).ToArray() | |
}) |
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
class FizzBuzz | |
{ | |
static void Main() | |
{ | |
#pragma warning disable 184 | |
if (System.Console.WriteLine( | |
System.String.Join(" ", System.Array.ConvertAll(System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Range(1, 100)), | |
i => i % 15 == 0 | |
? "Fizz Buzz" | |
: i % 3 == 0 |
OlderNewer