Skip to content

Instantly share code, notes, and snippets.

model:
target: cldm.cldm.ControlLDM
params:
linear_start: 0.00085
linear_end: 0.0120
num_timesteps_cond: 1
log_every_t: 200
timesteps: 1000
first_stage_key: "jpg"
cond_stage_key: "txt"
@turbo1912
turbo1912 / query.js
Last active December 20, 2015 00:29
updating the post type before sending the post to the view..
User.findOne({ twitterID: req.user.id },
function(err, user) {
if (user){
var votedPosts = user.votedPosts;
Post.find(function (err, posts) {
if(posts){
for (var i = 0; i < posts.length; i++){
for (var j = 0; j < votedPosts.length; j++){
if(String(votedPosts[j]._id) == String(posts[i]._id)){
posts[i].votetype = votedPosts[j].votetype;
@turbo1912
turbo1912 / gist:5498905
Created May 1, 2013 22:30
A cool mobile credit card input
<!doctype html>
<script src="http://zeptojs.com/zepto.js"></script>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<style>
.slide{
overflow: hidden;
height:10.5px;