Skip to content

Instantly share code, notes, and snippets.

View BAXTER001's full-sized avatar

Baxter BAXTER001

View GitHub Profile
@BAXTER001
BAXTER001 / repro.py
Last active March 25, 2019 19:09
Keras multi gpu duplicate model names
from keras.models import Model
from keras.layers import Input, Add
from keras.utils import multi_gpu_model
m_in = Input( shape=(1,) )
m_out1 = Add()([m_in,m_in])
m_out2 = m_in
m = Model( m_in, [m_out1,m_out2] )
x = Input( shape=(1,) )
#!/usr/bin/env python
from beatbox import PythonClient
client = PythonClient()
client.serverUrl = "https://test.salesforce.com/services/Soap/u/32.0"
client.login('paul.baxter@totally-real-username.com.test','totallymypassword123')
result = client.query("""Select
Id,CaseNumber,CreatedDate
import glob
import random
import datetime
from moviepy.editor import *
fl = [fn for fn in glob.glob('/path/to/the/vids/*/*')]
while 1:
#! /usr/bin/env python
import beatbox
pc = beatbox.PythonClient()
pc.login('username@domain.tld','password')
for result in pc.query('select name from account limit 10'):
print result['Name']
@BAXTER001
BAXTER001 / gist:5061246
Created March 1, 2013 00:01
A bookmarklet for imgur to change all images linked in the comments to inline images.
javascript:(function(){var el=document.getElementsByClassName('image-link');for(i in el){ if(el[i].attributes!=undefined){var ni = document.createElement("img");ni.setAttribute('width','540px');ni.setAttribute('src',el[i].attributes['href'].value);el[i].parentNode.replaceChild(ni, el[i]);} }})()