Skip to content

Instantly share code, notes, and snippets.

View hilaily's full-sized avatar

Laily hilaily

View GitHub Profile
@hilaily
hilaily / thrift0-9-3.rb
Last active July 20, 2018 10:49
brew install thrift
class Thrift < Formula
desc "Framework for scalable cross-language services development"
homepage "https://thrift.apache.org/"
stable do
url "https://www.apache.org/dyn/closer.cgi?path=/thrift/0.9.3/thrift-0.9.3.tar.gz"
sha256 "b0740a070ac09adde04d43e852ce4c320564a292f26521c46b78e0641564969e"
# Apply any necessary patches (none currently required)
[
@hilaily
hilaily / lengthOfLongestSubstring.java
Created January 4, 2017 07:48
lengthOfLongestSubstring
package net.oschina.zb.bean;
import java.util.*;
/**
* Created by Laily on 2017/1/4.
*/
public class My2 {
public static void main(String[] args) {
@hilaily
hilaily / 二叉查找树 Java 实现.java
Last active May 9, 2019 08:45
二叉查找树 Java 实现
package net.oschina.zb.bean;
import java.util.*;
/**
* Created by Laily on 2016/12/29.
*/
public class MyTest {
static BinarySearchTree tree = new BinarySearchTree();
@hilaily
hilaily / demo.html
Created December 23, 2016 03:19
web 前端上传裁剪图片
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>kpdragsort</title>
<script src="//cdn.bootcss.com/jquery/2.2.4/jquery.js"></script>
<script src="//cdn.bootcss.com/jquery-jcrop/2.0.4/js/Jcrop.min.js"></script>
<link href="//cdn.bootcss.com/jquery-jcrop/2.0.4/css/Jcrop.min.css" rel="stylesheet">
<style type="text/css">
@hilaily
hilaily / a.java
Created December 13, 2016 08:48
位元算
package net.oschina.zb.toolbox;
import net.oschina.beans.UserInfo;
import java.util.List;
/**
* 用户订阅类
* 用于订阅众包, 订阅项目管家的通知等等
*
@hilaily
hilaily / maxClique.java
Created May 3, 2016 07:16
最大团问题
package main;
import java.util.ArrayList;
import java.util.List;
/**
* 使用矩阵存储一个图
* Created by Laily on 16/4/29.
*/
public class Graph {