Windows10 のロック画面に表示されたのとのある WindowsSpotlight の壁紙を保存するプログラム。
SaveWindowsWallpaper の問題点を修正したバージョンになります。
csc.exe
などを用いて自力でコンパイルしてください。
#!/bin/bash | |
# toshitai starts at 23:30, and ends at 23:59, so duration is 1740 secs | |
now_date=`date +%Y%m%d` | |
start_time=`date --date "$now_date 23 hours 30 minutes" +%s` | |
#start_time=`date --date "$now_date 16 hours 35 minutes" +%s` # debug | |
now_time=`date +%s` | |
duration=1743 | |
echo "Now : " `date +"%Y/%m/%d %H:%M:%S"` |
using System; | |
using System.Numerics; | |
public class MaxAndMinValue { | |
public static void Main() { | |
BigInteger i = (BigInteger)double.MaxValue; | |
string j = i.ToString(); | |
int k = j.Length - 1; | |
double l = int.Parse(j[0].ToString()) + (double)int.Parse(j[1].ToString())/10; | |
string m = (l == 1) ? "" : l + "*"; | |
Console.WriteLine("double.MaxValue = {0}{1}≒ {2}10^{3}", i, Environment.NewLine, m, k); |
using System; | |
using System.Linq; | |
public class FibonacciLarge { | |
public static void Main() { | |
int count = int.Parse(Console.ReadLine()); | |
if (count > 10000 || count < 1) { | |
Console.WriteLine("Invalid value"); | |
return; | |
} | |
if (count == 1) { |
#r "Newtonsoft.Json" | |
#r "System.Web.Extensions" | |
#r "System.Web" | |
#r "System.Xml.Linq" | |
using System; | |
using System.Net; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using System.Web; |
using System; | |
public class MaisuMath { | |
public static Int64 Average(params Int64[] values) { | |
if (values.Length == 0) throw new ArgumentException(); | |
Int64 average; | |
for (Int64 i = 0; i < values.Length; i++) { | |
average += values[i]; | |
} | |
average /= values.Length; | |
return average; |
Dim wmp | |
Set wmp = CreateObject("WMPlayer.OCX") | |
wmp.cdromcollection.item(0).eject() 'OPEN | |
WScript.Sleep 1000 'WAIT A SECOND | |
wmp.cdromcollection.item(0).eject() 'CLOSE | |
WScript.Quit(eLevel) |
while (true) { Beep(new Random().Next(40, 3000), new Random().Next(50, 1000)); System.Threading.Thread.Sleep(new Random().Next(1000, 3000)); } |