This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function randomElement(arr) { | |
return arr[Math.floor(Math.random()*arr.length)]; | |
} | |
var enemyNames = ['Wolf', 'Bat', 'Eagle', 'Bear', 'Tiger', 'Crocdile']; | |
var damage = 0.5; | |
var Enemy = function(health, name) { | |
this.health = health; | |
this.name = name; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grunt.registerMultiTask('pack', function() { | |
var objects = { | |
"meta": { | |
"generated": Date.now(), | |
"version": "1.0", | |
"app": "Pumpkinator Asset Packer", | |
"url": "http://some.url", | |
"copyright": "Hyfn 2015" | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
meta: { | |
generated: 1441221153762, | |
version: '1.0', | |
app: 'Pumpkinator Asset Packer', | |
url: 'http://some.url', | |
copyright: 'Hyfn 2015' | |
}, | |
arm: [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// private variables | |
let baz = 'baz'; | |
export default class Foo { | |
constructor() { | |
// public | |
this.bar = 'bar'; | |
} | |
//public methods | |
log() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAW4AAAFuCAYAAAChovKPAAAgAElEQVR4Xuy9CbRl6VUets98731TVXW3xCAgVrJYToIXCVmOEUhCWAwSxkaGlQTHJmGBpNaEJAYJNYOELAsRkNRoHjAIpEZDS4BZhOAEQhLbCAcWNqBudatBWI6RhLq7uqree3c6wz1Z3/ftfe7tdlYsWj1U9ztPNFX13rvnnvOfe769/29/+9uJjV/jCowrMK7AuAKPqBVIHlFnO57suAKf3Qrsm9mBmZVmhs94bWanZnb82b18/K1xBa7uFRiB++q+P+PZ3XsFzpvZN5rZ3zCzv2pmj3vHDz7zy5LU7PjKFds7mJmtVnbp8mU7ODiwixcv2fnzF+z4ytyW65VNJhO77rGfb5/61J/bFz/+P7Kmaex5P/lzHzWzPzezj5nZ75nZ/2Zmd44LP67A1bwCI3BfzXfnbJ/bNWb2nWb2dWb2Za9/wd973N7enhXJxrqus6bpLM9LS4rcNl1r1jW26TrLssxOr1zmn5dPTu1xj3uczU+XtjhZWF6VdnB0aKvVyvbOH1mK164bu/PPP2WbzcYsTezg6MhOji/b+QvX2fNv/PnfNLPfNrN3m9mnzvbtGK/+alqBEbivprsxnstLzewZ73zJdz/hysW7Ld+bWrU3s6IorV3VVhSZ5UlieVVZV6+tazbWbHrr+41NJ6Utrly2aja1eoWf1bbpzObzuT3mCx9nzbqx1Xptl++5ZF/0uC+wOjWrphNL0tSaxdLadWN/+vGP21/78i+3S8eX7fO+8IvsM5/+lE2qiTVNbVc+/Wn7kff/5u+b2a+Z2U+Z2Wq8XeMKPFwrMAL3w7Xy4/tiBR5vZj/03n/0ou+eHpy3vu+sqTsrs8Q+dssttjeb2nVf+Pm26jrb3z+wT33i31huvZWTiRVFatPJnk0PzlmeFwTX1cllu3Tpks1me3bp7jttNqns+NJlm52/YJbmVpalLeZLq1dz2z86Z3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta property="fb:app_id" content="406655189415060"> | |
<meta property="og:site_name" content="Giphy"> | |
<meta property="og:url" content="http://giphy.com/gifs/rhuber-test-djeEV9Xji6zjgLXBxug"> | |
<meta property="og:title" content="Animated GIF"> | |
<meta property="og:description" content="The best GIFs are on Giphy"> | |
<meta property="og:type" content="video.other"> | |
<meta property="og:image" content="http://media.giphy.com/media/djeEV9Xji6zjgLXBxug/giphy.gif"> | |
<meta property="og:image:width" content="912"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant@vagrant-ubuntu-trusty-64:/www/website/Katch_FE$ sudo echo "deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list | |
deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main | |
vagrant@vagrant-ubuntu-trusty-64:/www/website/Katch_FE$ sudo apt-get install nuget -y | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following extra packages will be installed: | |
libnuget-core-cil | |
The following NEW packages will be installed: | |
libnuget-core-cil nuget |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create this file in your project root | |
web: node <entry point file here> | |
EXAMPLE: | |
web: node app.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var EventTypes = { | |
START: { | |
handler: onDocumentMouseDown, | |
events: ['mousedown', 'touchstart'] | |
}, | |
MOVE: { | |
handler: onDocumentMouseMove, | |
events: ['mousemove', 'touchmove'] | |
}, | |
END: { |