Skip to content

Instantly share code, notes, and snippets.

@elliclee
elliclee / validation.gs
Created November 20, 2017 10:40
Google Sheet Dynamic Data Validation
/* Validation+ Script copied from:
* https://productforums.google.com/forum/#!topic/docs/pBDeCGqzlMI
* @author AD:AM
*
*
* Example how to use this:
* 1. Input the proper data validation to the top-most cell of a vertical group
* of cells (ie. one columnd-wide; as many rows as you want).
* 2. Select the group of cells, making sure the top cell is the one with data
* validation.
@elliclee
elliclee / windows8readfile.cs
Created December 27, 2012 08:47
Windows 8 中读取文件的方法
var file = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync(@"Assets\html\Template.html");
var stream = await file.OpenReadAsync();
var rdr = new StreamReader(stream.AsStream());
Task.Run(() =>
{
var contents = rdr.ReadToEnd();
});