10 2014 档案

摘要:STUBBINGNotice how theshow_author_summarymethod intweetis calling thezombie_summarymethod insidezombie. This isn't good!Stubout thezombie_summarymetho... 阅读全文
posted @ 2014-10-31 18:46 Zhentiw 编辑
摘要:1.2Hello YouLet's start with a simple Hello server. Follow the tasks below to create a simple Node server that outputs a greeting.First, tell the resp... 阅读全文
posted @ 2014-10-31 01:17 Zhentiw 编辑
摘要:SETUP METHODRefactor the following code using asetupmethod to create the tweet, and properly use instance variables.class TweetTest nil) assert !m... 阅读全文
posted @ 2014-10-30 21:56 Zhentiw 编辑
摘要:First Model TestUsing anassertand thevalid?method, test that a 'tweet' isnot valid without a status.class Tweet < ActiveRecord::Base belongs_to :zomb... 阅读全文
posted @ 2014-10-30 21:27 Zhentiw 编辑
摘要:Add BOM: UTF-8file_put_contents($myFile, "\xEF\xBB\xBF". $content); 阅读全文
posted @ 2014-10-30 21:26 Zhentiw 编辑
摘要:Unit TestWrite a basic conditional test usingassertwhich checks if1 > 0. Name your test classConditionalTest.require 'test/unit'class ConditionalTest ... 阅读全文
posted @ 2014-10-29 20:47 Zhentiw 编辑
摘要:ng-Message in {{vm.angularVersion}}Reused and override This email is required This is very easy to reuse and override the ng... 阅读全文
posted @ 2014-10-28 21:46 Zhentiw 编辑
摘要:ng-Message in {{vm.angularVersion}}DEMO Single message This field is required The lenght should at least 5 This s... 阅读全文
posted @ 2014-10-28 21:33 Zhentiw 编辑
摘要:Question 1For the following graph: C -- D -- E / | | | \A | | | B \ | | | / F -- G -- HWrite the adjacency matrix A, the degre... 阅读全文
posted @ 2014-10-27 06:13 Zhentiw 编辑
摘要:Question 1Suppose we hash the elements of a set S having 20 members, to a bit array of length 99. The array is initially all-0's, and we set a bit to ... 阅读全文
posted @ 2014-10-27 02:08 Zhentiw 编辑
摘要:Read More:https://egghead.io/lessons/angularjs-lazy-loading-modules-with-ui-router-and-oclazyloadUi Router:https://github.com/angular-ui/ui-routerUi R... 阅读全文
posted @ 2014-10-21 05:26 Zhentiw 编辑
摘要:2.2Pull Requests Within a RepositoryWe're going to "come to you" and collaborate on your fork of the "dojo_rules" repository. To start out, we'll try ... 阅读全文
posted @ 2014-10-18 22:58 Zhentiw 编辑
摘要:1.2Configuring GitHere's a list of some configuration options we just went over with one part of the git command missing. Make sure your own git confi... 阅读全文
posted @ 2014-10-16 19:16 Zhentiw 编辑
摘要:Question 1Suppose we perform the PCY algorithm to find frequent pairs, with market-basket data meeting the following specifications:s, the support thr... 阅读全文
posted @ 2014-10-16 05:22 Zhentiw 编辑
摘要:Set up server for JWT Authentication 1. require express 2. require faker: If faker is not install yet, do: npm install express faker // faker is what 阅读全文
posted @ 2014-10-15 22:32 Zhentiw 编辑
摘要:Question 1Suppose we have transactions that satisfy the following assumptions:s, the support threshold, is 10,000.There are one million items, which a... 阅读全文
posted @ 2014-10-15 01:58 Zhentiw 编辑
摘要:Theangular-localforagelibrary makes simple offline storage easy.Once you refresh page, the content use put into localforage still exists. F... 阅读全文
posted @ 2014-10-13 17:09 Zhentiw 编辑
摘要:Displaying ContentIn this lesson, you will learn how to display and style content in Famo.us using JavaScript, HTML, and CSS.In Famo.us,any content th... 阅读全文
posted @ 2014-10-12 17:47 Zhentiw 编辑
摘要:Question 1The edit distance is the minimum number of character insertions and character deletions required to turn one string into another. Compute th... 阅读全文
posted @ 2014-10-12 05:45 Zhentiw 编辑
摘要:var people = [ {name: "Rank", age: 40}, {name: "Bob", age: 35}, {name: "Gegg", age: 30}, {name: "Leate", age: 18}, {name: "Matti", age: 34}, {na... 阅读全文
posted @ 2014-10-10 20:26 Zhentiw 编辑
摘要:THE MISTAKEYou decided that unicorns should leave a rainbow trail when they jump. You made the upgrade, and committed the changes. There is a problem,... 阅读全文
posted @ 2014-10-09 20:18 Zhentiw 编辑
摘要:SUBMODULEYou're in the process of putting together two websites. One is for the Mythical Wildlife Fund: MWF.com. The other site is an adoption site fo... 阅读全文
posted @ 2014-10-09 20:02 Zhentiw 编辑
摘要:Read More:http://joelhooks.com/blog/2014/02/06/stop-writing-for-loops-start-using-underscorejs/How many for loops did you write today? This week?12345... 阅读全文
posted @ 2014-10-09 05:38 Zhentiw 编辑
摘要:Question 1Consider three Web pages with the following links:Suppose we compute PageRank with a β of 0.7, and we introduce the additional constraint th... 阅读全文
posted @ 2014-10-09 01:52 Zhentiw 编辑
摘要:Read More:http://jsbin.com/dijeno/9/editSyntax: {{::person.name}}AngularJS's two-way binding is one of the "killer features" of the framework. The pro... 阅读全文
posted @ 2014-10-07 05:13 Zhentiw 编辑
摘要: 阅读全文
posted @ 2014-10-05 03:49 Zhentiw 编辑
摘要:Egghead Videos {{random}} {{random}}var app = angular.module('app', []);app.run(function($rootScope){ $rootScope.random = Math.rando... 阅读全文
posted @ 2014-10-04 21:19 Zhentiw 编辑
摘要:1. Can set up Auto-test in webstorm2. Only test seleted it or desribe. By doulbe 'i' and 'd'3. You can also exclude the it or describe which you don't... 阅读全文
posted @ 2014-10-04 20:02 Zhentiw 编辑
摘要:Classes - Part ICreate aCoffeeclass that will produce coffee objects. In that class, create aconstructorthat takesnameandlevelas arguments and sets th... 阅读全文
posted @ 2014-10-02 14:25 Zhentiw 编辑
摘要:jQuery & Object NotationConvert the existing JavaScript code to CoffeeScript.# jQuery(function($){# $('.drink a').click(function(){# var newStyl... 阅读全文
posted @ 2014-10-01 19:08 Zhentiw 编辑

点击右上角即可分享
微信分享提示