Skip to content

Instantly share code, notes, and snippets.

@BeauBouchard
BeauBouchard / canvasmouseinterface.js
Last active August 29, 2015 14:07
canvas on click handler
function canvasOnClickHandler(event) {
var hex = getCursorPosition(event);
//action
map.tilelist[hex.row][hex.column].whateverfunctionisinTILE();
};
function getCursorPosition(event) {
var x;
var y;
if (event.pageX || event.pageY) {
@BeauBouchard
BeauBouchard / gist:5d9a79d778acc443123f
Last active August 29, 2015 14:13
default gitignore
# creds and libs #
######################
public_html/downloads/*
public_html/uploads/*
public_html/config/*
# OS generated files #
######################
*.DS_Store
*.DS_Store?
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en-US"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en-US"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en-US"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<html lang="en-US"><!--<![endif]-->
<!-- ____ ____ _ _ -->
<!-- | _ \ | _ \ | | | | -->
<!-- | |_) | ___ __ _ _ _ | |_) | ___ _ _ ___| |__ __ _ _ __ __| | -->
<!-- | _ < / _ \/ _` | | | | | _ < / _ \| | | |/ __| '_ \ / _` | '__/ _` | -->
@BeauBouchard
BeauBouchard / index.html
Last active August 29, 2015 14:16
coding exercise for TripleLift interview
<!DOCTYPE html>
<html lang="en-US">
<head>
<title></title>
<!-- META -->
<meta charset='UTF-8'>
<meta name='author' content='Beau Bouchard'>
<meta name='description' content='coding challenge for TripleLift' />
<!-- JS -->
<script type="text/javascript" >
echo " :#: :+##' ";
echo " ###### +#######. +###################:' ";
echo " '######## .##################, +##########################'. ";
echo " #####+ ############+ :########### :: .:############+";
echo " ####: #####'. ', ,####' ' .'######,";
echo " ###: ##: ##+ ;##+ ";
echo " ##, ;## ## ,## ;### ";
echo " '## ### +' #### ";
echo " ### ### '. + '###'''+##### ";
echo " ### ##' #. ' +: ###' ### ";
@BeauBouchard
BeauBouchard / keybase.md
Created April 14, 2015 22:22
keybase.md

Keybase proof

I hereby claim:

  • I am beaubouchard on github.
  • I am beaubouchard (https://keybase.io/beaubouchard) on keybase.
  • I have a public key whose fingerprint is 7B81 7F6D 3E01 6A01 63F4 CF81 64C1 3670 1702 9B88

To claim this, I am signing this object:

`..` `....``
./oydNNNNh. .:+ooo+/:-.` .:+shdmmNNNNNNNmdhs+:-:://++++o++++///::-.``
`:ohmNdyo:.`:mNh `......`` `/ymNmdyyyhhdmNNmdhso/:.` ./shmNmdyo+/-..`````.:+dNNNNmhyyssssyyyhhhdmmNNNNmmdhyso+:-.`
Unhandled exception: page fault on read access to 0x00000000 in 64-bit code (0x0000000000000000).
Register dump:
rip:0000000000000000 rsp:00000000021cd6f8 rbp:0000000000000000 eflags:00010202 ( R- -- I - - - )
rax:0000000183152958 rbx:00000000022f1110 rcx:00000000000001f8 rdx:0000000000010001
rsi:00000000022fd0f0 rdi:0000000000000000 r8:0000000000000000 r9:0000000000000000 r10:00000000022fd1d8
r11:0000000000000002 r12:00000001827a7cf0 r13:0333333333333333 r14:00000000021cdb30 r15:00000000021cdaa0
Stack dump:
0x00000000021cd6f8: 00000001824886b1 00000000022fd0f8
0x00000000021cd708: 0000000182492d06 0000000000000000
0x00000000021cd718: 0000000000000000 00720074006e006f
@BeauBouchard
BeauBouchard / Grandtheftauto5-linux.md
Last active August 20, 2024 13:33
How to install Grand Theft Auto V on Linux (Ubuntu x64 14.04) using wine.

How to install Grand Theft Auto V on Linux (Ubuntu x64 14.04) using wine.

Date Completed: Not done yet ~~ April 23rd 2015

My Test System

  • Video Card: Nvidia GTX 465 (lol right? Game runs shitty)
  • Driver: tested on 331.38, works on 331.38+
  • OS: Ubuntu x64 14.04
  • POL: I used Play on linux 4, I assume most of the capabilities are in winetricks
  • Wine: wine-staging Sun, 19 Apr 2015 version 1.7.41 x64 bit