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 lang="en-US"> | |
<head> | |
<title>My first web page</title> | |
<meta charset="UTF-8" /> | |
</head> | |
<body> | |
<h1>Walter</h1> | |
<h2>Future front-end developer</h2> | |
<p><strong>Github profile: </strong><a href="lala">Walter</a></p> |
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
$(function() { | |
var $slides = $('#slides'); | |
var gallery = { | |
templates: {}, | |
cacheTemplates: function() { | |
var self = this; | |
$("[type=\"text/x-handlebars\"]").each(function() { | |
self.templates[$(this).attr('id')] = Handlebars.compile($(this).html()); | |
}) |
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
$ git push heroku master | |
Counting objects: 388, done. | |
Delta compression using up to 4 threads. | |
Compressing objects: 100% (363/363), done. | |
Writing objects: 100% (388/388), 44.09 KiB | 0 bytes/s, done. | |
Total 388 (delta 222), reused 0 (delta 0) | |
remote: Compressing source files... done. | |
remote: Building source: | |
remote: | |
remote: -----> Ruby app detected |
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
$ git push heroku master | |
Counting objects: 410, done. | |
Delta compression using up to 4 threads. | |
Compressing objects: 100% (385/385), done. | |
Writing objects: 100% (410/410), 299.04 KiB | 0 bytes/s, done. | |
Total 410 (delta 234), reused 0 (delta 0) | |
remote: Compressing source files... done. | |
remote: Building source: | |
remote: | |
remote: -----> Ruby app detected |
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
$ bin/rspec spec/models/user_spec.rb:11 | |
Running via Spring preloader in process 2346 | |
Run options: include {:locations=>{"./spec/models/user_spec.rb"=>[11]}} | |
User | |
From: /Users/wangxuefei/Documents/rails/yelp_clone/lib/sluggable.rb @ line 10 Sluggable#to_slug: | |
9: def to_slug | |
=> 10: binding.pry |
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
$ bin/rspec spec/models/user_spec.rb:11 | |
Running via Spring preloader in process 2911 | |
Run options: include {:locations=>{"./spec/models/user_spec.rb"=>[11]}} | |
User | |
From: /Users/wangxuefei/Documents/rails/yelp_clone/lib/sluggable.rb @ line 10 Sluggable#to_slug: | |
9: def to_slug | |
=> 10: binding.pry |
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 'pry' | |
class Booker | |
def process | |
customer = Customer.new | |
result = Packages.new(customer).cheapest | |
output(result) | |
end | |
private |
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
{ | |
"fieldsList": { | |
"flatHierarchyBox": "选择和安排列", | |
"hierarchyBox": "选择数据", | |
"filterBox": "报表筛选器", | |
"rowBox": "行", | |
"columnBox": "列", | |
"measureBox": "值", | |
"values": "数值", | |
"addCalculatedMeasure": "添加计算措施", |
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
{ | |
"fieldsList": { | |
"flatHierarchyBox": "选择和安排列", | |
"hierarchyBox": "选择数据", | |
"filterBox": "报表筛选器", | |
"rowBox": "行", | |
"columnBox": "列", | |
"measureBox": "值", | |
"values": "数值", | |
"addCalculatedMeasure": "添加计算措施", |
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 Solution: | |
def subsets(self, nums: List[int]) -> List[List[int]]: | |
res = [] | |
self.dfs(res, nums) | |
return res | |
def dfs(self, res, nums, list = [], index = 0): | |
if index == len(nums): |
OlderNewer