quick-n-dirty HTML markup generator
var dom = require('./domino');
dom.ul.li.span.class('note')
-- Euler 183 Solution | |
-- by Jordan Scales (for CS370) | |
-- Feb 19, 2014 | |
-- https://projecteuler.net/problem=183 | |
-- Determines whether the given denominator of a reduced fraction leads to | |
-- a terminating decimal | |
terminates :: Integral a => a -> Bool | |
terminates 1 = True | |
terminates n |
#include <iostream> | |
using namespace std; | |
int main() { | |
int lineCount = 0; | |
string line; | |
while (cin >> line) { | |
lineCount++; |
var lame = require('lame'); | |
var Speaker = require('speaker'); | |
var Spotify = require('spotify-web'); | |
var libxmljs = require('libxmljs'); | |
var username = process.env.SPOTIFY_USERNAME; | |
var password = process.env.SPOTIFY_PASSWORD; | |
Spotify.login(username, password, function (err, spotify) { | |
if (err) throw err; |
/** | |
* Original (annotated) | |
* As declared here: | |
* https://github.com/jcasimir/exercism_solutions/blob/master/javascript/nucleotide-count/nucleotide-count.js | |
*/ | |
var DNA = function(sequence){ | |
/** | |
* sequencce, displayedMarkers, and acceptedMarkers are all exposed | |
* | |
* var d = new DNA(['A', 'T', 'A']); |
if has('gui_running') | |
set background=dark | |
color base16-railscasts | |
syntax on | |
set tabstop=2 | |
set expandtab | |
set guifont=Inconsolata:h22 | |
set linespace=3 | |
set guioptions=- |
set -g prefix C-a | |
unbind C-b | |
set-option -g default-shell /bin/zsh | |
set -sg escape-time 1 | |
set -g base-index 1 | |
set -g pane-base-index 1 | |
bind r source-file ~/.tmux.conf \; display "Reloaded .tmux.conf!" |
const VISUAL_INDICATOR_TESTS = [ | |
function outline(style, focusStyle) { | |
// Fail if there are no differences in the element's outline | |
if (style.outline !== focusStyle.outline) { | |
return false; | |
} | |
// A focus outline that is not "none" is only valid if the outline | |
// also has a width | |
return focusStyle.outlineStyle !== "none" && |
let assert = require("assert"); | |
let mockDom = require("./mock-dom"); | |
describe("Landmarks plugin", function() { | |
let dom = null; | |
let plugin = null; | |
before(function(done) { | |
mockDom.createDom(function(domObj) { | |
// Assign `dom` to the new created jsdom |