Skip to content

Instantly share code, notes, and snippets.

View zsy056's full-sized avatar

Shaoyu Zhang zsy056

View GitHub Profile
@zsy056
zsy056 / designer.html
Created April 7, 2015 00:55
designer
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
<style>
@zsy056
zsy056 / library
Last active August 29, 2015 14:16
Bib entries
% This file was created with JabRef 2.10.
% Encoding: UTF-8
@Article{abouzeid2009hadoopdb,
Title = {HadoopDB: an architectural hybrid of MapReduce and DBMS technologies for analytical workloads},
Author = {Abouzeid, Azza and Bajda-Pawlikowski, Kamil and Abadi, Daniel and Silberschatz, Avi and Rasin, Alexander},
Journal = {Proceedings of the VLDB Endowment},
Year = {2009},
Number = {1},
@zsy056
zsy056 / water_machine.js
Last active August 29, 2015 13:58
Water!! Water!!
// ==UserScript==
// @name Water Machine for Mutouren
// @namespace http://aztec.tk/gm
// @version 0.1
// @description Water Water!!!
// @match https://bbs.sjtu.edu.cn/bbsdoc?board=Water
// @copyright 2012+, lalala
// ==/UserScript==
// 需要回复的帖子 ID
@zsy056
zsy056 / sorting_network.rb
Created March 20, 2014 12:59
Generate sorting network graph using TeX with tikz
#!/usr/bin/env ruby
def line(x1, y1, x2, y2)
puts "\\draw (#{x1},#{y1}) -- (#{x2},#{y2});"
end
def point(x, y)
puts "\\fill (#{x},#{y}) circle[radius=2pt];"
end