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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
</head> | |
<body> | |
<div class="wrapper"> | |
<main>Main content here.</main> | |
</div> |
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 list = [1,2,3,4,5,6,7,8,9]; | |
list = list.sort(function() { | |
return Math.random() - 0.5; | |
}); | |
console.log(list); // prints something like: 4,3,1,2,9,5,6,7,8 | |
// For a raffle and 1 person to win. |
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
willInsertElement: function(){ | |
var scope = [].concat(this.get('scope')); | |
console.log(scope); | |
if(scope.indexOf('Testy') !== -1){ | |
this.set('isVisible', false); | |
} |
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
/** | |
* Dependencies. | |
*/ | |
var Hapi = require('hapi'); | |
var Good = require('good'); | |
var GoodConsole = require('good-console'); | |
var Boom = require('boom'); | |
var Joi = require('joi'); | |
// Create a new server |
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
<!doctype html> | |
<html> | |
<head> | |
<title>File Upload Page</title> | |
</head> | |
<body> | |
<h1 onClick="sendFormData()">Send it!</h1> | |
<script type="text/javascript"> |
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
[ | |
{ "keys": ["super+v"], "command": "paste_and_indent" }, | |
{ "keys": ["super+shift+v"], "command": "paste" }, | |
{ | |
"keys": ["super+k", "super+1"], | |
"command": "set_layout", | |
"args": { | |
"cols": [0.0, 0.75, 1.0] | |
,"rows": [0.0, 1.0] | |
,"cells": [[0, 0, 1, 1], [1, 0, 2, 1]] |
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
/** | |
* Dependencies. | |
*/ | |
var hapi = require('hapi'); | |
// Create a server with a host, port, and options | |
var server = hapi.createServer('0.0.0.0', parseInt(process.env.PORT, 10) || 3000); | |
server.pack.register([ | |
{ |
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
// Require chai.js expect module for assertions | |
var chai = require('chai'); | |
var expect = require('chai').expect; | |
// Application Server | |
var serverUri = '0.0.0.0:3000'; | |
// Official selenium webdriver testing setup | |
var webdriver = require('selenium-webdriver'); |
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
<!doctype html> | |
<html ng-app> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Angular Bots</title> | |
<style> | |
.dead { | |
background-color: red; | |
border: black 1px solid; | |
} |
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
# Require any additional compass plugins here. | |
# Set this to the root of your project when deployed: | |
http_path = "/" | |
css_dir = "public/css" | |
sass_dir = "public/sass" | |
images_dir = "public/images" | |
javascripts_dir = "public/javascripts" | |
# You can select your preferred output style here (can be overridden via the command line): |