Skip to content

Instantly share code, notes, and snippets.

# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
#!/usr/bin/env python
import numpy as np
import tensorflow as tf
from time import time
#n = 8000
#m = 256
#b = 128
#N = 1000
#!/usr/bin/env python2
import tensorflow as tf
import tensorflow.contrib.slim as slim
x = tf.placeholder(shape=(None,), dtype = tf.float32)
x_ = tf.reshape(x, (-1, 1))
with tf.variable_scope('foo', reuse = False):
ytrain = slim.batch_norm(x_, is_training = True, decay = 0.9)
@ricsonc
ricsonc / gist:c2783f6d570d1ff54df00cbb91fbcc5c
Created February 15, 2018 06:00
check most recent job max rss
sstat $(squeue -u $USER -t RUNNING --format="%F" | tail -n 1) --format="JobID,MaxRSS"
import bpy
import numpy as np
from mathutils import Vector
pth = "/home/ricson/Downloads/BAC_Batman70s_rocksteady/batman.obj"
out = "/home/ricson/Downloads/BAC_Batman70s_rocksteady/batman_out.obj"
#first clear everything
bpy.ops.wm.read_factory_settings(use_empty=True)
#!/usr/bin/env python
import subprocess
from collections import defaultdict
def split_jobs(stuff):
jobs = []
while stuff:
job = []
while stuff:
line = stuff.pop()