Skip to content

Instantly share code, notes, and snippets.

View LuoZijun's full-sized avatar
🎯
Focusing

寧靜 LuoZijun

🎯
Focusing
View GitHub Profile
@LuoZijun
LuoZijun / yuv2rgb.py
Last active September 19, 2017 09:27
YUV420P To RGB Image
#coding: utf8
import sys
try:
import Image
except:
from PIL import Image
# YUV420P To RGB
@LuoZijun
LuoZijun / README.rst
Last active July 3, 2016 15:13
[爱,方式,包容,创意 —— 在微软设计] 下载
Date

07/03 2016

Source

daxue.qq.com/content/content/id/2578

@LuoZijun
LuoZijun / isPrime.js
Last active August 30, 2016 04:09
JavaScript 寻找素数
"use strict";
function primes_with_generator(start, max){
// start: int ( start >= 2 )
// max : int
if ( start < 2 ) throw new Error("start > 2 | start == 2");
var generator = function* (start, max){
var n = start || 2;
while ( n <= max ){
yield n++;
@LuoZijun
LuoZijun / readme.rst
Created September 7, 2016 00:26
Node JavaScript File I/O

NodeJS 解释器文件I/O (FILE I/O)

Date

09/07 2016

介绍

@LuoZijun
LuoZijun / README.rst
Last active October 20, 2016 07:01
MongoDB Auto-Incrementing Sequence Test
@LuoZijun
LuoZijun / datetime.py
Last active November 13, 2016 01:33
Python Datetime Lib
#!/usr/bin/env python
import sys, time, operator, datetime
""""
$ pip2 install pytz tzlocal
"""
try:
import pytz
@LuoZijun
LuoZijun / README.rst
Last active February 6, 2017 23:43
RavenZ Cup VI Finals

RavenZ Cup VI FINALS

Date

02/06 2016

介绍

@LuoZijun
LuoZijun / README.rst
Last active February 13, 2017 16:40
Web Worker

Test Zlib.js with Web Worker

Date

2017/02/14

git clone "https://gist.github.com/LuoZijun/9efafd7a69ffb00b0ad8db373073315e"
@LuoZijun
LuoZijun / adler32.rs
Last active February 10, 2020 10:37
Rust Adler32
#![allow(dead_code)]
// Copy from https://golang.org/src/hash/adler32/adler32.go
// mod is the largest prime that is less than 65536.
const MOD: usize = 65521;
// nmax is the largest n such that
// 255 * n * (n+1) / 2 + (n+1) * (mod-1) <= 2^32-1.
// It is mentioned in RFC 1950 (search for "5552").
const NMAX: usize = 5552;
@LuoZijun
LuoZijun / package.json
Last active February 20, 2017 05:32
Demo Config
{
"name": "webapp",
"version": "1.0.0",
"description": "web application",
"keywords": [
"web",
"application"
],
"author": "",
"license": "",