Skip to content

Instantly share code, notes, and snippets.

View shar0's full-sized avatar
🏠
Working from home

Joe Wang shar0

🏠
Working from home
View GitHub Profile
@shar0
shar0 / Hello World
Last active August 29, 2015 14:23
Hello World java version
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
@shar0
shar0 / hover-to-rate.html
Created September 15, 2015 15:55
Hover square to rate
<html>
<head>
<title>Drag to rate</title>
<style>
* {
padding: 0;
margin: 0;
}
.rate-bar {
margin: 10px;
@shar0
shar0 / main.js
Last active March 6, 2017 20:37
VueJS + Phaser + DeepStream Client
import Vue from 'vue'
import App from './App'
import DeepStream from 'deepstream.io-client-js'
new Vue({
ds: {
connectionUrl: 'localhost:6020'
},
el: '#app',
template: '<App/>',
@shar0
shar0 / firebase_vuejs.html
Last active January 10, 2017 06:08
Chat Room : Firebase + VueJS
<!doctype html>
<html>
<head>
<title>Firebase + VueJS</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<script src="//www.gstatic.cn/firebasejs/3.6.4/firebase.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/vue/2.1.8/vue.js"></script>
<script src="//unpkg.com/vuefire@1.3.0"></script>
<style>
@shar0
shar0 / ViewExtension.swift
Created July 2, 2018 09:50
I'm tired to write more frame.origin.x/y or frame.size.width/height.
//
// ViewExtension.swift
// Rina
//
// Created by Joe Wang on 02/07/2018.
// License: WTFPL
//
import UIKit
@shar0
shar0 / ViewExtension.swift
Last active July 2, 2018 09:58
I'm tired to write more frame.origin.x/y or frame.size.width/height.
//
// ViewExtension.swift
// Rina
//
// Created by Joe Wang on 02/07/2018.
// License: WTFPL
//
import UIKit