View fix_json.js
1 2 3 4 5 6 7 8 9
// Goal is to convert the JSON at this URL into a json string that has the keys quoted
// https://wiki.cac.washington.edu/display/SWS/Term+Resource+V5+Sample+Resource
 
var fs = require("fs");
var path = require("path");
 
var file = path.join(__dirname, "term_current.json");
 
var data = fs.readFileSync(file, "utf8");
View rightDropZone.js
1 2 3 4 5 6 7 8 9 10
import React from 'react/addons';
import { DonorCard } from './donorCard.js';
 
export class DropZone extends React.Component {
constructor(props) {
super(props);
this.state = {
draggedOver: false
}
}
View rightDropZone.js
1 2 3 4 5 6 7 8 9 10
import React from 'react/addons';
 
export class RightDropZone extends React.Component {
constructor(props) {
super(props);
this.state = {
draggedOver: false
}
}
render() {
View app.js
1 2 3 4 5 6 7 8 9 10
import React from 'react';
import { LeftDropZone } from './leftDropZone';
import { RightDropZone } from './rightDropZone';
 
export class ScholarshipsApp extends React.component {
render() {
return (
<section id="drop-zones">
<h1>Scholarships Admin</h1>
<LeftDropZone />
View node-modules.sh
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env zsh
 
npm -g install async-you
npm -g install bower
npm -g install browserify
npm -g install browserify-adventure
npm -g install bug-clinic
npm -g install casperjs
npm -g install cli-md
npm -g install coffee-script
View SassMeister-input.scss
1 2 3 4 5 6 7 8 9 10
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
 
$dark-purple: #4b2d83;
$medium-dark-purple: rgba(#9b7bb5,0.5);
$medium-light-purple: rgba(#b096c5,0.4);
$light-purple: rgba(#ebe3ef,0.15);
$dark-gold: #86754e;
View SassMeister-input.scss
1 2 3 4 5 6 7 8 9 10
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
 
@each $color in dark-purple, medium-dark-purple, medium-light-purple, dark-gold,
light-gold, cool-gray, slate-blue, yellow-gold, orange-red {
.bg-#{$color} {
background-color: #{$color};
}
View createServer.js
1 2 3 4 5 6 7 8 9 10
// jscs:disable requireMultipleVarDecl
'use strict';
 
var Hapi = require('hapi');
var _ = require('lodash');
 
var createServer = function(host, port, options) {
var server = new Hapi.Server(options);
 
server.connection({
View Gruntfile.js
1 2 3 4 5 6 7 8 9 10
'use strict';
 
module.exports = function(grunt) {
 
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-jscs');
grunt.loadNpmTasks('grunt-contrib-jshint');
View .travis.yml
1 2 3 4 5 6 7 8 9 10
language: node_js
node_js:
- '0.10'
services:
- mongodb
- redis-server
before_install:
- npm install -g grunt-cli
- npm install -g bower
install:
Something went wrong with that request. Please try again.