Skip to content

Instantly share code, notes, and snippets.

View jacquesqiao's full-sized avatar
🎯
Focusing

Qiao Longfei jacquesqiao

🎯
Focusing
View GitHub Profile
def getrss():
import os
import psutil
process = psutil.Process(os.getpid())
return process.memory_info().rss
return 0
import types
import paddle.fluid.layers as layers
def is_bad_doc(doc):
if doc is None:
return True
if len(doc.split('\n')) < 10:
return True
return False
digraph G {
ParameterUpdater [label="ParameterUpdater", shape=box]
LocalUpdater [label="LocalUpdater", shape=box, fillcolor=red, style=filled, color=white, fontcolor=white]
SgdLocalUpdater [label="SgdLocalUpdater", shape=box]
SgdCpuUpdater [label="SgdCpuUpdater", shape=box]
SgdUpdaterWithCpuAverager [label="SgdUpdaterWithCpuAverager", shape=box]
SgdThreadUpdater [label="SgdThreadUpdater", shape=box]
ParameterUpdater -> LocalUpdater
@jacquesqiao
jacquesqiao / SavWav.cs
Created April 23, 2017 13:48 — forked from darktable/SavWav.cs
Unity3D: script to save an AudioClip as a .wav file.
// Copyright (c) 2012 Calvin Rien
// http://the.darktable.com
//
// This software is provided 'as-is', without any express or implied warranty. In
// no event will the authors be held liable for any damages arising from the use
// of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it freely,
// subject to the following restrictions: