Skip to content

Instantly share code, notes, and snippets.

View timothycarambat's full-sized avatar

Timothy Carambat timothycarambat

View GitHub Profile
Public Function ASIN_LOOKUP(asin As String) As String
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Top = 0
objIE.Left = 0
objIE.Width = 800
objIE.Height = 600
objIE.Visible = False
@timothycarambat
timothycarambat / diction.py
Created May 14, 2018 01:03
Fetch word Pronunciation from Dictionary.com
# This file will write to console text that contains the pronunciation of words in
# an array. It doesnt output as a file, but with about three lines it could.
import urllib2
from bs4 import BeautifulSoup
#establish source URL
base_url = "http://www.dictionary.com/browse/%s?s=t"
#Strip brackts from pronunciation returned
strip_brackets = False
#establish words to find
@timothycarambat
timothycarambat / httpd-vhosts.conf
Last active May 16, 2018 19:33
musiclookslike - fixed for /u/coldassturkey
## You need to host this folder on a webserver like NODE, NGINX, or Apache (I was using XAMPP on windows). You need to make the request for the
## song file to appear as though it comes from a http, https. Otherwise chrome wont allow you to play the file.
## After this is setup restart the server and go to localhost:8080. Then youre watching it play out
<VirtualHost *:8080>
ServerName kmlviewer.test
DocumentRoot "C:/xampp/htdocs/musiclookslike"
<Directory "C:/xampp/htdocs/musiclookslike">
AllowOverride All
Order Allow,Deny
Allow from all
@timothycarambat
timothycarambat / ticker.py
Created May 25, 2018 19:55
Ticker script for u/aventador
import pandas as pd
import pandas_datareader.data as web
from pandas_datareader.nasdaq_trader import get_nasdaq_symbols
from datetime import datetime
symbols = get_nasdaq_symbols()
start = datetime(2018, 5, 1)
tickers = ['GM','F','IBM','IMMVD','WRX','GOOGL']
@timothycarambat
timothycarambat / smutFeed.html
Created July 4, 2018 04:01
This is a simplistic HTML file that just runs and gets the worlds search results feed for all orientation's search for...adult material ;)
<html>
<head>
<title>Great Job, Humanity</title>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<style >
body {
background-color: #171616;
height: 100%;
}
.container {
@timothycarambat
timothycarambat / dots.js
Created September 18, 2018 06:21
/u/Toxic_Don from /r/programmingRequests P5.js help request
// This is just a slight re-work of the particle emitter example found in P5.js docs.
var system;
function setup() {
createCanvas(720, 400);
system = new ParticleSystem(createVector(width/2, 20));
}
function draw() {
@timothycarambat
timothycarambat / gist:d6b9ad923da84b75738ea3d9b84ccf11
Created September 19, 2018 02:37
u/thespiritlamp Help on updating old chrome UserScript. Auto grabs dragon eggs on online game Dragons Cave. Original Script https://gist.github.com/RedHatter/cdb1d15331b725619d62
// ==UserScript==
// @name Egg Napper
// @namespace idioticdev.com -> updated by timothycarambat
// @include http*://dragcave.net/locations/*
// @grant none
// @version 1
// ==/UserScript==
var SCROLL = true;
var ONLY_RARES = false;
@timothycarambat
timothycarambat / data.txt
Created September 19, 2018 04:09
u/BeginningAlternative Data Parser in Python
bla bla bla bla and more bla bla - last name, first name day time (activity 1; activity 2)bla bla bla bla and more bla bla - last name, first name day time (activity 1; activity 2)bla bla bla bla and more bla bla - last name, first name day time (activity 1; activity 2)bla bla bla bla and more bla bla - last name, first name day time (activity 1; activity 2)bla bla bla bla and more bla bla - last name, first name day time (activity 1; activity 2)bla bla bla bla and more bla bla - last name, first name day time (activity 1; activity 2)bla bla bla bla and more bla bla - last name, first name day time (activity 1; activity 2)bla bla bla bla and more bla bla - last name, first name day time (activity 1; activity 2)bla bla bla bla and more bla bla - last name, first name day time (activity 1; activity 2)bla bla bla bla and more bla bla - last name, first name day time (activity 1; activity 2)bla bla bla bla and more bla bla - last name, first name day time (activity 1; activity 2)bla bla bla bla and more bla bla -
body {
background-color: #0e0e0e;
}
.content {
background-color: #1d1c1c;
}
.indextab > li.active > a{
background-color: #8c8a8a !important;
}
.indextab > li > a:hover {
#!/bin/bash
#This file will take two inputs. One origin directory with N subfolders
#Another Directory which to post the Copied files to
#a Count as a number
#Will output in Target Directory a random selection of files.
#you may have to give permissions to this file to work via `chmod 755 randomizer.sh`
#You can execute the script by ./randomizer.sh '/home/me/Desktop/Files' '/home/me/Desktop/Destination' 5 2>/dev/null
#You will see some printed output. You can open the directory and the files will be present.
#If you specifiy a higher count than files that exist you will have to force kill the script.