Ivan Storck ivanoats

View untrusted-lvl2-solution.js
1 2 3 4 5 6 7 8 9 10
/********************
* theLongWayOut.js *
********************
*
* Well, it looks like they're on to us. The path isn't as
* clear as I thought it'd be. But no matter - four clever
* characters should be enough to erase all their tricks.
*/
 
function startLevel(map) {
View untrusted-lvl1-solution.js
1 2 3 4 5 6 7 8 9 10
/*****************
* cellBlockA.js *
*****************
*
* Good morning, Dr. Eval.
*
* It wasn't easy, but I've managed to get your computer down
* to you. This system might be unfamiliar, but the underlying
* code is still JavaScript. Just like we predicted.
*
View Connect to IRC.md
  • Inernet Relay Chat (IRC) despite being an ancient chat protocol, is highly used in the JavaScript, Node.js, and general web development community. It's important that you're familiar with it and can utilize it for help and to connect with others in the community.
  • Connect to the class IRC channel #codefellows on freenode.net and say hello.
  • If you want to be able to talk on the ##javascript channel, you need to register a nickname with Freenode. Type /msg NickServ help to get started from your IRC client.
  • Mac, best free client is LimeChat.
  • Unix, your package manager should have XChat or Pidgin.
  • http://www.irchelp.org/ is a great intro site if
View JavaScript-Bootcamp-Setup.md

Set up your computer with the following tools:

Latest version of Ruby (for Sass, and other tools) Node.js, PostgreSQL, MongoDB, Redis,

Editors: We use Atom.io or Sublime Text 3 in class, and I'm betting you already do too (unless you rock Vim or Emacs). It has a fully-featured, unlimited time Trial mode.

Optional: if you are coming from an IDE like Visual Studio or Eclipse, you may like WebStorm (trial version) better

View node-and-express.md

Node.js is the red-hot new hotness! You can't throw a stick on the internet without hitting someone talking about Node. But why? For one, it's built on JavaScript which is completely ubiquitous. So, why not build a development stack and server on JavaScript? I would argue that the installation is almost painless while the terseness of the language is not.

While you can create apps 100% from Node.js, the Express framework is a great tool that helps you solve many standard problems without having to write boilerplate code.

Node.js is here and it's not going anywhere anytime soon. So if you are new to Node.js, Express, and even JavaScript in general, this is a great newb's step-by-step guide to get started.

Get Node Installed

There are a handful of ways you can install Node into your system ranging from a pre-packaged installer to source. Somewhere in here you will find a way that works best for you.

View .tmux.conf
1 2 3 4 5 6 7 8 9 10
set -g prefix C-a
unbind C-b
set -sg escape-time 1
set -g base-index 1
setw -g pane-base-index 1
bind r source-file ~/.tmux.conf \; display "Reloaded!"
bind-key C-a send-prefix
unbind %
bind | split-window -h
bind - split-window -v
View find-with-mdfind.sh
1 2 3 4 5 6 7 8 9
#!/bin/bash
# Note: updated 2014-03-28 to handle patterns like foo/bar.txt
suffix=$(basename "$@")
pattern="${suffix}*"
 
if [ "$@" = "$suffix" ]; then
# If there's no folder then it should be a substring
pattern="*${suffix}*"
fi
View example.svg
1 2 3 4 5 6 7 8 9 10
<svg version="1.1"
baseProfile="full"
width="300" height="200"
xmlns="http://www.w3.org/2000/svg">
 
<rect width="100%" height="100%" fill="red" />
 
<circle cx="150" cy="100" r="80" fill="green" />
 
<text x="150" y="125" font-size="60" text-anchor="middle" fill="white">SVG</text>
View domain-for-errors.js
1 2 3 4 5 6 7 8 9 10
var http = require("http"),
domain = require("domain"),
server = http.createServer(),
counter = 0;
server.on("request", function (req, res) {
// this domain will cover this entire request/response cycle
var d = domain.create();
d.on("error", function (err) {
// outputs all relevant context for this error
console.error("Error:", err);
View package.json
1 2 3 4 5 6 7 8 9 10
"scripts": {
"test": "grunt travis"
},
"config": {
"blanket": {
"pattern": [
"api"
],
"data-cover-never": [
"node_modules",
Something went wrong with that request. Please try again.