This file contains 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
#include <sstream> | |
#include <iostream> | |
#include "variable_analysis_module.h" | |
// TODO: Write a comment here. | |
void VariableAnalysisModule::ParseLine(std::string line, int line_number) { | |
ArrayList<std::string> result = Split(line, ' '); | |
std::string output; | |
// This would follow the format of a variable being defined as: "const <type> <name>;" |
This file contains 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
#include <algorithm> | |
#include <stdexcept> | |
template <typename T> | |
class ArrayList { | |
private: | |
int size_; // the size of the LIST | |
int capacity_; // the size of the backing ARRAY | |
T *data_; // The pointer to the backing ARRAY of type T | |
const int kDefaultCapacity = 16; |
This file contains 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
// | |
// main.swift | |
// topN_2 | |
// | |
// Created by Ryan Warsaw on 12/14/17. | |
// Copyright © 2017 Ryan Warsaw. All rights reserved. | |
// | |
import Foundation |
This file contains 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
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="95px" viewBox="0 0 399 272" version="1.1"> | |
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> | |
<g id="tucker"> | |
<polygon id="top-beak" fill="#FD6E1E" points="264 64 231 64 231 0 359 0 359 8 375 8 375 16 383 16 383 24 391 24 391 40 399 40 399 56 391 56 391 64" /> | |
<polygon id="bottom-beak" fill="#FD6E1E" points="328 80 279 80 279 72 231 72 231 88 247 88 247 96 287 96 287 104 335 104 335 112 383 112 383 96 391 96 391 88 343 88 343 80" /> | |
<polygon id="sclera" fill="#FFFBFB" points="215.118015 23.9967358 215.118015 39.9759543 222.990429 39.9759543 222.990429 56.0436404 215.118015 56.0436404 215.118015 72.0909655 198.994579 72.0909655 198.994579 79.9924777 174.9601 79.9924777 174.9601 72.0909655 166.992223 72.0909655 166.992223 64.0777552 158.852749 64.0777558 158.852749 33.7473167 158.852749 31.9250491 166.992223 31.9250491 166.992223 23.9967358 174.9601 23.9967358 174.9601 15.9345858 20 |
This file contains 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
struct LargeInt { | |
var digits: [Int8] = []; | |
/** | |
* Default constructor if we don't want to provide a value, this is removed when we create our own so we have to do this dummy method. | |
**/ | |
init() { | |
digits.append(0); | |
} | |
This file contains 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
channel = Channel(String).new | |
# Sender: Sends random animal from array over the channel. | |
spawn do | |
loop do | |
animals = ["dog", "cat", "bird", "horse", "hamster", "rabbit", "deer", "squirrel", | |
"ground hog", "hawk", "flying squirrel", "pug", "fox", "coyote", "turtle"] | |
channel.send(animals[Random.new.rand(0..14)]) | |
end | |
end |
This file contains 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
~ $ npm test | |
> [email protected] test /app | |
> node node_modules/testjs/bin/testjs | |
|_ _ _|_ | |
|_(-_)|_ test.js v1.0.4 | |
+ bcryptjs.encodeBase64 0.866 ms 1 assertions |
This file contains 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
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network :forwarded_port, host: 3500, guest: 3500 # Thimble | |
config.vm.network :forwarded_port, host: 5432, guest: 5432 # Postgres | |
config.vm.network :forwarded_port, host: 2015, guest: 2015 # publish.webmaker.org | |
config.vm.network :forwarded_port, host: 8001, guest: 8001 # Published projects | |
config.vm.network :forwarded_port, host: 1234, guest: 1234 # id.webmaker.org | |
config.vm.network :forwarded_port, host: 3000, guest: 3000 # login.webmaker.org |
This file contains 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
Ryans-MacBook-Pro:login.webmaker.org ryanwarsaw$ npm install | |
npm WARN deprecated [email protected]: potential XSS vulnerability in autoescape mode, and with escape filter was fixed in v2.4.3 | |
npm WARN deprecated [email protected]: Updated API and improved functionality. | |
npm WARN deprecated [email protected]: security/injection issue with limit/offset fixed in 3.17.0 | |
npm WARN deprecated [email protected]: deprecated, use lowercase '[email protected]' from now on | |
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue | |
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree. | |
npm WARN deprecated [email protected]: use uuid module instead | |
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"4.4.7","npm":"2.15.8"}) | |
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version |
This file contains 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
Ryan Warsaw@RYANS-DESKTOP MINGW64 ~/documents/brackets (master) | |
$ npm run build | |
> [email protected] build C:\Users\Ryan Warsaw\documents\brackets | |
> grunt build-browser | |
Running "jshint:src" (jshint) task | |
>> 307 files lint free. | |
Running "clean:dist" (clean) task |