This file contains 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
#! /usr/bin/env node | |
const express = require('express') | |
const app = express() | |
const port = 3000 | |
const response_text = 'Hello World!\nAlso more text here for testing\nAlso different text for lookbehind\n' | |
app.all("*", function (req, resp, next) { | |
console.log("Got request!"); |
This file contains 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 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
def getcounts(filepath = ""): | |
"""This will read a list of barcodes, and flatten to a list of | |
all the barcodes and how many times each one is in the list.""" | |
while not filepath: #ensure a filepath gets specified | |
print("This will read inventory counts from a list of barcodes/SKU's.") | |
filepath = input("Enter the path to the file you would like to parse.") | |
with open(filepath) as f:#open the file | |
data = f.read() | |
data = data.rstrip()#remove trailing newlines | |
data = data.split("\n")#split the string into a list of lines |
This file contains 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
// ==UserScript== | |
// @name Steam - accept the agreement | |
// @include https://store.steampowered.com/account/registerkey?key=* | |
// ==/UserScript== | |
var element = document.getElementById('accept_ssa'); | |
element.checked = true; |
This file contains 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 requests | |
import sys | |
po = "https://api.pushover.net" | |
token = "" | |
user_key = "" | |
messages_endpoint = "/1/messages.json" | |
def main(message): | |
r = push(message) |
This file contains 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
#!usr/bin/python3 | |
# -*- coding: UTF-8 -*- | |
"""This module is a sample of the OAuth2 authentication by Python3""" | |
__version__ = "0.1.0" | |
__author__ = "shin (shin.hateblo.jp)" | |
__copyright__ = "(C) 2012 shin" | |
__email__ = "[email protected]" | |
__license__ = "Apache License 2.0" |