Skip to content

Instantly share code, notes, and snippets.

View longzheng's full-sized avatar

Long Zheng longzheng

  • Melbourne, Australia
  • 03:54 (UTC +11:00)
  • Twitter @longzheng
View GitHub Profile
View podcast.rss
<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xmlns:psc="https://podlove.org/simple-chapters/" xmlns:omny="https://omny.fm/rss-extensions" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
<channel>
<language>en-US</language>
<title>Drive Show Podcast 1</title>
<link>https://omnystudio.com</link>
<description><![CDATA[Melbourne's favourite drive show, hosted by John Bacon and his best breakfast pal, John Eggs.]]></description>
<itunes:type>serial</itunes:type>
<itunes:summary>Melbourne's favourite drive show, hosted by John Bacon and his best breakfast pal, John Eggs.</itunes:summary>
<itunes:owner>
View myki-shader.js
var fpdefs = {
vertex_shader :
'attribute vec3 a_vertexPosition,a_vertexNormal;attribute vec2 a_vert' +
'exTexture;uniform mat4 u_mvMatrix,u_pMatrix,u_nMatrix;uniform vec3 u' +
'_lightPosition;varying vec3 v_normal;varying vec2 v_texture;varying ' +
'vec3 v_eyeVec,v_lightRay;void main(){vec4 vertex=u_mvMatrix*vec4(a_v' +
'ertexPosition,1.);v_normal=vec3(u_nMatrix*vec4(a_vertexNormal,1.));v' +
'ec4 light=u_mvMatrix*vec4(u_lightPosition,1.);v_lightRay=vertex.rgb-' +
'light.rgb;v_eyeVec=-vec3(vertex.rgb);gl_Position=u_pMatrix*vertex;gl' +
'_PointSize=1.;v_texture=a_vertexTexture*3.-vec2(1.,1.);}',
View myki-login.js
window.JdVx = !!window.JdVx;
try {
(function() {
(function() {}
)();
var Ii = 79;
try {
var Li, Oi, si = J(125) ? 1 : 0, Si = J(90) ? 1 : 0, iI = J(184) ? 1 : 0, II = J(206) ? 1 : 0, jI = J(445) ? 1 : 0, Jl = J(214) ? 1 : 0, ll = J(585) ? 1 : 0;
for (var zI = (J(557),
0); zI < Oi; ++zI)
View ptv-myki-outlets.json
[{
"outlet_distance": 27.8058357,
"outlet_slid_spid": "968",
"outlet_name": "Shop 2, 1-5 Elizabeth Street",
"outlet_business": "7-Eleven Flinders Street",
"outlet_latitude": -37.8180466,
"outlet_longitude": 144.964737,
"outlet_suburb": "Melbourne",
"outlet_postcode": 3000,
"outlet_business_hour_mon": "24 Hours",
@longzheng
longzheng / gist:6b6746db0b72500bc0f8512869d0b3a6
Last active March 9, 2018 00:49
Userscript to run speedtest.net at interval
View gist:6b6746db0b72500bc0f8512869d0b3a6
// ==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() {
View gist:3a3ca5f5b3f4409388441dcaa1e10ac3
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
View test.html
<!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">
@longzheng
longzheng / gist:5804979
Last active December 18, 2015 15:29
Google Docs TV
View gist:5804979
<!DOCTYPE html>
<html>
<head>
<title>TV</title>
<style>
html, body {
background: black;
padding: 0;
margin: 0;
width: 100%;
@longzheng
longzheng / gist:3385100
Created August 18, 2012 07:46
Windows 8 RTM StandardStyles
View gist:3385100
<!--
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:2308859
Last active December 8, 2017 05:09
Windows 8.1 default XAML templates and styles
View gist:2308859
<!--
//
// 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>