Skip to content

Instantly share code, notes, and snippets.

View reactivepixel's full-sized avatar
🤖
Automated Autonomous Automatons

Chapman reactivepixel

🤖
Automated Autonomous Automatons
View GitHub Profile
@reactivepixel
reactivepixel / Simple JQMobile Page
Created June 27, 2012 21:50
Simple JQuery Mobile Page
<!-- ========== Page ============= -->
<article id="home" data-role="page">
<header data-role="header">
<h2>Header Content</h2>
</header>
<section data-role="content">
<p>Hello, World? Check out all the <a href="#parts">Parts and Pieces</a></p>
</section>
@reactivepixel
reactivepixel / simple.MQ.Smartphone.P.css
Created July 13, 2012 17:52
Media Query: Smartphones (portrait)
/* Media Query: Smartphones (portrait) */
@media only screen and (max-width : 320px) {
/* Your styles go here... */
}
@reactivepixel
reactivepixel / MQ.phone.L.css
Created July 13, 2012 18:11
Common Media Queries
/* Media Query: Smartphones (landscape) */
@media only screen
and (min-width : 321px) {
/* Your styles go here... */
}
@reactivepixel
reactivepixel / nonSemantic.js
Created July 20, 2012 19:13
Semantics in HTML and JS
var var1 = 25,
var2 = 50,
var3 = (xxx?) * 1.15,
var4 = (yyy?) * 1.15;
@reactivepixel
reactivepixel / Vagrantfile
Created December 15, 2014 18:10
Vagrant file for using Digital Ocean as a provider.
Vagrant.configure(2) do |config|
config.vm.provider "digital_ocean" do |provider, override|
override.ssh.private_key_path = '~/.ssh/id_rsa'
override.vm.box = 'digital_ocean'
override.vm.box_url = "https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box"
provider.name = "SpaceDock"
provider.token = 'xxxxxxxxxxxxxxxxx'
provider.image = 'ubuntu-14-04-x64'
// Node.js CheatSheet.
// Download the Node.js source code or a pre-built installer for your platform, and start developing today.
// Download: http://nodejs.org/download/
// More: http://nodejs.org/api/all.html
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@reactivepixel
reactivepixel / gist:9f693c48696e079028a0
Last active August 29, 2015 14:21
Node Dev Setup for OS X

Developer Installation

All dependencies and other pre-reqs steps for building this project from zero to running locally are listed, in order, below. These commands assume to are running the most current version of OS X. Yes, that means you should upgrade, as all good devs stay current. These commands should be ran in terminal and can be ran from anywhere unless otherwise specified on the command.

If you find a discrepency, please file an issue.

Install Homebrew

Install Homebrew if not already installed.

@reactivepixel
reactivepixel / appOutputExample.json
Created May 27, 2016 22:04
Example of output of an app
{
"id": "0032c47b-4a7b-4232-9cc3-6af718244ea8",
"title": "Best App Ever",
"description": "A fast paced side scrolling shooter",
"artAssets": [
{ "title": "Splash Screen", "srcLink": "http://i.imgur.com/5e5Ihb6.jpg" },
{ "title": "Cut Scene", "srcLink": "http://i.imgur.com/QQ3O6PO.jpg" }
],
"releaseDate": "2016-06-15T22:29:20.000Z",
"createdAt": "2016-05-15T22:29:20.000Z",
exports.server = app.listen(port, () => {
console.log('Server Active On', port);
});
{
"env": {
"node": true
},
"extends": "airbnb",
"plugins": [
"react"
],
"rules": {
"new-cap": 0,