Skip to content

Instantly share code, notes, and snippets.

View dorkitude's full-sized avatar

Kyle Wild dorkitude

View GitHub Profile
Keen.configure(window.ENV.keenProjectId,window.ENV.keenApiKey),
Keen.onChartsReady(function(){
var e=new Keen.Series("connect",{
analysisType:"count",
timeframe:"last_7_days",
interval:"daily"
}),
t=new Keen.Series("connect",{
This is just one small piece of this mostrosity.
read on.
MEDICARE AT AGE 76, IMPORTANT PLEASE READ - ANYONE WHO DOUBTS THIS IS
TRUE CAN DOWNLOAD THE NEW OBAMA CARE AND LOOK UP THE PAGES MENTIONED.
THIS IS JUST THE BEGINNING......................PLEASE PASS THIS
OUTRAGE TO EVERYONE ON YOUR LIST!!! THIS should be read by everyone,
especially important to those over 75....... If you are younger, then
it may apply to your parents....
@dorkitude
dorkitude / in_viewport.js
Created December 19, 2016 22:49 — forked from jjmu15/in_viewport.js
check if element is in viewport - vanilla JS. Use by adding a “scroll” event listener to the window and then calling isInViewport().
// Determine if an element is in the visible viewport
function isInViewport(element) {
var rect = element.getBoundingClientRect();
var html = document.documentElement;
return (
rect.top >= 0 &&
rect.left >= 0 &&
rect.bottom <= (window.innerHeight || html.clientHeight) &&
rect.right <= (window.innerWidth || html.clientWidth)
);
@dorkitude
dorkitude / in_viewport.js
Created December 19, 2016 22:49 — forked from michelbio/in_viewport.js
check if element is in viewport - vanilla JS. Use by adding a “scroll” event listener to the window and then calling isInViewport().
// Determine if an element is in the visible viewport
// The function could be used by adding a “scroll” event listener to the window and then calling isInViewport().
function isInViewport(element) {
let rect = element.getBoundingClientRect();
let html = document.documentElement;
return (
rect.top >= 0 &&
rect.left >= 0 &&
rect.bottom <= (window.innerHeight || html.clientHeight) &&
rect.right <= (window.innerWidth || html.clientWidth)
@dorkitude
dorkitude / paragraphs cut.txt
Created March 15, 2017 20:54
gist saving this for later
Most analytics tools are made to help app makers study what users are doing in some specific type of app. This kind of tool works okay, provided your app looks enough like the others apps the tool was built for, and your users’ behaviors are enough like the behaviors in those other apps. What if your app is unique, and the questions you have are unique? (Before Keen, the state of the art was to build your own Observatory from scratch.)
The data model breadth of those tools may not be enough for you. What if user behavior in the app layer is only a part of your business? What if you want to study your marketing website copy, your paid acquisition funnel, the response time performance of your your webservices layer, all in the same system? (Before Keen, the state of the art was to build your own Observatory from scratch.)
What if you want other humans — your customers, your partners, your merchants, or just other departments in your company — to get value from the same data? What if you wanted applications to
@dorkitude
dorkitude / bouncing_ball.py
Created December 21, 2022 17:14
basic game on pygame
import pygame
# Initialize Pygame
pygame.init()
# Set the window size and title
screen_size = (600, 400)
screen = pygame.display.set_mode(screen_size)
pygame.display.set_caption("Bouncing Ball")