Skip to content

Instantly share code, notes, and snippets.

@jw3
jw3 / googlenet.py
Created January 5, 2019 18:35 — forked from joelouismarino/googlenet.py
GoogLeNet in Keras
from scipy.misc import imread, imresize
from keras.layers import Input, Dense, Convolution2D, MaxPooling2D, AveragePooling2D, ZeroPadding2D, Dropout, Flatten, merge, Reshape, Activation
from keras.models import Model
from keras.regularizers import l2
from keras.optimizers import SGD
from googlenet_custom_layers import PoolHelper,LRN
def create_googlenet(weights_path=None):
,---.
,.'-. \
( ( ,'"""""-.
`,X `.
/` ` `._
( , ,_\
| ,---.,'o `.
| / o \ )
\ ,. ( .____,
\| \ \____,' \
Lathe
- http://www.grizzly.com/products/10-x-22-VS-Lathe-with-2-Axis-DRO/G0752Z
- impacted by tariffs, ~$500 increase
Mill
- http://www.grizzly.com/products/Mill-Drill-with-Stand-and-DRO/G0759
- no tariff increase, taiwan machine
Horizontal saw
- http://www.grizzly.com/products/4-x-6-Metal-Cutting-Bandsaw/G0622
jq -r '.dependencies | map(.lib_paths[]) | join(":")' conanbuildinfo.json
@jw3
jw3 / fix_includes.sh
Created April 12, 2018 22:45 — forked from Canta/fix_includes.sh
Fix include/include_tasks with tags for ansible v2.5
#!/bin/bash
# This dirty script is supposed to run on your ansible directory.
# It could obviously be done better, but it's just a single use script, so I don't really care.
# Worked fine with bash 4.2
# Anyway, check its syntax (at least the first line, the one setting the RESULT var), and use with caution.
# The script implements what's suggested here:
# http://docs.ansible.com/ansible/2.5/porting_guides/porting_guide_2.5.html#dynamic-includes-and-attribute-inheritance
@jw3
jw3 / Artifact
Last active February 15, 2018 13:46
artifacts
// Tagging interface for types that are Artifacts
struct Artifact {}
typedef shared_ptr<Artifact> ArtifactPtr;
include <iostream>
#include <vector>
#include <range/v3/range_for.hpp>
#include <range/v3/utility/functional.hpp>
#include <range/v3/view/iota.hpp>
#include <range/v3/view/join.hpp>
#include <range/v3/view/transform.hpp>
using T = int;
https://groups.google.com/d/msg/android-rpi/ri_yOnGcVkE/25DHSptZBAAJ
https://github.com/lineage-rpi/android_device_brcm_rpi3/blob/cm-14.1/mkimg.sh
```
#/bin/bash
echo "EXPERIMENTAL SCRIPT! USE AT YOUR OWN RISK!"
if [ `id -u` != 0 ]; then
echo "Must be root to run script"
exit
import cats.data.StateT
import cats.implicits._
import scala.collection.JavaConverters._
import scala.concurrent.{Await, Future}
import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.duration.Duration
import twitter4j._, twitter4j.conf.ConfigurationBuilder
object YourTweetsAreTooLong {
private type PagingState = (Long, Option[Long])
https://github.com/cilynx/zm-w0002
https://gist.github.com/opless/d1effc2eefdf2dfe3b1a6418979bc8ba
http://ushomeautomation.com/Notes/Funlux/