Skip to content

Instantly share code, notes, and snippets.

View jamesbiederbeck's full-sized avatar

Victor Biederbeck jamesbiederbeck

View GitHub Profile
#!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__ = "s2pch.luck@gmail.com"
__license__ = "Apache License 2.0"
@jamesbiederbeck
jamesbiederbeck / pushover.py
Created February 11, 2018 08:55
A basic pushover client in python
import requests
import sys
po = "https://api.pushover.net"
token = ""
user_key = ""
messages_endpoint = "/1/messages.json"
def main(message):
r = push(message)
// ==UserScript==
// @name Steam - accept the agreement
// @include https://store.steampowered.com/account/registerkey?key=*
// ==/UserScript==
var element = document.getElementById('accept_ssa');
element.checked = true;
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
@jamesbiederbeck
jamesbiederbeck / googlenet.py
Created April 16, 2019 23:12 — 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):
#! /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!");