Skip to content

Instantly share code, notes, and snippets.

View llan-ml's full-sized avatar

lanlin llan-ml

  • Xi'an Jiaotong University
  • Xi'an, China
View GitHub Profile
@OrionUnix
OrionUnix / Sublime Text 3.2.2 Build 3211 key licence
Last active June 5, 2024 04:32
Sublime Text 3.2.2 Build 3211 key licence
----- BEGIN LICENSE -----
Member J2TeaM
Single User License
EA7E-1011316
D7DA350E 1B8B0760 972F8B60 F3E64036
B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD
FA0A2ABE 25F65BD8 D51458E5 3923CE80
87428428 79079A01 AA69F319 A1AF29A4
A684C2DC 0B1583D4 19CBD290 217618CD
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active June 16, 2024 15:41
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@domluna
domluna / conv_tf.py
Created May 26, 2016 17:42
For reference of using tf.get_variable
def conv2d(inputs, filter, strides, name='conv2d'):
k = tf.get_variable('W', filter, initializer=xavier_initializer_conv2d())
b = tf.get_variable('b', filter[-1], initializer=tf.constant_initializer(0.0))
conv = tf.nn.conv2d(inputs, k, strides, 'SAME')
bias_add = tf.nn.bias_add(conv, b)
return tf.nn.relu(bias_add, name=name)
def vision_model(frames, n_frames):
with tf.variable_scope('Conv1') as scope:
@zouyang08
zouyang08 / OpenWithSublimeText.bat
Last active January 15, 2020 07:28 — forked from cstewart90/OpenWithSublimeText3.bat
Open folders and files with Sublime Text 3 from windows explorer context menu (tested in Windows 10)
@echo off
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f
pause
@dwf
dwf / gist:3790284
Created September 26, 2012 20:12
A key-aware default dictionary implementation.
class KeyAwareDefaultDict(dict):
"""
Like a standard library defaultdict, but pass the key
to the default factory.
"""
def __init__(self, default_factory=None):
self.default_factory = default_factory
def __getitem__(self, key):
if key not in self and self.default_factory is not None: