5th Period
Paul Scarrone
| #include <iostream> | |
| int main() { | |
| // Create a std::istream pointer and assign it where cin is bound | |
| std::istream *in; | |
| in = &std::cin; | |
| // Create a std::ostream pointer and assign it where cout is bound | |
| std::ostream *out; | |
| out = &std::cout; |
| import React from "react" | |
| export default React.createClass({ | |
| render: function(){ | |
| return(<div>NOPE</div>) | |
| } | |
| }); |
| jsWarrior.turn = function(warrior) { | |
| if(!warrior.healing && warrior.getHealth() < 8){ | |
| warrior.walk("backward") | |
| warrior.healing = true; | |
| } else if(warrior.check() == "enemy") { | |
| warrior.attack(); | |
| } else if(warrior.check() == "diamond"){ | |
| warrior.collect(); | |
| } else if(warrior.getHealth() < 20 && warrior.healing ){ | |
| warrior.rest(); |
| package javaapplication30; | |
| /** | |
| * a class that shows a cars model year, the company and model of the car as | |
| * well as the cars speed | |
| */ | |
| public class Car { | |
| private int modelYear, speed; | |
| private String makeModel; |
| source :rubygems | |
| gem 'sinatra' | |
| gem 'json' | |
| gem 'omniauth' | |
| gem 'omniauth-oauth2' | |
| gem 'omniauth-github' | |
| # gem 'omniauth-att', :path => File.expand_path("./../../omniauth-att", __FILE__) | |
| gem 'thin' |
5th Period
Paul Scarrone
| SOURCE_BRANCH=`git rev-parse --abbrev-ref HEAD` | |
| syncBranch(){ | |
| echo "Syncing to $1 $2" | |
| DEST_BRANCH=$1 | |
| DEST_REMOTE=$2 | |
| git checkout $DEST_BRANCH | |
| # Make sure we actually made it to the destination branch | |
| if [ `git rev-parse --abbrev-ref HEAD` != $DEST_BRANCH ]; then |
| public class Arrows { | |
| public static void main(String[] args) throws InterruptedException { | |
| while(true){ | |
| for(int i = 0; i < 50; i++){ | |
| String line = ""; | |
| for(int j = 0; j<i; j++){ | |
| line += "@@"; | |
| } | |
| for(int j = 0; j<50-i; j++){ |
| #!/bin/sh | |
| SOURCE_BRANCH=`git rev-parse --abbrev-ref HEAD` | |
| DEST_BRANCH=gh-pages | |
| git checkout $DEST_BRANCH | |
| # Make sure we actually made it to the destination branch | |
| if [ `git rev-parse --abbrev-ref HEAD` != $DEST_BRANCH ]; then | |
| echo "!!!! Something went wrong check the errors above and try again !!!!" |