Dashing widget to show details about your Italian Wind mobile contracts. It supports both prepaid SIM cards and contracts and can display:
- credit
- voice traffic
- text traffic
- data traffic
- expiries
Dashing widget to show details about your Italian Wind mobile contracts. It supports both prepaid SIM cards and contracts and can display:
| <project name="Hello World" default="build" basedir="."> | |
| <description>The Hello World of build files</description> | |
| <property name="debug" value="true" overwrite="false" /> | |
| <target name="build" description="greets you"> | |
| <echo message="hey there" /> | |
| </target> | |
| </project> |
| <?xml version="1.0"?> | |
| <configuration> | |
| <!-- Leave this alone. Sets up configsectionhandler section --> | |
| <configSections> | |
| <section name="nant" type="NAnt.Core.ConfigurationSection, NAnt.Core" /> | |
| <section name="log4net" type="System.Configuration.IgnoreSectionHandler" /> | |
| </configSections> | |
| <appSettings> | |
| <!-- Used to indicate the location of the cache folder for shadow files --> | |
| <add key="shadowfiles.path" value="%temp%\nunit20\ShadowCopyCache" /> |
| <Query Kind="Program" /> | |
| void Main() | |
| { | |
| var tree = branch( | |
| leaf("a"), | |
| branch( | |
| branch( | |
| leaf("b"), | |
| leaf("c")), |
| 1 - Copy the file typescript.sublime-build in %appdata%\Sublime Text 2\Packages\User | |
| 2 - Edit a .ts file | |
| - CTRL+B will compile to .js and save to the same path as the .ts file | |
| - CTRL+SHIFT+B will compile to .js and create+run an HTML page which embeds the script |
| Console.WriteLine(Path.GetDirectoryName(@"c:\windows\temp")); // c:\windows | |
| Console.WriteLine(Path.GetDirectoryName(@"c:\windows\temp\")); // c:\windows\temp !!! |
| [Test] | |
| public async Task AsyncLambaSupport() | |
| { | |
| // throwing asynchronously | |
| Assert.That(async () => await ThrowAsync(), Throws.TypeOf<InvalidOperationException>()); | |
| // returning values asynchronously | |
| Assert.That(async () => await ReturnOneAsync(), Is.EqualTo(1)); | |
| // "After" works with async methods too |
| [TestCase(1, 2, Result = 3)] | |
| public async Task<int> TestAddAsync(int a, int b) | |
| { | |
| return await SumAsync(a, b); | |
| } | |
| public async Task<int> SumAsync(int a, int b) | |
| { | |
| return await Task.FromResult(a) + await Task.FromResult(b); | |
| } |
| [Test] | |
| public async Task OneSimpleTest() | |
| { | |
| var eightBall = new EightBall(); | |
| var answer = await eightBall.ShouldIChangeJob(); | |
| Assert.That(answer, Is.True); | |
| } |
| [Test] | |
| public void OneSimpleTest() | |
| { | |
| var eightBall = new EightBall(); | |
| Task<bool> answer = eightBall.ShouldIChangeJob(); | |
| answer.Wait(); | |
| Assert.That(answer.Result, Is.True); | |
| } |