Skip to content

Instantly share code, notes, and snippets.

Lijin liu llj098

Block or report user

Report or block llj098

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View squeezenet.py
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
from tensorflow.contrib.framework import add_arg_scope
from tensorflow.contrib.layers.python.layers import utils
slim = tf.contrib.slim
def squeeze(inputs, num_outputs, fire_id):
@llj098
llj098 / build-emacs.sh
Created Feb 26, 2016 — forked from favadi/build-emacs.sh
Compile latest emacs version (24.5) in Ubuntu 14.04
View build-emacs.sh
#!/bin/bash
# Build latest version of Emacs, version management with stow
# OS: Ubuntu 14.04 LTS
# version: 24.5
# Toolkit: lucid
# Warning, use updated version of this script in: https://github.com/favadi/build-emacs
set -e
View ph.conf
server {
server_name phabricator.example.com;
root /path/to/phabricator/webroot;
location / {
index index.php;
rewrite ^/(.*)$ /index.php?__path__=/$1 last;
}
location = /favicon.ico {
View ze2.xml
<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
<channel>
<generator>
clj-rss
</generator>
<link>
http://www.zhihu.com/read
</link>
<title>
View ze.xml
<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
<channel>
<generator>
clj-rss
</generator>
<link>
http://www.zhihu.com/read
</link>
<title>
View zhihu-reader-rss.xml
<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
<channel>
<generator>
clj-rss
</generator>
<link>
http://www.zhihu.com/read
</link>
<title>
View pptp
#!/bin/bash
if [ $(id -u) != "0" ]; then
printf "Error: You must be root to run this tool!\n"
exit 1
fi
clear
printf "
####################################################
# #
@llj098
llj098 / crc32.c
Created Jun 3, 2012
crc alg from freebsd source code
View crc32.c
/*-
* COPYRIGHT (C) 1986 Gary S. Brown. You may use this program, or
* code or tables extracted from it, as desired without restriction.
*/
/*
* First, the polynomial itself and its table of feedback terms. The
* polynomial is
* X^32+X^26+X^23+X^22+X^16+X^12+X^11+X^10+X^8+X^7+X^5+X^4+X^2+X^1+X^0
*
@llj098
llj098 / AsyncEnumerator.cs
Created May 16, 2012
A Simple AsyncEnumerator Implementation
View AsyncEnumerator.cs
using System;
using System.Net;
using System.Collections;
using System.Collections.Generic;
class Test
{
public static void Main(string[] args) {
@llj098
llj098 / MonoSortedSet.cs
Created Mar 30, 2012
SortedSet<T> comparison between Mono and Microsoft
View MonoSortedSet.cs
//
// SortedSet.cs
//
// Authors:
// Jb Evain <jbevain@novell.com>
//
// Copyright (C) 2010 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
You can’t perform that action at this time.