Skip to content

Instantly share code, notes, and snippets.

View chuckxD's full-sized avatar
💩
I may be slow to respond.

Chuck Schleutker chuckxD

💩
I may be slow to respond.
View GitHub Profile
@chuckxD
chuckxD / 0_reuse_code.js
Created September 23, 2015 14:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
test 'exclude user if already triggered today with different hash' do
# default profile, user has email, viewed something yesterday
Cie::Data.profiles('Test').insert({'_id' => USER0, 'email' => EMAIL, 'timestamp' => YESTERDAY})
Cie::Data.views('Test').insert({'user_id' => USER0, 'SkuID' => SKU+'view-yesterday', 'timestamp' => YESTERDAY})
Cie::Data.triggers('Test').insert({'the_hash' => 'other', 'trigger_date' => Time.now, 'email_address' => EMAIL})
users = AbandonProduct.get_users('Test', 'h', 1, 0)
assert_equal(0, users.count)
end
#!/usr/bin/env ruby
#
# Genghis v2.3.8
#
# The single-file MongoDB admin app
#
# http://genghisapp.com
#
# @author Justin Hileman <justin@justinhileman.info>
#
@chuckxD
chuckxD / base-bootstrap-ejs-view
Created June 20, 2018 18:34 — forked from ramontristani/base-bootstrap-ejs-view
EJS: Basic HTML/EJS boilerplate
<!doctype html>
<html>
<head>
<meta name="viewport" content="initial-scale=1, maximum-scale=1" />
<meta charset="utf-8" />
<title><%= title %></title>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" />
</head>
<body>
<---
_._ _..._ .-', _.._(`))
'-. ` ' /-._.-' ',/
) \ '.
/ _ _ | \
| a a / |
\ .-. ;
'-('' ).-' ,' ;
'-; | .'
\ \ /

Keybase proof

I hereby claim:

  • I am chuckxd on github.
  • I am chuckxd (https://keybase.io/chuckxd) on keybase.
  • I have a public key ASCJ4816UBkcEG2r13v09AnhK375etymwHwqWQuu13yFiQo

To claim this, I am signing this object:

@chuckxD
chuckxD / Docker shell commands.sh
Created October 15, 2020 01:59 — forked from bahmutov/Docker shell commands.sh
A personal cheat sheet for running local Node project in a Docker container
# See list of docker virtual machines on the local box
$ docker-machine ls
NAME ACTIVE URL STATE URL SWARM DOCKER ERRORS
default * virtualbox Running tcp://192.168.99.100:2376 v1.9.1
# Note the host URL 192.168.99.100 - it will be used later!
# Build an image from current folder under given image name
$ docker build -t gleb/demo-app .
# CLOSURES IN RUBY Paul Cantrell http://innig.net
# Email: username "cantrell", domain name "pobox.com"
# I recommend executing this file, then reading it alongside its output.
#
# Alteratively, you can give yourself a sort of Ruby test by deleting all the comments,
# then trying to guess the output of the code!
# A closure is a block of code which meets three criteria:
#
{
"basics": {
"name": "Chuck Schleutker",
"label": "Web Developer/Programmer",
"__picture": "https://secure.gravatar.com/avatar/d61fd87347e5c36c2b87265345dd9df3",
"email": "chuck.schleutker@gmail.com",
"phone": "(317) 508-4217",
"website": "",
"summary": "Hi, I'm Chuck! I'm a software engineer, web developer, and technical facilitator with over 15 years of experience. I received a B.A. in Liberal Arts and Sciences (Philosophy) and an A.S. in Computer Information Technology in 2010 but have mostly been working as a self-taught developer/designer since 1998.",
"location": {