This file contains hidden or 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
| source 'http://rubygems.org' | |
| gem 'rubygems-update' | |
| gem 'bundler' | |
| gem 'sinatra' | |
| gem 'rest-open-uri' | |
| gem 'json' | |
| gem 'rest_client' |
This file contains hidden or 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 middleWay(a, b) { | |
| if(a.length % 2 !== 0 && b.length % 2 !== 0) { | |
| return [a[Math.floor(a.length/2)], b[Math.floor(b.length/2)]]; | |
| } | |
| } |
This file contains hidden or 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 'capybara' | |
| require 'capybara/poltergeist' | |
| require 'awesome_print' | |
| Capybara.app_host = 'http://alexb.ninja/blog' | |
| Capybara.current_driver = :poltergeist | |
| Capybara.run_server = false | |
| module API | |
| class << self |
This file contains hidden or 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 fs = require('fs'); | |
| var mongoose = require('mongoose'); | |
| mongoose.connect(process.env.MONGO_URL); | |
| var BotSchema = mongoose.Schema({ | |
| name: {type: String, default: '', unique: true}, | |
| runs: {type: Number, default: 0}, | |
| owner: Object, | |
| code: {type: String, default: ''} | |
| }); |
This file contains hidden or 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> | |
| Chart | |
| </title> | |
| <script src="http://cdn.smtcs.rocks/jq/2.js"></script> | |
| <script src="http://cdn.smtcs.rocks/md/md.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.2/Chart.min.js"></script> | |
| </head> |
This file contains hidden or 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>Chart</title> | |
| <script src="http://cdn.smtcs.rocks/jq/2.js"></script> | |
| <script src="http://cdn.smtcs.rocks/md/md.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.2/Chart.min.js"></script> | |
| </head> | |
| <body> | |
| <div class="legend"> |
This file contains hidden or 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
| node_modules |
This file contains hidden or 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
| ;; -*- mode: emacs-lisp -*- | |
| ;; This file is loaded by Spacemacs at startup. | |
| ;; It must be stored in your home directory. | |
| (defun dotspacemacs/layers () | |
| "Configuration Layers declaration. | |
| You should not put any user code in this function besides modifying the variable | |
| values." | |
| (setq-default | |
| ;; Base distribution to use. This is a layer contained in the directory |
This file contains hidden or 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
| class Club < ActiveRecord::Base | |
| has_and_belongs_to_many :leaders | |
| end |
This file contains hidden or 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
| <p id="notice"><%= notice %></p> | |
| <h1>Listing Clubs</h1> | |
| <table> | |
| <thead> | |
| <tr> | |
| <th>Club</th> | |
| <!-- <th>Leader(s)</th> --> | |
| <th>Advisor</th> |