This file contains hidden or 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
| import os, glob, time, operator | |
| def get_oldest_file(files, _invert=False): | |
| gt = operator.lt if _invert else operator.gt | |
| # Check for empty list. | |
| if not files: | |
| return None | |
| # Raw epoch distance. | |
| now = time.time() |
This file contains hidden or 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
| N = int(raw_input()) | |
| pro = 1 | |
| num = [] | |
| for i in xrange(N): | |
| d = int(raw_input()) | |
| pro = pro * d | |
| num.append(d) | |
| for i in xrange(N): | |
| print "%d" % (pro / num[i]) |
This file contains hidden or 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<iostream> | |
| #include<vector> | |
| #include<cstdio> | |
| #include<set> | |
| #include<map> | |
| #include<algorithm> | |
| #include<string.h> | |
| #include<string> | |
| #include<cassert> | |
| #include<stack> |
This file contains hidden or 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
| ############################################################# | |
| ################### OFFICIAL UBUNTU REPOS ################### | |
| ############################################################# | |
| ###### Ubuntu Main Repos | |
| deb http://in.archive.ubuntu.com/ubuntu/ saucy main restricted universe | |
| ###### Ubuntu Update Repos | |
| deb http://in.archive.ubuntu.com/ubuntu/ saucy-security main restricted universe | |
| deb http://in.archive.ubuntu.com/ubuntu/ saucy-updates main restricted universe |
This file contains hidden or 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
| Head | |
| ==== | |
| a: 12 | |
| b: 45 | |
| c: 9 |
This file contains hidden or 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
| public class Servlet1 extends HttpServlet { | |
| public void init() { | |
| doHeavyProcessing(); | |
| } | |
| public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { | |
| parseRequest(); | |
| calculateResponse(); | |
| Servlet1CustomCode(); |
This file contains hidden or 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
| work:~/workspace/dxr > vagrant up | |
| /home/aamir/workspace/dxr/Vagrantfile:9:in `merge!': can't convert false into Hash (TypeError) | |
| from /home/aamir/workspace/dxr/Vagrantfile:9 | |
| from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:115:in `load' | |
| from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:115:in `procs_for_source' | |
| from /usr/lib/ruby/vendor_ruby/vagrant/config.rb:41:in `capture_configures' | |
| from /usr/lib/ruby/vendor_ruby/vagrant/config.rb:36:in `synchronize' | |
| from /usr/lib/ruby/vendor_ruby/vagrant/config.rb:36:in `capture_configures' | |
| from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:114:in `procs_for_source' | |
| from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:51:in `set' |
This file contains hidden or 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
| Failed to open a session for the virtual machine precise64. | |
| VT-x features locked or unavailable in MSR. (VERR_VMX_MSR_LOCKED_OR_DISABLED). | |
| Result Code: NS_ERROR_FAILURE (0x80004005) | |
| Component: Console | |
| Interface: IConsole {1968b7d3-e3bf-4ceb-99e0-cb7c913317bb} |
This file contains hidden or 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
| work:~/workspace/dxr > make | |
| make -C dxr/plugins/clang build | |
| /usr/local/bin/llvm-config: 1: /usr/local/bin/llvm-config: Syntax error: ")" unexpected | |
| /usr/local/bin/llvm-config: 1: /usr/local/bin/llvm-config: Syntax error: ")" unexpected | |
| make[1]: Entering directory `/home/aamir/workspace/dxr/dxr/plugins/clang' | |
| g++ -Wall -Wno-strict-aliasing -c dxr-index.cpp -o dxr-index.o | |
| In file included from /usr/local/include/llvm/Support/type_traits.h:20:0, | |
| from /usr/local/include/llvm/Support/Casting.h:18, | |
| from /usr/local/include/clang/Basic/LLVM.h:21, | |
| from /usr/local/include/clang/Basic/IdentifierTable.h:21, |
This file contains hidden or 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
| <VirtualCube name="Campaigns Full"> | |
| <CubeUsages> | |
| <CubeUsage cubeName="DailyCampaignCube" /> | |
| <CubeUsage cubeName="DailyPortfolioCube" /> | |
| </CubeUsages> | |
| <VirtualCubeDimension cubeName="DailyCampaignCube" name="Portfolio" visible="true" /> | |
| <VirtualCubeDimension cubeName="DailyCampaignCube" name="Customer" visible="true" /> | |
| <VirtualCubeDimension cubeName="DailyCampaignCube" name="Campaign Group" /> | |
| <VirtualCubeDimension cubeName="DailyCampaignCube" name="Campaign" /> | |