This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
,---. | |
,.'-. \ | |
( ( ,'"""""-. | |
`,X `. | |
/` ` `._ | |
( , ,_\ | |
| ,---.,'o `. | |
| / o \ ) | |
\ ,. ( .____, | |
\| \ \____,' \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jq -r '.dependencies | map(.lib_paths[]) | join(":")' conanbuildinfo.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Tagging interface for types that are Artifacts | |
struct Artifact {} | |
typedef shared_ptr<Artifact> ArtifactPtr; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/cilynx/zm-w0002 | |
https://gist.github.com/opless/d1effc2eefdf2dfe3b1a6418979bc8ba | |
http://ushomeautomation.com/Notes/Funlux/ |