Skip to content

Instantly share code, notes, and snippets.

View longzheng's full-sized avatar

Long Zheng longzheng

  • Melbourne, Australia
  • 22:43 (UTC +11:00)
  • X @longzheng
View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<Deployment xmlns="http://schemas.microsoft.com/windowsphone/2009/deployment" AppPlatformVersion="7.1">
<App xmlns="" BitsPerPixel="32" ...
<IconPath ...
<?xml version="1.0" encoding="utf-8"?>
<Deployment xmlns="http://schemas.microsoft.com/windowsphone/2009/deployment" AppPlatformVersion="7.1">
<App xmlns="" BitsPerPixel="32" ...
<?xml version="1.0" encoding="utf-8"?>
<Deployment xmlns="http://schemas.microsoft.com/windowsphone/2009/deployment" AppPlatformVersion="7.1">
<App xmlns="" BitsPerPixel="32" ...
@longzheng
longzheng / gist:1513173
Created December 23, 2011 04:48
Difference in regex quantifiers parsing of JAVA and .NET
So I discovered this interesting difference in how JAVA and .NET parses Regex quantifiers by throwing myself against a brick wall (Twitter's regex library https://github.com/twitter/twitter-text-java/blob/master/src/com/twitter/Regex.java)
In JAVA, if you do
[[a-z]\-]*
It would actually match zero or more of "a-z" AND "-". It seems to automatically include everything inside any child square brackets.
In .NET,
[[a-z]\-]*
Only matches zero or more of "-". Just one of [a-z]
@longzheng
longzheng / gist:2308859
Last active December 8, 2017 05:09
Windows 8.1 default XAML templates and styles
<!--
//
// Copyright (c) Microsoft Corporation. All Rights Reserved.
//
-->
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<ResourceDictionary.ThemeDictionaries>
@longzheng
longzheng / gist:3385100
Created August 18, 2012 07:46
Windows 8 RTM StandardStyles
<!--
This file contains XAML styles that simplify application development.
These are not merely convenient, but are required by most Visual Studio project and item templates.
Removing, renaming, or otherwise modifying the content of these files may result in a project that
does not build, or that will not build once additional pages are added. If variations on these
styles are desired it is recommended that you copy the content under a new name and modify your
private copy.
-->
@longzheng
longzheng / gist:5804979
Last active December 18, 2015 15:29
Google Docs TV
<!DOCTYPE html>
<html>
<head>
<title>TV</title>
<style>
html, body {
background: black;
padding: 0;
margin: 0;
width: 100%;
<!doctype html>
<html lang="en">
<head prefix="og: http://ogp.me/ns# video: http://ogp.me/ns/video#">
<meta charset="utf-8">
<title>Arrival of a Train at La Ciotat</title>
<meta property="og:title" content="Arrival of a Train at La Ciotat">
<meta property="og:description" content="L'arrivée d'un train en gare de La Ciotat is an 1895 French short black-and-white silent documentary film directed and produced by Auguste and Louis Lumière. Its first public showing took place in January 1896.">
<meta property="og:site_name" content="Open Graph protocol examples">
<meta property="og:type" content="video.movie">
<meta property="og:locale" content="en_US">
Suburb: Springvale
POI: 3WHL
ADA: 3SPL-65
12:03pm – 8ms – 94.80mbps / 37.86mbps http://beta.speedtest.net/result/6318518306
3:40pm – 8ms – 92.88mbps / 37.70mbps http://beta.speedtest.net/result/6318832230
5:07pm – 8ms – 93.35mbps / 37.84mbps http://beta.speedtest.net/result/6318970846
6:52pm – 8ms – 92.41mbps / 36.69mbps http://beta.speedtest.net/result/6319163456
7:36pm – 9ms – 90.93mbps / 37.11mbps http://beta.speedtest.net/result/6319245894
7:57pm – 9ms – 92.00mbps / 37.34mbps http://beta.speedtest.net/result/6319283600
@longzheng
longzheng / gist:6b6746db0b72500bc0f8512869d0b3a6
Last active March 9, 2018 00:49
Userscript to run speedtest.net at interval
// ==UserScript==
// @name Run speedtest.net at interval
// @namespace http://tampermonkey.net/
// @version 0.2
// @description N/A
// @match http*://www.speedtest.net/*
// @author Long Zheng
// ==/UserScript==
(function() {