Skip to content

Instantly share code, notes, and snippets.

View ZucchiniZe's full-sized avatar

Alex Bierwagen ZucchiniZe

View GitHub Profile
@ZucchiniZe
ZucchiniZe / Gemfile
Last active August 29, 2015 14:10
Uses GitHub API to show repos
source 'http://rubygems.org'
gem 'rubygems-update'
gem 'bundler'
gem 'sinatra'
gem 'rest-open-uri'
gem 'json'
gem 'rest_client'
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)]];
}
}
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
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: ''}
});
@ZucchiniZe
ZucchiniZe / index.html
Last active August 29, 2015 14:18
Infographic for DNA Barcoding
<!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>
@ZucchiniZe
ZucchiniZe / index.html
Created April 10, 2015 23:16
DNA Barcoding Infographic
<!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">
@ZucchiniZe
ZucchiniZe / .gitignore
Last active August 29, 2015 14:20
Vindinium Bots
node_modules
;; -*- 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
class Club < ActiveRecord::Base
has_and_belongs_to_many :leaders
end
<p id="notice"><%= notice %></p>
<h1>Listing Clubs</h1>
<table>
<thead>
<tr>
<th>Club</th>
<!-- <th>Leader(s)</th> -->
<th>Advisor</th>