Skip to content

Instantly share code, notes, and snippets.

If you stop learning, you stop living.

Shawn Deprey shawndeprey

If you stop learning, you stop living.
Block or report user

Report or block shawndeprey

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
shawndeprey / main.js
Last active Nov 14, 2019
IdleVue implementation for SPA timeout article
View main.js
import IdleVue from "idle-vue"
const eventsHub = new Vue()
Vue.use(IdleVue, {
eventEmitter: eventsHub,
idleTime: 900000, // 15 Minutes
new Vue({
// ...Your vue config will be here. Below it add:
onIdle() {
// Replace the following 2 lines to match 1) How you store your sessions in your vue app and 2) your signin/login route.
shawndeprey / axios.js
Last active Nov 13, 2019
Axios configuration for the SPA timeout article
View axios.js
function(response) {
return response
function(error) {
return new Promise((resolve, reject) => {
if (error && error.response && error.response.status === 440) {
// Replace the following 2 lines to match 1) How you store your sessions in your vue app and 2) your signin/login route.
shawndeprey / application_controller.rb
Last active Nov 13, 2019
Application controller example for SPA timeout article
View application_controller.rb
class ApplicationController < ActionController::API
before_action :check_timeout
def check_timeout
@user = User.find_by(id: session[:identity])
return render json: {errors:["A user is required."]}, status: 401 if @user.blank?
if @user.should_session_remain_active?
return render json: {errors:["Session timed out."]}, status: 440
shawndeprey / user.rb
Last active Nov 13, 2019
User code snippit for SPA article
View user.rb
class User < ApplicationRecord
def set_timeout!
self.timeout = 15.minutes.from_now
def should_session_remain_active?
return false if timeout.blank?
View session_object_concept.js
  • Game Does Not Handhold (Combat will be difficult and you need to be careful, enemy agro distance needs to be carefully considered, enemies your same level or lower can still be powerful adversaries)
  • Leveling takes a very long time.
  • Many of your skills are based on actions you take such as you defense or ability with a weapon.
  • Terrain, map locations, NPCs, etc. need to be known by the player. The map can help, but only as much as a real map for the most part.
  • Quest tracking is not on for a quest by default.
  • You may need to read the actual content of a quest to understand what to do.
  • Different levels of skills can always be used even if you get a stronger version of that skill.
  • Bag space is very important, Get more bags early.
  • There are helpful NPCs damn near everywhere. Pretty much every building and area is worth exploring.
  • It's good to specialize instead of trying to do everything since it takes a really long time to do anything. (i.e. focus on crafting particular types of armor)
shawndeprey /
Created Oct 3, 2018
Script for New World Video

What's up Ladies & Gentlemen of the internet? Amazon's New World is currently in closed-beta with a strict NDA. Those with closed-beta access have been able to get a first look at the game, but for the rest of us, we've only had speculation. That is until now of course as a player in that closed-beta leaked over 2 hours of gameplay on pornhub. What that leaked footage gives us is a great window into where Amazon is going with New World. This is Radical Edward for Less Than Epic giving you my first take on the leaked footage so strap in and let's get started.

So first, what is the game? Amazon's New World is an MMORPG about settling an alternate colonial America. That is, you are a 17th centry settler moving to new and untouched lands filled with magic, wildlife and monsters. What you will be doing in the game is exactly what a settler would do, settle. From the leaked footage we see what looks to be a new player who is hunting, gathering, crafting and interracting with other real players. We don't get to see



  • Suave One (Reseller)
  • Suave Two (Reseller)
  • Suave Three (Reseller)


Network Admin in All 3 Networks

View seed-data.rb
# Create your open submission project with at least 3 briefs, save 5 applications and then run the following.
project_id =
@p = Project.find_by_id(project_id)
@stages = [{name: "Stage One", project_id: project_id, start_date: 3.weeks.ago, end_date: 2.weeks.ago, is_weighted: false, hide_other_activity: false}),{name: "Stage Two", project_id: project_id, start_date: 2.weeks.ago, end_date: 1.weeks.ago, is_weighted: true, hide_other_activity: true}),{name: "Stage Three", project_id: project_id, start_date: 1.weeks.ago, end_date: 1.hour.ago, is_weighted: false, hide_other_activity: false})
View When it comes to library management, you should consider locking your gemfile to specific versions of libraries. The reason is that these will upgrade dot-versions without your knowledge at times, making your stack unstable. You should do the same on the front-end as well.

# Instead of: gem 'rails', '~> 5.2.0'
gem 'rails', '= 5.2.0' Indentation bro! Always write beautiful code! ALWAYS!

You can’t perform that action at this time.