-
What command would you run, along with any arguments, to set your name so it shows up in git commits?
-
What command would you run, along with any arguments, to show the differences in files that are staged from files that are already committed to the repository?
-
What command, along with any arguments, is the shortcut to create a branch and checkout that branch at the same time?
-
What command would you run, along with any arguments, to get code from the remote repository in order to retrieve and merge it in one step?
-
What command would you run, along with any arguments, to show all the information available about the remote repository?
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
class Dungeon | |
attr_accessor :player | |
def initialize(player_name) | |
@player = Player.new(player_name) | |
@rooms = [] | |
@monster = Monster.new | |
# @item = Item.new | |
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
$(document).ready(function() { | |
$("img").hover(function(e) { | |
$(e.target).addClass("hovered"); | |
$("img:not(.hovered)").animate({"opacity": 0.25}, 200); | |
}, function(e) { | |
$("img:not(.hovered)").animate({"opacity": 1}, 200); | |
$(e.target).removeClass("hovered"); | |
}); |
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
/* Here is your chance to take over Socrates! | |
Spend 10 minutes on each of the following hacks to the socrates website. | |
Enter them in the console to make sure it works and then save | |
your results here. | |
Choose a new pair for each. Add your names to the section you complete. | |
*/ |
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
require 'csv' | |
class NFLGame | |
def initialize | |
@people = [] | |
@count = 0 | |
@teams = [] | |
@last_names = [] | |
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
<!doctype html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css"> | |
<link rel="stylesheet" href="main.css"> | |
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800"> | |
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900"> | |
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css"> | |
</head> |
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
//------------------------------------------------------------------------------------------------------------------ | |
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here. | |
//------------------------------------------------------------------------------------------------------------------ | |
function Animal(name, num_legs) { | |
this.name = species; | |
this.num_legs = num_legs; | |
} | |
Animal.prototype = { |
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
/*global angular */ | |
/*jshint globalstrict:true*/ | |
'use strict'; | |
angular.module('clientApp').directive('qenWysiwygTheOne', ['$timeout', 'qenWysiwygImage', 'imageTagService', function ($timeout, qenWysiwygImage, imageTagService) { | |
var QenWysiwyg = QEN.directives.QenWysiwyg($timeout, qenWysiwygImage, imageTagService); | |
var QenPrintWysiwyg = QEN.directives.QenPrintWysiwyg(imageTagService); | |
RedactorPlugins.qenImage = qenWysiwygImage; |
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
func application(application: UIApplication, | |
handleWatchKitExtensionRequest userInfo: [NSObject : AnyObject]?, reply: (([NSObject : AnyObject]!) -> Void)!) { | |
// This needs to be done to keep the app busy, before the process is killed bu the phone | |
var workaround: UIBackgroundTaskIdentifier? | |
workaround = UIApplication.sharedApplication().beginBackgroundTaskWithExpirationHandler({ | |
UIApplication.sharedApplication().endBackgroundTask(workaround!) | |
}) | |
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, Int64(2 * NSEC_PER_SEC)), dispatch_get_main_queue(), { | |
UIApplication.sharedApplication().endBackgroundTask(workaround!) |
-
What command would you run, along with any arguments, to set your name so it shows up in git commits?
-
What command would you run, along with any arguments, to show the differences in files that are staged from files that are already committed to the repository?
-
What command, along with any arguments, is the shortcut to create a branch and checkout that branch at the same time?
-
What command would you run, along with any arguments, to get code from the remote repository in order to retrieve and merge it in one step?
-
What command would you run, along with any arguments, to show all the information available about the remote repository?
OlderNewer