Skip to content

Instantly share code, notes, and snippets.

View georgicodes's full-sized avatar

Georgi Knox georgicodes

  • Brooklyn, NY
  • 10:33 (UTC -04:00)
View GitHub Profile
asdfasdf
@georgicodes
georgicodes / gist:ed2c0cb8c34b95a62c8f
Created June 23, 2014 22:34
Simple Gruntfile that runs jamsine tests in headless browser
module.exports = function(grunt) {
grunt.initConfig({
jasmine : {
// Your project's source files
src : 'src/**/*.js',
options: {
// Your Jasmine spec files
specs : 'specs/**/*spec.js',
// Your spec helper files
helpers : 'specs/helpers/*.js'
@georgicodes
georgicodes / gist:869ea87c16423d9401a4
Created June 10, 2014 21:03
Simple HTML skeleton
<html>
<head>
<title> The simplest HTML example
</title>
</head>
<body>
<h1> This is an HTML Page </h1>
</body>
</html>
@georgicodes
georgicodes / gist:2d3fe734c98cd1197e4a
Created May 12, 2014 23:44
A simple Gruntfile which watches a directory for changes to coffeescript files, compiles them and also runs coffeelint. An additional MochaTest tasks runs independently.
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
coffee: {
files:['src/**/*.coffee'],
tasks: ['coffee:compileAll', 'coffeelint:app'],
options: {
@georgicodes
georgicodes / Booking
Last active August 29, 2015 13:57
The beginnings of a RESTful API for an event booking system.
public class Booking {
private final Event event;
private final int bookingId;
private final String bookingName;
private final int numTickets;
public Booking(Event event, int bookingId, String bookingName, int numTickets) {
this.bookingName = bookingName;
this.bookingId = bookingId;
@georgicodes
georgicodes / gist:9182096
Created February 24, 2014 04:46
Horizontal list of font-awesome icons
.actions li {
display: inline;
list-style-type: none;
padding-right: 5px;
font-size: 1.2em;
}
<span class="actions">
<ul>
<li><i class="fa fa-heart"></i> Add to my wishlist</li>
module.exports = function(grunt) {
grunt.initConfig({
less: {
development: {
options: {
compress: true,
yuicompress: true,
optimization: 2
},
files: {