Skip to content

Instantly share code, notes, and snippets.

## A simple git tutorial
0. Configure git globally
git config —-global user.name $username
git config —-global user.email $email
1. Initialize a local repository
git init
@zkl94
zkl94 / simpleWebrtcDemo.html
Created January 7, 2017 17:09
a webrtc demo using simplertc server
<!DOCTYPE html>
<html>
<head>
<script src="https://simplewebrtc.com/latest-v2.js"></script>
</head>
<script>
var webrtc = new SimpleWebRTC({
// the id/element dom element that will hold "our" video
localVideoEl: 'localVideo',
// the id/element dom element that will hold remote videos
{{#HTML5}}
<video src="http://v2v.cc/~j/theora_testsuite/320x240.ogg" controls>
Your browser does not support the <code>video</code> element.
</video>
{{/HTML5}}
<div id="friends">
<ul>
{{#friends}}
<li>{{name}}</li>
<li>{{url}}</li>
{
"title": "windsing",
"HTML5": false,
"friends": [
{
"name": "qipeng",
"url": "http://qipengliu.com"
},
{
"name": "yubin",
{
"firstName": "Christophe",
"lastName": "Coenraets",
"blogURL": "http://coenraets.org"
}
@zkl94
zkl94 / opml
Created December 22, 2015 18:54
my feedly subscription
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Subscriptions - Feedly</title>
</head>
<body>
<outline htmlUrl="http://cornersociologist.com" title="cornersociologist.com" xmlUrl="http://cornersociologist.com/feed/" type="rss" text="cornersociologist.com"/>
<outline htmlUrl="http://www.sherrychan.net/" title="All that is Solid melts into Air" xmlUrl="http://www.sherrychan.net/feeds/posts/default" type="rss" text="All that is Solid melts into Air"/>
<outline htmlUrl="http://bittermelon2009.blogspot.com/" title="Bittermelon 苦中作樂" xmlUrl="http://bittermelon2009.blogspot.com/feeds/posts/default" type="rss" text="Bittermelon 苦中作樂"/>
<outline htmlUrl="http://paulsin.blogspot.com/" title="Blog of Insanity (狂人日記)" xmlUrl="http://paulsin.blogspot.com/feeds/posts/default" type="rss" text="Blog of Insanity (狂人日記)"/>