Skip to content

Instantly share code, notes, and snippets.

View KelvinJin's full-sized avatar
🎯
Focusing

Jin Wang KelvinJin

🎯
Focusing
  • Uthoft
  • Melbourne
View GitHub Profile
@KelvinJin
KelvinJin / tracking.md
Last active August 28, 2015 06:26
Tracking Info

In order to enable xLabs Analytics to track your website, the following tracking script needs to be properly installed.

Note: Since our embedded javascript depends on jQuery 1.11.2+, you will need to import jQuery as well. However, most of the modern websites will have jQuery imported on every page. Here is a simple example of how jQuery is imported.
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script>

The following is your tracking code. Copy and paste it into the code of every page you want to track.

<script type="text/javascript" src="http://xlabs-admin.uthoft.com/assets/js/xLabsAnalytics.js"></script>
@KelvinJin
KelvinJin / RoundedCornerLayer
Created March 23, 2015 01:33
Create your own rounded rect path with rounding corners.
//
// RoundedCornerLayer.swift
// OmnyStudio
//
// Created by Jin Wang on 20/03/2015.
// Copyright (c) 2015 121cast. All rights reserved.
//
import UIKit
{
"tiles": [ "https://tiles.guildwars2.com/1/1/{z}/{x}/{y}.jpg" ],
"minzoom": 0,
"maxzoom": 7
}