Skip to content

Instantly share code, notes, and snippets.

View 2hands10fingers's full-sized avatar
💭
Why run on coffee when you can run on the V8 engine?

Tono 2hands10fingers

💭
Why run on coffee when you can run on the V8 engine?
View GitHub Profile
@2hands10fingers
2hands10fingers / whiskey_choice.py
Created September 16, 2020 01:33
Choose a Whiskey at Random
from random import randrange
# All dem whiskeys
whiskeys = [
'Blade & Bow',
'Ohishi Whisky Sherry',
'Glenlivet',
'Oban',
'Suntory Whiskey Toki',
'Powers whiskey',
import math
class Stats:
def __init__(self, dataset):
self.dataset = dataset
self.data_length = len(dataset)
self.mean = sum(dataset) / self.data_length
self.variance = None
self.SD = None
import numpy as np
"""
Special Notes:
- A model is your set weights and biases, and potentially an activation function
and potentially your type of network? Not sure. Need clarification
"""
# Inputs / variables from your dataset
import csv
kitchen =[]
pastry = []
bakery = []
elseer = []
time = "morn"
def time_loc(loc):
<div id="686570787875442569" class="wcustomhtml" style="width: 100%; overflow-y: hidden;" align="left">
<script src= "https://book.mylimobiz.com/v4/Scripts/iframeResizer/iframeResizer.min.js" type="text/javascript">
</script>
<iframe id="ores4iframe" style="overflow: hidden; height: 1291px;" tabindex="0" src="https://book.mylimobiz.com/v4/newtonsbighat?refererUrl=http://www.newtonsbighatlimousines.com/" width="100%" height="150" frameborder="0" scrolling="no"></iframe> <script type= "text/javascript" src= "https://book.mylimobiz.com/v4/widgets/widget-loader.js">
</script></div>
</div>
@2hands10fingers
2hands10fingers / building out table rows.js
Created August 22, 2017 19:25
Building out options with a loop in a selection drop down
$(function(){
var requestUrl = '/physmodo/API/GYM-OWNERS.php';
$.post(requestUrl, function (data) {
for(var i = 0; i < data.length; i++){
// DATA SELECTIONS
var dataTable = $('.dataTable--body');
var gymOwnerID = data.["#"];
var gymOnwerName = data.["#"];
<?php
/**
* The base configuration for WordPress
*
* The wp-config.php creation script uses this file during the
* installation. You don't have to use the web site, you can
* copy this file to "wp-config.php" and fill in the values.
*
* This file contains the following configurations:
*
import math
class MyProcessingClass:
def __init__(self, str_list):
self._str_list = str_list
self._float_list = []
from tweepy import Stream
from tweepy import OAuthHandler
from tweepy.streaming import StreamListener
import time
ckey = 'Xwk45yibY06n7wHFHuoI2KVhi'
csecret = 'uWbOJZdRTmLDFKIxJKoR3huDwprOqefpwctEMIfE3gXfwruN5H'
atoken = '3096677539-t2d26ZLh1YbciYRub7TtGfEvrhF5MxhRTsNjuIb'
asecret = 'N4sSNMBw0TLG8yEwcGRAL15bSSeK1oO8SBZG63B8WiE9s'