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>TypeTo</title> | |
| <link href='http://fonts.googleapis.com/css?family=Shadows+Into+Light' rel='stylesheet' type='text/css'> | |
| <style type="text/css"> | |
| input, div { | |
| font-size: 36px; | |
| font-weight: bold; | |
| } |
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
| // I enjoy doing interview questions just because they make my brain feel better. | |
| // Here's the solution I came up with for this interview question on interviewcake.com | |
| // http://www.interviewcake.com/question/matching-parens | |
| var str = 'Sometimes (when I nest them (my parentheticals) too much (like this (and this))) they get confusing.'; | |
| findMyMate(str, '(', ')', 10); | |
| /** | |
| * Find the mate of a given character |
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
| # `ruby reverso.rb "foo"` | |
| class Reverso | |
| def initialize | |
| my_arr = ARGV[0].split("") | |
| puts "'#{self.reverso(my_arr)}'" | |
| end | |
| def reverso my_arr | |
| len = my_arr.size - 1 | |
| halflen = ((len + 1)/2.0).ceil |
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
| import sys | |
| def reverso(str): | |
| i = 0 | |
| str_len = len(str) - 1 | |
| str = list(str) | |
| half_len = len(str)/2 | |
| for x in str: | |
| temp = x |
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> | |
| <meta charset="utf-8"> | |
| <meta name="description" content=""> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Solution</title> | |
| <link rel="stylesheet" href="css/style.css"> | |
| <link rel="author" href="humans.txt"> | |
| </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
| 'use strict'; | |
| var packagejson = require('./package.json'); | |
| module.exports = function (grunt) { | |
| // Configuration | |
| grunt.initConfig({ | |
| pkg: packagejson, | |
| watch: { | |
| scripts: { |
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
| { | |
| "directory": "src/_lib", | |
| "json": "bower.json" | |
| } |
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
| // Generated on 2013-08-07 using generator-jekyllrb 0.3.6. Yo Jekyll! | |
| 'use strict'; | |
| var liveReloadPort = 35729; | |
| var packagejson = require('./package.json'); | |
| var lrSnippet = require('connect-livereload')({port: liveReloadPort}); | |
| var mountFolder = function (connect, dir) { | |
| return connect.static(require('path').resolve(dir)); | |
| }; | |
| var yeomanConfig = { | |
| pkg: packagejson, |
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 developerz = [ | |
| { name: "Chase", masterOf: "Learning New Things" }, | |
| { name: "Nate", masterOf: "The Rubies" }, | |
| { name: "Brandon", masterOf: "Javascript" }, | |
| // Cache Rules Everything Around Me... | |
| { name: "Ryan", masterOf: "C.R.E.A.M." }, | |
| { name: "Brian", masterOf: "All the things!" } | |
| ]; | |
| console.table(developerz); |